API Deprecations Flashcards

(18 cards)

1
Q

What does the Kubernetes API deprecation policy explain?

A

It explains why multiple API versions may exist at the same time and when older API versions can be deprecated or removed.

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

Why might a Kubernetes API group support multiple versions at once?

A

It supports multiple versions so older manifests keep working while users gradually migrate to newer API versions.

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

What is the rule for removing an API element such as a resource or field from an API group?

A

API elements may only be removed by incrementing the API version rather than being removed from the same version.

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

Why must Kubernetes sometimes support both an older and a newer API version at the same time?

A

It must support both versions so users do not have to rewrite all manifests immediately when a new API version is introduced.

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

What does it mean that API objects must round trip between versions without information loss?

A

It means an object converted from one version to another and back again should remain logically equivalent unless the whole resource does not exist in one version.

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

How are alpha API versions treated by the deprecation policy?

A

Alpha versions are experimental and do not have to be supported across future releases so they may be removed quickly.

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

How are beta API versions treated by the deprecation policy?

A

Beta versions must be supported for at least three releases or nine months whichever is longer after deprecation.

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

How are GA stable API versions treated by the deprecation policy?

A

GA versions must be supported for at least three releases or twelve months whichever is longer after deprecation.

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

What happens when an API version is deprecated but not yet removed?

A

It still works for a period of time but users should migrate and Kubernetes may show deprecation warnings.

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

What is the preferred API version for a group?

A

The preferred version is the default version kubectl and API discovery tend to use when retrieving resource information.

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

What is the storage version for a group?

A

The storage version is the version used to persist objects in etcd even if the object was created with another supported version.

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

When can the preferred version or storage version move to a newer API version?

A

They cannot move until there has been at least one release that supports both the new version and the previous version together.

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

Can a less stable API version deprecate a more stable API version?

A

No a less stable version such as alpha cannot deprecate a more stable version such as GA.

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

In the lecture example could v2alpha1 deprecate v1 GA?

A

No because a GA version can only be deprecated by a new version that is at least equally stable.

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

Why are release notes important when API versions are removed?

A

Release notes tell users which old API versions are being removed and which newer versions they must migrate to.

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

What is kubectl convert used for?

A

kubectl convert is used to rewrite older manifest files into a newer supported API version.

17
Q

Why is kubectl convert useful during cluster upgrades?

A

It helps update old manifests when deprecated API versions are removed from newer Kubernetes releases.

18
Q

What important detail about kubectl convert is mentioned in the lecture?

A

kubectl convert is a separate plugin and may need to be installed before you can use it.