Tag Archives: kubectl

CKA Exam Tips for Kubernetes 1.19

I previously wrote about my first CKA exam attempt, I wanted to share things I’ve reflected on and plan to change for my second attempt. I hope these tips will be helpful for others to learn ahead of time to successfully pass their exam on the first attempt.

Continue reading

Permanently Disable Swap for Kubernetes Cluster

I set up a few Kubernetes clusters preparing for the CKA exam and discovered that upon reboot, my control plane node didn’t work. Running any kubectl command I get:

The connection to the server was refused - did you specify the right host or port?

This is a common error message that can result from numerous issues but I started troubleshooting by seeing if the kubelet process was running with ps aux | grep kube. Nothing…no kubelet service running. Then I looked at /var/log/syslog and I found the problem — swap was back on!

Continue reading

Use kubeadm to Install a Basic Cluster in Kubernetes v1.19 for CKA Exam, Part 1: Control Plane Node

The new CKA 2020 for Kubernetes v1.19 blueprint has an objective to, “Use Kubeadm to install a basic cluster.” While I haven’t taken the CKA v1.19 exam yet, based on the exam environment from Linux Foundation (image below), it doesn’t appear that creating a brand new cluster will be necessary in the exam. Instead, cluster ik8s is missing a node and I assume the task will involve gathering the information to add the node to the cluster.

CKA Exam Environment from Linux Foundation’s Important Instructions: CKA and CKAD
Continue reading