Api-versions and kind query

Version : v1.15.3
I see that we can create “Deployment” if we specify the apiVersion as “apps/v1” and also as “extensions/v1beta1”
How come ? & How to know which is correct or the best practice ?

Hello Shirish,

API version extensions/v1beta1 is a deprecated one and is removed from the current latest version of Kubernetes ie V1.16.0 . apps/v1 is available since v1.9.
Up to v1.15.4, both extensions/v1beta1 and apps/v1 were present and now only available API version for DaemonSet, Deployment, StatefulSet, and ReplicaSet is apps/V1. So as a best practice you can use apps/v1
You can find more details here

Thank You,
Praveen.

1 Like