YAML Flashcards

CKA cert in 26 days

1
Q

REQUIRED FIELDS IN AYML

A

apiVersion
kind
metadata
spec: can leave out, when creating namespaces

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

kind

A

what type of object you want to create

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

metadata

A

data that helps uniquely identify the object

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

METADATA

metadata.name

A

used to assign a name to the object

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

METADATA

metadata.labels

A
  • organise your resources

- helps you filter your resources

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

spec

A

API specifies what structure/content this section should hold

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

how to separate objects in a YAML file

A

’—’

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

RANDOM*

get short version info of kubernetes client and server version

A

kubectl –version short

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

view API REFERENCE DATA

A

kubectl explain pod

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

RANDOM

POD IS A :

A

COLLECTION OF CONTAINERS THAT CAN RUN ON A HOST. IT IS CRATED BY CLIENTS AND SCHEDULED ONTO HOSTS

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

HIGH LEVEL OVERVIEW OF THE ENTIRE YAML STRUCTURE

A

kubectl explain pod –recursive | less

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

regenerate yaml descriptor from the existing pod

A

kubectl get pod pod-httpd -o yaml > regenerated-descriptor.yaml

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