V
V
Vadim2020-10-09 20:51:23
Kubernetes
Vadim, 2020-10-09 20:51:23

How to check if a given version of Kubernetes supports the api version for a pod object?

Hello everyone,

in the yaml manifest there is a line,

apiVersion: apps/v1beta1
kind: Deployment


is there some command will the api be backwards compatible with the current version of the cube without running the manifest?

kubectl explain deployment | grep -e "VERSION:" produces a completely different version ( extensions/v1beta1 ) , but nevertheless kubectl apply -f manifest.yaml works fine,

all the best,
Vadim

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zzamzam, 2020-10-10
@Viji

It is best to look at the API Reference
https://kubernetes.io/docs/reference/generated/kub...
https://kubernetes.io/docs/reference/generated/kub...
5f8206fdd5601559361397.png
In the Release Notes, you can see that in 1.18 they left only apps/v1 for Deployment
https://v1-18.docs.kubernetes.io/docs/setup/releases...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question