Back to articles

Tag archive

#cka

L
Aug 27, 2026

List an operator's CRDs, then read a field's docs with kubectl explain (CKA)

A CKA Cluster Architecture walkthrough of the read-only question: an operator (cert-manager) is already installed, and you have to save the list of CRDs it registered in kubectl's DEFAULT output format, then extract the documentation for a Certificate's spec.subject field using kubectl explain. Covers where a custom resource's documentation actually comes from, why "default output format" is a graded constraint and not advice, and dotted field paths, with real terminal output.

Aug 27, 20268 min read0 reactions0 comments
A
Aug 7, 2026

Add a streaming sidecar so kubectl logs can see a legacy app (CKA)

A CKA Workloads & Scheduling walkthrough: an app logs to a file, so kubectl logs returns nothing at all. Fix it the documented way with a streaming sidecar: add a second busybox container to the same pod that tails the log file to stdout, plus an emptyDir mounted at the log directory in BOTH containers. Covers why the kubelet only captures stdout, where volumeMounts and volumes each belong, and how to prove the volume really is shared, with real terminal output.

Aug 7, 20267 min read0 reactions0 comments
A
Aug 6, 2026

Add a WaitForFirstConsumer StorageClass and hand it the default (CKA)

A CKA Storage walkthrough: create a StorageClass that reuses the cluster's existing provisioner with volumeBindingMode WaitForFirstConsumer, then move the storageclass.kubernetes.io/is-default-class annotation off the old default and onto it, without editing a single existing Deployment or PVC. Includes the proof: an unqualified PersistentVolumeClaim that lands on the new class, sits Pending on purpose, and binds the moment a pod consumes it. Real terminal output throughout.

Aug 6, 20267 min read0 reactions0 comments
N
Jul 31, 2026

Name a container port, then expose it with a NodePort Service (CKA)

A CKA Services & Networking walkthrough: add a port specification named web (80/TCP) to the existing webserver container of the catalog Deployment, then expose it as catalog-svc with kubectl expose --target-port=web --type=NodePort. Covers what a containerPort actually does, why naming it matters, the selector trap in hand-written Service YAML, and verification through both the ClusterIP and the allocated node port, with real terminal output.

Jul 31, 20267 min read0 reactions0 comments
C
Jul 30, 2026

Create a PriorityClass, patch the Deployment, let the scheduler evict the neighbors (CKA)

A CKA Workloads & Scheduling walkthrough: find the highest user-defined PriorityClass (ignore system-*), create high-priority one below it (999999), and patch the busybox-logger Deployment's pod template to use it. On a full node the rollout forces real scheduler preemption: a low-priority neighbor is evicted with a Preempted event, exactly as the question promises. Rollout verified, other deployments untouched, with real terminal output.

Jul 30, 20267 min read0 reactions0 comments
I
Jul 22, 2026

Install Argo CD with Helm, and survive the missing-CRD trap (CKA)

A CKA Cluster Architecture, Installation & Configuration walkthrough: add the argo Helm repo, render a helm template pinned to chart 7.7.3 with crds.install=false, and install Argo CD the same way. Then the trap: the 'pre-installed' CRDs were never there, so the controllers crashloop with 'the server could not find the requested resource'. Diagnose it from the logs, apply the CRDs matching the chart's appVersion (v2.13.0), rollout restart, and verify, with real terminal output.

Jul 22, 20267 min read0 reactions0 comments
I
Jul 22, 2026

Install Calico and prove NetworkPolicy enforcement (CKA Services & Networking)

A CKA Services & Networking walkthrough: the exam offers flannel or Calico, but 'must support NetworkPolicy enforcement' eliminates flannel. Install Calico with the Tigera operator manifests (kubectl create, not apply), match the ipPool cidr to the cluster pod CIDR, watch tigerastatus go Available, prove cross-node pod connectivity, then prove a default-deny NetworkPolicy blocks the same ping, with real terminal output.

Jul 22, 20268 min read0 reactions0 comments