From 971941d253ff69716d10d5fc560f47f21f9caf8f Mon Sep 17 00:00:00 2001 From: Abu shahma <57855765+Shahmaz0@users.noreply.github.com> Date: Fri, 2 Feb 2024 18:47:34 +0530 Subject: [PATCH] Updated CKA.md (#390) resolved some issues, I hot it was helpful. --- topics/kubernetes/CKA.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/topics/kubernetes/CKA.md b/topics/kubernetes/CKA.md index d835541..a00c37a 100644 --- a/topics/kubernetes/CKA.md +++ b/topics/kubernetes/CKA.md @@ -22,7 +22,7 @@ ## Setup -* Set up Kubernetes cluster. Use on of the following +* Set up Kubernetes cluster. Use one of the following 1. Minikube for local free & simple cluster 2. Managed Cluster (EKS, GKE, AKS) @@ -54,7 +54,7 @@ Note: create an alias (`alias k=kubectl`) and get used to `k get po`
-Assuming you have a Pod called "nginx-test", how to remove it?
+Assuming that you have a Pod called "nginx-test", how to remove it?
`k delete nginx-test`
@@ -107,7 +107,7 @@ If you ask yourself how would I remember writing all of that? no worries, you ca
How to test a manifest is valid?
-with `--dry-run` flag which will not actually create it, but it will test it and you can find this way any syntax issues. +with `--dry-run` flag which will not actually create it, but it will test it and you can find this way, any syntax issues. `k create -f YAML_FILE --dry-run`
@@ -158,7 +158,11 @@ To count them: `k get po -l env=prod --no-headers | wc -l` 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) Now create the definition/manifest in that directory + +`k run some-pod --image=python --command sleep 2017 --restart=Never --dry-run=client -o yaml > status-pod.yaml` +======= `k run some-pod --image=python --command sleep 2017 --restart=Never --dry-run=client -o yaml > static-pod.yaml` +