Skip to content

KodeCloud CKAD ApiVersions

Links: 111 KodeCloud Index


attachments/Pasted image 20221010104405.jpg

  • By default Alpha APIs are NOT enabled. For example
    • attachments/Pasted image 20221010104559.jpg
    • attachments/Pasted image 20221010104701.jpg
    • 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

    • attachments/Pasted image 20221010105037.jpg
  • An API group can support multiple versions at the same time but there can be only one preferred/storage version.

    • attachments/Pasted image 20221010105217.jpg
    • When we run the k get deploy command then the preferred version is queried.
  • Preferred and storage version can be different.

  • Getting the preferred version of an API group: For example

    • `kubectl proxy 8001
    • curl localhost:8001/apis/


  • API elements may only be removed by incrementing the version of the API group.
    • attachments/Pasted image 20221010105807.jpg

Kubectl convert

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. attachments/Pasted image 20221010114159.jpg
  • The kubectl convert command may not be available on our system as it is a separate plugin.

Last updated: 2022-10-10