Starting Kubernetes Security with Illustration
I have translated the slide I made in Japanese. It maybe helpful for people studying CKS...
Tag archive
I have translated the slide I made in Japanese. It maybe helpful for people studying CKS...
CKS Lesson 5: run kube-bench (CIS benchmark) on a control plane and a worker, then fix three findings: kube-scheduler --profiling=false (1.4.1), kubelet config.yaml permissions to 600 (4.1.9), and kubelet anonymous auth off (4.2.1). Each fix is re-checked, and we show what anonymous kubelet auth allowed. Real terminal output throughout.
CKS Lesson 4: a Deployment mounts /var/log/pods through hostPath and can read every pod's logs on the node. Preview with kubectl label --dry-run=server, enforce the baseline Pod Security Standard with one namespace label, delete the pod, and save the ReplicaSet's FailedCreate event that explains why it is not recreated. Real terminal output throughout.
CKS Lesson 3: the API server is reachable through a NodePort because of --kubernetes-service-node-port. Remove the flag from the static pod manifest (backup outside the manifests folder), then delete the kubernetes Service so the API server recreates it as ClusterIP. Includes the anonymous /version probe that shows why it matters. Real terminal output throughout.
CKS Lesson 2: write every kubeconfig context name to a file with get-contexts -o name, then extract one user's client certificate with config view --raw, a jsonpath filter and base64 -d. Then read it with openssl (CN is the username, O is the group) and prove it authenticates. Real terminal output throughout.
CKS Lesson 1: decode specific keys from Kubernetes Secrets with jsonpath and base64 -d, write them to a file one per line (and dodge the echo -n newline trap), then create a Secret with --from-literal and mount it into a pod read-only. Real terminal output throughout.

Hi! I'm Aoi! I Passed the CKS Exam — Here's My Story! I passed the CKS exam and I'm so...
CKS Study Memo on PSS and PSA The Official Document Pod Security Standards Pod Security...
Accelerate your CKS Training with 3 hands-on labs. Learn to use exec and port forwarding for debugging, update deprecated API manifests, and manage ephemeral and persistent volumes.

Part 7 of 7 — The Mac Kubernetes Lab: A Production-Mirror Setup from Scratch. Previously in Part 6:...

Part 3 of 7 — The Mac Kubernetes Lab: A Production-Mirror Setup from Scratch. Previously in Part 2:...
Introduction Kubernetes is now the standard way to run applications in containers. Many...