Sep 2021 changes, practice test – api versions/deprecations

Unable to complete Q5 of lab-api-versions-deprecations
I will appreciate if you can guide me how to solve this question.

Enable the v1alpha1 version for API group on the controlplane node.

Thank you for

Hello @srungaram,
As a good practice, take a backup of that apiserver manifest file before going to make any changes.
In case, if anything happens due to misconfiguration you can replace it with the backup file.

[email protected]:~# cp -v /etc/kubernetes/manifests/kube-apiserver.yaml /root/kube-apiserver.yaml.backup

Now, open up the kube-apiserver manifest file in the editor of your choice. It could be vim or nano .

[email protected]:~# vi /etc/kubernetes/manifests/kube-apiserver.yaml

Add the --runtime-config flag in the command field as follows :-

 - command:
    - kube-apiserver
    - --advertise-address=
    - --allow-privileged=true
    - --authorization-mode=Node,RBAC
    - --client-ca-file=/etc/kubernetes/pki/ca.crt
    - --enable-admission-plugins=NodeRestriction
    - --enable-bootstrap-token-auth=true
    - --> This one 

After that kubelet will detect the new changes and will recreate the apiserver pod.

It may take some time.

[email protected]:~# kubectl get po -n kube-system

Check the status of the apiserver pod. It should be in running condition.

KodeKloud Support

Thank you @Ayman really appreciate your solution.

I took CKAD exam recently and I am able to get only 63% when the pass score is 66%. Anyway I came across one question which is based on API deprecations.
I don’t remember the entire question something like this…
‘old deployment with extensions/v1beta1’ under 1.15, this needs to be migrated to non deprecated version.

My question is, are we allowed to use kubectl-convert in the exam?

Hi @srungaram ,
Due to NDA (non-disclosure agreement), We can’t discuss official questions.

KodeKloud Support