From 93c7781891e27509670d8966b051ab7b6ed9f986 Mon Sep 17 00:00:00 2001 From: Mosiur Rahman Date: Thu, 27 Aug 2026 11:48:46 +0600 Subject: [PATCH] ChatGPT added lab simulations --- CKS-Lessons | 1 + lab/lesson-36-controlplane-before.txt | 199 ++++++++++++++++++++++++++ 2 files changed, 200 insertions(+) create mode 160000 CKS-Lessons create mode 100644 lab/lesson-36-controlplane-before.txt diff --git a/CKS-Lessons b/CKS-Lessons new file mode 160000 index 0000000..eaef1c1 --- /dev/null +++ b/CKS-Lessons @@ -0,0 +1 @@ +Subproject commit eaef1c17a7430b75f78518caf2e8efb17f713910 diff --git a/lab/lesson-36-controlplane-before.txt b/lab/lesson-36-controlplane-before.txt new file mode 100644 index 0000000..374e577 --- /dev/null +++ b/lab/lesson-36-controlplane-before.txt @@ -0,0 +1,199 @@ +[INFO] 1 Control Plane Security Configuration +[INFO] 1.2 API Server +[WARN] 1.2.1 Ensure that the --anonymous-auth argument is set to false (Manual) + +== Remediations master == +1.2.1 Edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the control plane node and set the below parameter. +--anonymous-auth=false + + +== Summary master == +0 checks PASS +0 checks FAIL +1 checks WARN +0 checks INFO + +[INFO] 2 Etcd Node Configuration + +== Summary etcd == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 3 Control Plane Configuration + +== Summary controlplane == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 4 Worker Node Security Configuration + +== Summary node == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 5 Kubernetes Policies + +== Summary policies == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +== Summary total == +0 checks PASS +0 checks FAIL +1 checks WARN +0 checks INFO + + +[INFO] 1 Control Plane Security Configuration +[INFO] 1.2 API Server +[PASS] 1.2.7 Ensure that the --authorization-mode argument includes Node (Automated) + +== Summary master == +1 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 2 Etcd Node Configuration + +== Summary etcd == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 3 Control Plane Configuration + +== Summary controlplane == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 4 Worker Node Security Configuration + +== Summary node == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 5 Kubernetes Policies + +== Summary policies == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +== Summary total == +1 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + + +[INFO] 1 Control Plane Security Configuration + +== Summary master == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 2 Etcd Node Configuration +[INFO] 2 Etcd Node Configuration +[PASS] 2.2 Ensure that the --client-cert-auth argument is set to true (Automated) + +== Summary etcd == +1 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 3 Control Plane Configuration + +== Summary controlplane == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 4 Worker Node Security Configuration + +== Summary node == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 5 Kubernetes Policies + +== Summary policies == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +== Summary total == +1 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 1 Control Plane Security Configuration + +== Summary master == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 2 Etcd Node Configuration +[INFO] 2 Etcd Node Configuration +[PASS] 2.3 Ensure that the --auto-tls argument is not set to true (Automated) + +== Summary etcd == +1 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 3 Control Plane Configuration + +== Summary controlplane == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 4 Worker Node Security Configuration + +== Summary node == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +[INFO] 5 Kubernetes Policies + +== Summary policies == +0 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO + +== Summary total == +1 checks PASS +0 checks FAIL +0 checks WARN +0 checks INFO