From 2ebc5f5c615f5d2aa0fe9e0ed889d5cc1cde4b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sat, 24 Jan 2026 19:16:26 +0000 Subject: [PATCH] modified: README.md --- README.md | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ad404ce..5573366 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ Kubernetes is an open‑source platform that automates the deployment, scaling, - [Get Pod](#get-pod) - [Pod delete](#pod-delete) - [OOMKilled](#oomkilled) - - [Rollout](#rollout) - [Custom Resource Definitions](#custom-resource-definitions) - [Helper pods](#helper-pods) - [network testing](#network-testing) @@ -23,6 +22,9 @@ Kubernetes is an open‑source platform that automates the deployment, scaling, - [Manifest - StringData](#manifest---stringdata) - [Inline with heredoc and environment variables](#inline-with-heredoc-and-environment-variables) - [substr](#substr) +- [Deployment](#deployment) + - [Deployment - Set Replicas](#deployment---set-replicas) + - [Deployment - Restart](#deployment---restart) - [certs](#certs) - [list all certs](#list-all-certs) - [get cert end date](#get-cert-end-date) @@ -68,7 +70,7 @@ echo $POD_NAME ### Pod delete -**Restart local Path Provizionizer:** +**Restart local Path Provisioner:** ``` bash kubectl delete pod -n kube-system -l app=local-path-provisioner @@ -88,13 +90,6 @@ kubectl get pods --all-namespaces \ | grep OOMKilled ``` -### Rollout - -**rollout coredns:** - -``` bash -kubectl rollout restart deployment coredns -n kube-system -``` ### Custom Resource Definitions @@ -322,6 +317,23 @@ envsubst < ./secret.yaml | kubectl apply -f - ``` +## Deployment + +### Deployment - Set Replicas + +``` bash +# example with 0 to "disable" deployment +kubectl scale deployment --replicas=0 +``` + +### Deployment - Restart + +**example restart coredns:** + +``` bash +kubectl rollout restart deployment coredns -n kube-system +``` + ## certs ### list all certs