Skip to content

Commit b2ccab4

Browse files
committed
hpa
1 parent 2209662 commit b2ccab4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/checkpoints/5/checkpoint.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,17 @@ kubectl version --client
245245
| `kubectl exec -it <pod-name> -- bash` | Open a shell in a running pod. |
246246
| `kubectl apply -f <file.yaml>` | Apply a configuration file to create/update resources. |
247247
| `kubectl delete pod <pod-name>` | Delete a specific pod. |
248+
| `kubectl delete deployment <deployment-name>` | Delete a specific deployment. |
248249
| `kubectl scale deployment <deployment-name> --replicas=<number>` | Scale a deployment to a specified number of replicas. |
249250
| `kubectl port-forward <pod-name> <local-port>:<pod-port>` | Forward a local port to a port on a pod. |
250251
| `kubectl get nodes` | List all nodes in the cluster. |
251252
| `kubectl get namespaces` | List all namespaces in the cluster. |
252253
| `kubectl get configmaps` | List all config maps in the current namespace. |
253254
| `kubectl get secrets` | List all secrets in the current namespace. |
254255
| `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. |
255259
| `kubectl delete --all` | Delete all resources in the current namespace. |
256260

257261
## Minikube

0 commit comments

Comments
 (0)