diff --git a/c.pod_design.md b/c.pod_design.md index 660f7a7..db20811 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: @@ -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 +```