CKS_FINALE
This commit is contained in:
24
submissions/CKS-019-completed.md
Normal file
24
submissions/CKS-019-completed.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# CKS-019 — Protect administrator kubeconfig
|
||||
|
||||
Domain: **2.3 Restrict Kubernetes API access**
|
||||
Time: **2 minutes** · Reward: **100 XP + topic mastery**
|
||||
|
||||
## Task
|
||||
|
||||
On `controlplane`:
|
||||
|
||||
```text
|
||||
/etc/kubernetes/admin.conf mode=0644 owner=root group=root
|
||||
```
|
||||
|
||||
Back it up to `/root/admin.conf.backup`, change only its mode to `0600`, and verify numeric mode plus `owner:group`.
|
||||
|
||||
## Section B — scored answer
|
||||
|
||||
```bash
|
||||
cp /etc/kubernetes/admin.conf /root/admin.conf.backup
|
||||
chmod 0600 /etc/kubernetes/admin.conf
|
||||
stat /etc/kubernetes/admin.conf
|
||||
```
|
||||
|
||||
Say **Grade CKS-019** when saved.
|
||||
Reference in New Issue
Block a user