Skip to content

Commit 971941d

Browse files
authored
Updated CKA.md (bregman-arie#390)
resolved some issues, I hot it was helpful.
1 parent 66d5ba7 commit 971941d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

topics/kubernetes/CKA.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
## Setup
2424

25-
* Set up Kubernetes cluster. Use on of the following
25+
* Set up Kubernetes cluster. Use one of the following
2626
1. Minikube for local free & simple cluster
2727
2. Managed Cluster (EKS, GKE, AKS)
2828

@@ -54,7 +54,7 @@ Note: create an alias (`alias k=kubectl`) and get used to `k get po`
5454
</b></details>
5555

5656
<details>
57-
<summary>Assuming you have a Pod called "nginx-test", how to remove it?</summary><br><b>
57+
<summary>Assuming that you have a Pod called "nginx-test", how to remove it?</summary><br><b>
5858

5959
`k delete nginx-test`
6060
</b></details>
@@ -107,7 +107,7 @@ If you ask yourself how would I remember writing all of that? no worries, you ca
107107
<details>
108108
<summary>How to test a manifest is valid?</summary><br><b>
109109

110-
with `--dry-run` flag which will not actually create it, but it will test it and you can find this way any syntax issues.
110+
with `--dry-run` flag which will not actually create it, but it will test it and you can find this way, any syntax issues.
111111

112112
`k create -f YAML_FILE --dry-run`
113113
</b></details>
@@ -158,7 +158,11 @@ To count them: `k get po -l env=prod --no-headers | wc -l`
158158
First change to the directory tracked by kubelet for creating static pod: `cd /etc/kubernetes/manifests` (you can verify path by reading kubelet conf file)
159159

160160
Now create the definition/manifest in that directory
161+
162+
`k run some-pod --image=python --command sleep 2017 --restart=Never --dry-run=client -o yaml > status-pod.yaml`
163+
=======
161164
`k run some-pod --image=python --command sleep 2017 --restart=Never --dry-run=client -o yaml > static-pod.yaml`
165+
162166
</b></details>
163167

164168
<details>

0 commit comments

Comments
 (0)