Daniel Galea
01/23/2023, 1:31 PMimage
parameter is not optional, so this leads me to believe that the Pod will only have one container based on that image but then I also see that I can specify pod_spec_config
which tells me that I can define a Pod with multiple containers, like:
apiVersion: batch/v1
kind: Job
metadata:
name: hello
spec:
template:
# This is the pod template
spec:
containers:
- name: hello
image: busybox:1.28
command: ['sh', '-c', 'echo "Hello, Kubernetes!" && sleep 3600']
restartPolicy: OnFailure
- name: world
.....
# The pod template ends here
but then I'm not sure where the image
parameter fits in, since each container has its image specified in the Pod Specification. So which is the case? Are there any examples on this?daniel
01/23/2023, 3:01 PMDaniel Galea
01/23/2023, 3:01 PMdaniel
01/23/2023, 3:03 PMDaniel Galea
01/23/2023, 3:05 PM