No Pods this time. Every answer comes from the API server's own documentation.
Walk the paths named in each objective: pod.spec.containers, then pod.spec.containers.ports, then pod.metadata.labels.
Lab4 objectives100 XP
No Pods this time. Every answer comes from the API server's own documentation.
Walk the paths named in each objective: pod.spec.containers, then pod.spec.containers.ports, then pod.metadata.labels.
Read a default from explain
The description of pod.spec.restartPolicy names its default.
Read a default from explain
The description of pod.spec.restartPolicy names its default.
Count the required fields of a container
kubectl explain pod.spec.containers lists the container's fields. Some are marked -required-.
Find the required field of a container port
Walk one level deeper, to pod.spec.containers.ports.
Read the type of labels
kubectl explain prints a field's type in angle brackets on the FIELD: line: FIELD: restartPolicy <string>.