Kennedy Sanchez:
Hi People. http://Kubernetes.io|Kubernetes.io use the following version and
apiVersion: <http://networking.k8s.io/v1|networking.k8s.io/v1>
videos lesson use this
http://networking.k8s.io/v1beta1|networking.k8s.io/v1beta1
What is the version used (valid) in the exam? There are sutil changes on commands between versions
R Banerjee:
The Ingress lesson mentions this in lesson titled Article: Ingress
for CKA, maybe its different for CKAD but yes, it should be mentioned
Naveen Singh:
@Kennedy Sanchez I believe exam was recorder in an older version of kubernetes.
You can list the current api version available in your current kubernetes env by :
kubectl api-resources
Exam will most recent stable version (1.21 as of now).
~: kubectl api-resources | grep -i "ingress"
ingresses ing extensions/v1beta1 true Ingress
ingressclasses <http://networking.k8s.io/v1|networking.k8s.io/v1> false IngressClass
ingresses ing <http://networking.k8s.io/v1|networking.k8s.io/v1> true Ingress
unnivkn:
and then select the appropriate doc version from here: https://kubernetes.io/docs/home/
unnivkn:
Another method is to create objects (pod/ingress etc) using imperative commands & see its kind: in the yaml (eg: k get po mypod -o yaml)