File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ kubectl create deployment <name> --image <image name>
27
27
kubectl create deployment mynginx --image nginx
28
28
```
29
29
30
- - To sacle the deployment (increase replicas)
30
+ - To scale the deployment (increase replicas)
31
31
32
32
```
33
33
kubectl scale deployment <deployment name> --replicas <no of replicas>
@@ -40,7 +40,7 @@ kubectl scale deployment mynginx --replicas 2
40
40
kubectl get all
41
41
```
42
42
43
- - To get the get details from the a particular namespace
43
+ - To get the get details from a particular namespace
44
44
45
45
``` bash
46
46
kubectl get all -n < namespace name>
@@ -112,7 +112,7 @@ kubectl delete pod <pod-name>
112
112
kubectl logs < pod-name>
113
113
```
114
114
115
- - To check logs or sh/bash of a container inside a pod. That if pods have multiple container an we have enter inside a container
115
+ - To check logs or sh/bash of a container inside a pod, if pods have multiple container, we can enter inside a container
116
116
117
117
``` bash
118
118
kube exec -it < pod-name> -c < container-name> -- < bash command>
@@ -189,7 +189,7 @@ kubectl get pv
189
189
kubectl get pvc
190
190
```
191
191
192
- - To chnage default/active namespace
192
+ - To change default/active namespace
193
193
194
194
``` bash
195
195
kubectl config set-context --current --namespace=< namespace name>
@@ -199,4 +199,4 @@ kubectl config set-context --current --namespace=<namespace name>
199
199
200
200
``` bash
201
201
kubectl get all -n < namespace name>
202
- ```
202
+ ```
You can’t perform that action at this time.
0 commit comments