hi,
Can somebody explain me why the below behaviour of containers.
more 22.yaml
kind: Pod
apiVersion: v1
metadata:
name: demo
spec:
containers:
- name: demo
image: nginx
ports:- containerPort: 80
name: “http-server”
- containerPort: 80
- name: demo1
image: nginx
ports:- containerPort: 80
name: “http-server”
initContainers:
- containerPort: 80
- name: demo2
image: alpine
kubectl describe pod|grep -i state
State: Waiting
State: Waiting
State: Waiting
[root@test ~]# kubectl describe pod|grep -i state
State: Terminated
State: Waiting
State: Waiting
[root@test ~]# kubectl describe pod|grep -i state
State: Terminated
State: Running
State: Running
[root@test ~]# kubectl describe pod|grep -i state
State: Terminated
State: Running
State: Terminated
Last State: Terminated
[root@test ~]# kubectl describe pod|grep -i state
State: Terminated
State: Running
State: Terminated
Last State: Terminated
[root@test ~]# kubectl describe pod|grep -i state
State: Terminated
State: Running
State: Running
Last State: Terminated
[root@test ~]# kubectl describe pod|grep -i state
State: Terminated
State: Running
State: Terminated
Last State: Terminated