Skip to content

Doesn't detect failed replication controller #25790

Closed
@livelace

Description

Configuration:

apiVersion: v1
kind: ReplicationController
metadata:
  name: nginx
spec:
  replicas: 1
  selector:
    app: nginx
  template:
    metadata:
      name: nginx
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx
        lifecycle:
          postStart:
            exec:
              command: ["exit", "1"]
        ports:
        - containerPort: 80

[root@kube-controller1 ~]# kubectl get pods
NAME READY STATUS RESTARTS AGE
nginx-4xf35 0/1 CrashLoopBackOff 5

https://paste.fedoraproject.org/367808/63550656/

[root@kube-controller1 ~]# kubectl get rc
NAME DESIRED CURRENT AGE
nginx 1 1 6m

https://paste.fedoraproject.org/367809/46355072/

openshift/jenkins-plugin#33
openshift/origin#8507

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions