KodeCloud CKAD ApiVersions
Links: 111 KodeCloud Index
- By default Alpha APIs are NOT enabled. For example
- This will give an error
Alpha APIs can contain bugs and may be dropped later.
API Groups in Beta stage are enabled by default.
Difference between Alpha, Beta and GA versions
An API group can support multiple versions at the same time but there can be only one preferred/storage version.
- When we run the
k get deploycommand then the preferred version is queried.
Preferred and storage version can be different.
Getting the preferred version of an API group: For example authorization.k8s.io
- `kubectl proxy 8001
- API elements may only be removed by incrementing the version of the API group.
When old API versions are deprecated we need to change our old manifest files.
- This can be done using
kubectl convert -f ‹old-file> --output-version ‹new-api>
- It doesn't change the file, just spits the output to stdout. If we need it as a file then we need to direct the output to a file.
kubectl convertcommand may not be available on our system as it is a separate plugin.
Last updated: 2022-10-10