The current apiVersion for the kubernetes deployment is set to apps/v1beta1which is deprecated since Kubernetes 1.16 cause the following command to fail as shown in the image below. Deployment cannot be created : kubectl apply -f <deployment.(yaml|json)>
The current
apiVersion
for the kubernetes deployment is set toapps/v1beta1
which is deprecated since Kubernetes 1.16 cause the following command to fail as shown in the image below. Deployment cannot be created :kubectl apply -f <deployment.(yaml|json)>
How to fix this issue
Following the recommandation of the Kubernetes | API Reference the deployment
apiVersion
should be set to apps/v1 as mentioned in the Deployment Kubernetes API ReferenceI will make the changes.