Spark1231:
Hi all,
from the CKA course, I learned a kubectl command kubectl explain pod --recursive
This command is best for understanding how to write a working k8s yaml file. However, I am confused about how to read it. For example,
# kubectl explain pod --recursive
KIND: Pod
VERSION: v1
DESCRIPTION:
Pod is a collection of containers that can run on a host. This resource is
created by clients and scheduled onto hosts.
FIELDS:
apiVersion <string>
kind <string>
metadata <Object>
annotations <map[string]string>
clusterName <string>
creationTimestamp <string>
deletionGracePeriodSeconds <integer>
deletionTimestamp <string>
finalizers <[]string>
generateName <string>
generation <integer>
initializers <Object>
pending <[]Object>
name <string>
result <Object>
apiVersion <string>
code <integer>
details <Object>
Let’s look at initializers.pending
specifically. Does it mean that we can use array [] or Object for its value?