I’m trying to create a pod with multiple containers but it’s failing eventually. This is my yaml definition to create the pod.
apiVersion: v1
kind: Pod
metadata:
name: web
labels:
tier: prod
spec:
containers:
- name: http
image: httpd
- name: mysql
image: mysql
And this is the error I see,
Normal Pulled 7m25s kubelet Successfully pulled image “mysql” in 3.438834346s
Warning BackOff 3m48s (x21 over 8m16s) kubelet Back-off restarting failed container
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
web 1/2 CrashLoopBackOff 6 9m21s
Can I get help or any suggestions ?