exam questions

Exam CKA All Questions

View all questions & answers for the CKA exam

Exam CKA topic 1 question 3 discussion

Actual exam question from CNCF's CKA
Question #: 3
Topic #: 1
[All CKA Questions]

SIMULATION -


Task -
Given an existing Kubernetes cluster running version 1.22.1, upgrade all of the Kubernetes control plane and node components on the master node only to version 1.22.2.
Be sure to drain the master node before upgrading it and uncordon it after the upgrade.

You are also expected to upgrade kubelet and kubectl on the master node.

Show Suggested Answer Hide Answer
Suggested Answer:



Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
AWS_cert2023
Highly Voted 1 year ago
--etcd-upgrade Perform the upgrade of etcd. (default true) The default etcd upgrade is true, so disable it with sudo kubeadm upgrade apply v1.** --etcd-upgrade=false
upvoted 7 times
...
TONNI2001
Highly Voted 1 year, 8 months ago
not exactly like in the exam. but it helps. do not relay on dumps only. i recommend to study with kodekloud and the corresponding udemy course.
upvoted 5 times
...
noahsark
Most Recent 1 month, 3 weeks ago
# practice lightninglab1 in Mumshad udemy / kodekloud.
upvoted 2 times
jjfab
3 weeks ago
Is the lightning lab 1 same with the actual CKA exam? Or is it more likely like this example?
upvoted 1 times
...
...
Ayxanus0610
10 months, 1 week ago
$ kubectl config use-config eks8 $ kubectl cordon ek8s-node-1 $ kubectl drain ek8s-node-1 --delete-local-data --ignore-daemonsets --force This is much more understandable solution for me
upvoted 1 times
...
real111
1 year, 5 months ago
Would those steps be right? 1. k cordon nodename; 2. k drain --ignore-daemonsets nodename; 3. ssh into node; 4. swapoff -a; 5. then find swap line in /etc/fstab and comment it out; 6. run apt-mark unhold kubeadm kubelet kubectl && \ apt-get update && apt-get install -y kubeadm=1.2xx-00 kubelet=1.2x.x-00 kubectl=1.2x.x-00&& \ apt-mark hold kubeadm kubelet kubectl 7. sudo systemctl daemon-reload 8. sudo systemctl restart kubelet 9. exit ssh 10.k uncordon node
upvoted 4 times
...
mrallrounder123453656
1 year, 7 months ago
we need to set --etcd-upgrade=false, question says so not upgrade the etcd
upvoted 4 times
Issaitani
1 year, 6 months ago
Looking at the upgade logs i can see that etcd is still the same version, but i think you have a point because the --etcd-upgrade flag is set to true by default
upvoted 2 times
Alencar_07
1 year ago
I didn't understand the issue that way. It says to update all components and etcd is one of them. "Update all Kubernetes node and control plane components on the master node to version 1.22.2 only."
upvoted 2 times
zain1258
6 months, 1 week ago
I was also confused about it. But if you see the last picture in question, it clearly says not to upgrade etcd and Addons as well. So I think following is the command to upgrade the cluster kubeadm upgrade apply v1.22.2 --etcd-upgrade=false Now the question is how we can skip CoreDNS upgrade as I don't see any option to skip it
upvoted 1 times
Frank_sinaatra
1 month, 3 weeks ago
kubeadm upgrade apply v1.**** --skip-phases=addon/coredns --etcd-upgrade=false the --skip-phases can be used for any addon, assuming you call it properly.
upvoted 1 times
...
...
...
...
...
gtsvetko
1 year, 9 months ago
I has this question on the exam, you can follow the steps below to complete it, just ensure that you are ssh-ing from the right node: https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/#upgrading-control-plane-nodes
upvoted 5 times
phidelics
1 year, 9 months ago
are this questions exactly thesame in exams?
upvoted 7 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago