Security - API Versions Flashcards

1
Q

What does it mean when a api resource is at v1?

A

It is a generally available/ stable version

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

What kind of API Versions exist?

A
  • alpha
  • beta
  • GA/stable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which api Version is how available?

A
  • alpha -> by default not enabled
  • beta -> enabled by default
  • GA -> by default enabled
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does it mean when an api group has multiple versions available?

A
  • one apigroup can support multiple versions
  • all versions can be used to create objects
  • only one version can be a preferred version
  • the preferred version is used in imperativ commands
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can you see the preferred version?

A
  • when you list the api-resource is it shown
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the first rule of API deprecation policy?

A
  • API elements may only be removed by incrementing the version of the API group
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the second rule of API deprecation policy?

A

API objects must be able to round-trip between API versions in a given release without information loss, with the exception of whole REST resources that do not exist in some versions

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

How can you convert older yaml files to newer versions?

A

kubectl convert -f < old-file> –output-version < new-api>

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

How can you identify the preferred version?

A
  1. kubectl proxy 8001& (& runs in background)
  2. curl localhost:8001/apis/authorization.k8s.io
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How can you copy a file in Linux?

A

cp oldfile nextfile

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

How do you configure a kube-apiserver to enable a certain version of an api-resources?

A

In kube-apiserver under /etc/kubernetes/manifest/.yaml
add
‘–runtime-config=resourceName like rbac.authorization.k8s.io/v1alpha’

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

How can you get an explanation of an object? / identify the api group its part of?

A

k explain job

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