Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.8.1 #109

Merged
merged 17 commits into from
Feb 10, 2024
Prev Previous commit
Next Next commit
Ag 25 (#102)
Create summary list of labs
  • Loading branch information
ViktorUJ authored Feb 2, 2024
commit 5f80c868ceac9d48b94c89863dc9df6d65c6b6fe
10 changes: 5 additions & 5 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Every command should be run from the project's root directory.
<summary style="font-weight: bold; font-size: 1.5em;">CKA</summary>

### cka task
- ``TASK=01 make run_cka_task`` - create cka [hands-on labs](tasks%2Fcka%2Flabs) [number 01](tasks%2Fcka%2Flabs%2F01)
- ``TASK=01 make run_cka_task`` - create cka [hands-on labs](docs%2Flabs.MD#cka-labs) number 01
- ``TASK=01 make delete_cka_task`` - delete cka hands-on labs
- ``TASK=01 make run_cka_task_clean`` - run cka_task with clean terragrunt cache for cka_task
- ``make output_cka_task `` - show **outputs** from **cka_task**
Expand All @@ -106,7 +106,7 @@ Every command should be run from the project's root directory.
<summary style="font-weight: bold; font-size: 1.5em;">CKS</summary>

### cks task
- ``TASK=10 make run_cks_task`` - create cks [hands-on labs](tasks%2Fcks%2Flabs) [number 10](tasks%2Fcks%2Flabs%2F10)
- ``TASK=10 make run_cks_task`` - create cks [hands-on labs](docs%2Flabs.MD#cks-labs) number 10
- ``TASK=10 make delete_cks_task`` - delete cks hands-on labs
- ``TASK=10 make run_cks_task_clean`` - run cks_task with clean terragrunt cache for cks_task
- ``make output_cks_task `` - show **outputs** from **cks_task**
Expand Down Expand Up @@ -149,7 +149,7 @@ Every command should be run from the project's root directory.
<details>
<summary style="font-weight: bold; font-size: 1.5em;">CKA hands-on lab</summary>

- choose [a hands-on lab](tasks%2Fcka%2Flabs) number
- choose [a hands-on lab](docs%2Flabs.MD#cka-labs) number
- create cka lab cluster ``TASK={lab_number} make run_cka_task``
- find {master_external_ip} in terraform output
- log in to master node via ssh ``ssh ubuntu@{master_external_ip} -i {key}``
Expand Down Expand Up @@ -183,7 +183,7 @@ Every command should be run from the project's root directory.
<details>
<summary style="font-weight: bold; font-size: 1.5em;">CKS hands-on lab</summary>

- choose [CKS lab](tasks%2Fcks%2Flabs%2FREADME.MD) number
- choose [CKS lab](docs%2Flabs.MD#cks-labs) number
- change **ami_id** in ``{lab_number}/scripts/terragrunt.hcl`` if you changed **region**
- create cka lab cluster ``TASK={lab_number} make run_cks_task``
- find {master_external_ip} in terraform output
Expand Down Expand Up @@ -261,7 +261,7 @@ Every command should be run from the project's root directory.
<details>
<summary style="font-weight: bold; font-size: 1.5em;">EKS hands-on lab</summary>

- choose [labs](tasks%2Feks%2Flabs) number
- choose [labs](docs%2Flabs.MD#eks-labs) number
- create hands-on lab `` TASK={lab_number} make run_eks_task ``
- find ``worker_pc_ip`` in ``terraform output``
- log in to worker_pc node via ssh ``ssh ubuntu@{worker_pc_ip} -i {key}``
Expand Down
70 changes: 70 additions & 0 deletions docs/labs.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
## CKS labs
- ``TASK=01 make run_cks_task`` - create cks lab number 01
- ``TASK=01 make delete_cks_task`` - delete cks hands-on labs
- ``TASK=01 make run_cks_task_clean`` - run cks_task with clean terragrunt cache for cks_task
- ``make output_cks_task `` - show **outputs** from **cks_task**



| Task | Description | Solution |
|--------|------------------------------------------------------|------------------------------|
| **01** | [kubectl contexts](..%2Ftasks%2Fcks%2Flabs%2F01%2FREADME.MD)| [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F01%2FSOLUTION.MD) |
| **02** | [Falco, sysdig](..%2Ftasks%2Fcks%2Flabs%2F02%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F02%2FSOLUTION.MD) |
| **03** | [Kube-api. disable access via nodePort](..%2Ftasks%2Fcks%2Flabs%2F03%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F03%2FSOLUTION.MD) |
| **04** | [Pod Security Standard](..%2Ftasks%2Fcks%2Flabs%2F04%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F04%2FSOLUTION.MD) |
| **05** | [CIS Benchmark](..%2Ftasks%2Fcks%2Flabs%2F05%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F05%2FSOLUTION.MD) |
| **07** | [Open Policy Agent - Blacklist Images](..%2Ftasks%2Fcks%2Flabs%2F07%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F07%2FSOLUTION.MD) |
| **09** | [AppArmor](..%2Ftasks%2Fcks%2Flabs%2F09%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F09%2FSOLUTION.MD) |
| **10** | [Container Runtime Sandbox gVisor](..%2Ftasks%2Fcks%2Flabs%2F10%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F10%2FSOLUTION.MD) |
| **11** | [Read the complete Secret content directly from ETCD](..%2Ftasks%2Fcks%2Flabs%2F11%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F11%2FSOLUTION.MD) |
| **17** | [Enable audit log](..%2Ftasks%2Fcks%2Flabs%2F17%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F17%2FSOLUTION.MD) |
| **19** | [Fix Dockerfile](..%2Ftasks%2Fcks%2Flabs%2F19%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F19%2FSOLUTION.MD) |
| **20** | [Update Kubernetes cluster](..%2Ftasks%2Fcks%2Flabs%2F20%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F20%2FSOLUTION.MD) |
| **21** | [Image Vulnerability Scanning](..%2Ftasks%2Fcks%2Flabs%2F21%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F21%2FSOLUTION.MD) |
| **22** | [Network policy](..%2Ftasks%2Fcks%2Flabs%2F22%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F22%2FSOLUTION.MD) |
| **23** | [Set tls version and allowed ciphers for etcd, kube-api](..%2Ftasks%2Fcks%2Flabs%2F23%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F23%2FSOLUTION.MD) |
| **24** | [Encrypt secrets in ETCD](..%2Ftasks%2Fcks%2Flabs%2F24%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F24%2FSOLUTION.MD) |
| **25** | [Image policy webhook](..%2Ftasks%2Fcks%2Flabs%2F25%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcks%2Flabs%2F25%2FSOLUTION.MD) |



## CKA labs

- ``TASK=01 make run_cka_task`` - create cka lab number 01
- ``TASK=01 make delete_cka_task`` - delete cka hands-on labs
- ``TASK=01 make run_cka_task_clean`` - run cka_task with clean terragrunt cache for cka_task
- ``make output_cka_task `` - show **outputs** from **cka_task**


| Task | Description | Solution |
|--------|----------------------------------------------------|------------------------------|
| **02** | [Horizontal Pod Autoscaling .CPU ](..%2Ftasks%2Fcka%2Flabs%2F02%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcka%2Flabs%2F02%2Fworker%2Ffiles%2Fsolutions%2F1.MD) |



## CKAD labs

- ``TASK=01 make run_ckad_task`` - create ckad lab number 01
- ``TASK=01 make delete_ckad_task`` - delete ckad hands-on labs
- ``TASK=01 make run_ckad_task_clean`` - run cka_task with clean terragrunt cache for ckad_task
- ``make output_ckad_task `` - show **outputs** from **ckad_task**


| Task | Description | Solution |
|--------|---------------------------------------------------|------------------------------|
| **01** | [test ](..%2Ftasks%2Fcka%2Flabs%2F02%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcka%2Flabs%2F02%2Fworker%2Ffiles%2Fsolutions%2F1.MD) |




## EKS labs

- ``TASK=01 make run_eks_task`` - create ckad lab number 01
- ``TASK=01 make delete_eks_task`` - delete ckad hands-on labs
- ``TASK=01 make run_eks_task_clean`` - run cka_task with clean terragrunt cache for ckad_task
- ``make output_eks_task `` - show **outputs** from **ckad_task**


| Task | Description | Solution |
|--------|---------------------------------------------------|------------------------------|
| **01** | [test ](..%2Ftasks%2Fcka%2Flabs%2F02%2FREADME.MD) | [SOLUTION](..%2Ftasks%2Fcka%2Flabs%2F02%2Fworker%2Ffiles%2Fsolutions%2F1.MD) |
7 changes: 0 additions & 7 deletions tasks/cka/labs/01/README.MD

This file was deleted.

13 changes: 0 additions & 13 deletions tasks/cka/labs/01/SOLUTION.MD

This file was deleted.

120 changes: 0 additions & 120 deletions tasks/cka/labs/01/scripts/kube-apiserver.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions tasks/cka/labs/01/scripts/master.sh

This file was deleted.

100 changes: 0 additions & 100 deletions tasks/cka/labs/01/scripts/terragrunt.hcl

This file was deleted.

2 changes: 0 additions & 2 deletions tasks/cka/labs/01/scripts/worker.sh

This file was deleted.

3 changes: 3 additions & 0 deletions tasks/cka/labs/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## [CKA labs list ](..%2F..%2F..%2Fdocs%2Flabs.MD#cka-labs)


Loading