Complete the code to specify the kind of Kubernetes object.
apiVersion: v1
kind: [1]
metadata:
name: my-podThe kind field specifies the type of Kubernetes object. For a pod, it must be Pod.
Complete the code to define the container image in the pod spec.
spec:
containers:
- name: my-container
image: [1]The image field specifies the container image to run, such as nginx:latest.
Fix the error in the container port definition.
spec:
containers:
- name: app
image: busybox
ports:
- containerPort: [1]The containerPort must be a number, like 80, not a word or label.
Fill both blanks to define a pod with two containers named 'web' and 'db'.
spec: containers: - name: [1] image: nginx - name: [2] image: mysql
The first container is named web and the second db to match common naming for web and database containers.
Fill all three blanks to create a pod spec with a container named 'app', image 'python:3.12', and port 5000.
spec: containers: - name: [1] image: [2] ports: - containerPort: [3]
The container is named app, uses the python:3.12 image, and exposes port 5000.