You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/checkpoints/5/checkpoint.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -245,13 +245,17 @@ kubectl version --client
245
245
|`kubectl exec -it <pod-name> -- bash`| Open a shell in a running pod. |
246
246
|`kubectl apply -f <file.yaml>`| Apply a configuration file to create/update resources. |
247
247
|`kubectl delete pod <pod-name>`| Delete a specific pod. |
248
+
|`kubectl delete deployment <deployment-name>`| Delete a specific deployment. |
248
249
|`kubectl scale deployment <deployment-name> --replicas=<number>`| Scale a deployment to a specified number of replicas. |
249
250
|`kubectl port-forward <pod-name> <local-port>:<pod-port>`| Forward a local port to a port on a pod. |
250
251
|`kubectl get nodes`| List all nodes in the cluster. |
251
252
|`kubectl get namespaces`| List all namespaces in the cluster. |
252
253
|`kubectl get configmaps`| List all config maps in the current namespace. |
253
254
|`kubectl get secrets`| List all secrets in the current namespace. |
254
255
|`kubectl get ingress`| List all ingress resources in the current namespace. |
256
+
|`kubectl autoscale deployment <deployment-name> --cpu-percent=<target-percentage> --min=<min-replicas> --max=<max-replicas>`| Create or update a Horizontal Pod Autoscaler for a deployment. |
257
+
|`kubectl get hpa`| List all Horizontal Pod Autoscalers in the current namespace. |
258
+
|`kubectl delete hpa <hpa-name>`| Delete a specific Horizontal Pod Autoscaler. |
255
259
|`kubectl delete --all`| Delete all resources in the current namespace. |
0 commit comments