Container different

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”
  • name: demo1
    image: nginx
    ports:
    • containerPort: 80
      name: “http-server”
      initContainers:
  • 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

Have you checked the pod logs?