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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the apiVersion field in a yaml file?

A

API Version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the kind field in a yaml file?

A

Type of object to be created

  • POD
  • Service
  • ReplicaSet
  • Deployment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the metadata field in a yaml file?

A

It is the data about the object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the spec field in a yaml file?

A

Specify additional information about the object to be created.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

After creating a test.yaml file, which command should I use to create the POD?

A

kubectl create -f test.yaml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly