3 - Pods with YAML Flashcards
1
Q
What are the 4 required top-level fields to create a yaml file for kubernetes?
A
apiVersion
kind
metadata
spec
2
Q
What is the apiVersion field in a yaml file?
A
API Version
3
Q
What is the kind field in a yaml file?
A
Type of object to be created
- POD
- Service
- ReplicaSet
- Deployment
4
Q
What is the metadata field in a yaml file?
A
It is the data about the object.
5
Q
What is the spec field in a yaml file?
A
Specify additional information about the object to be created.
6
Q
After creating a test.yaml file, which command should I use to create the POD?
A
kubectl create -f test.yaml