From 705a978aed5baa1c0084860bb173d7c9135b7f8c Mon Sep 17 00:00:00 2001 From: Varsha Aaynure <66114947+VarshaAaynure@users.noreply.github.com> Date: Tue, 19 Mar 2024 18:26:26 +0530 Subject: [PATCH 1/3] Update c.pod_design.md Adding more ways to scale the deployment to 5 replicas --- c.pod_design.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/c.pod_design.md b/c.pod_design.md index d0b55463..5141efd2 100644 --- a/c.pod_design.md +++ b/c.pod_design.md @@ -512,6 +512,23 @@ kubectl scale deploy nginx --replicas=5 kubectl get po kubectl describe deploy nginx ``` +or + +```bash +kubectl edit deploy nginx +# edit replicas to 5 +``` +or + +```bash +kubectl get deploy nginx -o yaml > nginx-deploy.yaml +#edit replicas to 5 +kubctl replace -f replicaset-definition.yml +``` +or +```bash +kubectl scale --replicas=5 -f nginx-deploy.yaml +```

From 4207b320587dc31e095b265737a5553886b09e5c Mon Sep 17 00:00:00 2001 From: Varsha Aaynure <66114947+VarshaAaynure@users.noreply.github.com> Date: Tue, 19 Mar 2024 20:37:06 +0530 Subject: [PATCH 2/3] Update d.configuration.md Updated ns name from one to limitrange as mentioned in the LimitRange first question. --- d.configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d.configuration.md b/d.configuration.md index b8d1ebf0..1b2b1e63 100644 --- a/d.configuration.md +++ b/d.configuration.md @@ -359,7 +359,7 @@ kubernetes.io > Documentation > Concepts > Policies > Limit Ranges (https://kube

```bash -kubectl create ns one +kubectl create ns limitrange ``` vi 1.yaml @@ -368,7 +368,7 @@ apiVersion: v1 kind: LimitRange metadata: name: ns-memory-limit - namespace: one + namespace: limitrange spec: limits: - max: # max and min define the limit range From 7145e72091af4830184594ecdc7b231a4d3b3678 Mon Sep 17 00:00:00 2001 From: Varsha Aaynure <66114947+VarshaAaynure@users.noreply.github.com> Date: Wed, 20 Mar 2024 11:50:15 +0530 Subject: [PATCH 3/3] Update c.pod_design.md Added grep command to view the taints on a node --- c.pod_design.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c.pod_design.md b/c.pod_design.md index 5141efd2..21e7ccda 100644 --- a/c.pod_design.md +++ b/c.pod_design.md @@ -253,7 +253,7 @@ Taint a node: ```bash kubectl taint node node1 tier=frontend:NoSchedule # key=value:Effect -kubectl describe node node1 # view the taints on a node +kubectl describe node node1 | grep i taint # view the taints on a node ``` And to tolerate the taint: