Closed
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
Metadata
Assignees
Labels
No labels