modified: README.md
This commit is contained in:
30
README.md
30
README.md
@@ -7,7 +7,6 @@ Kubernetes is an open‑source platform that automates the deployment, scaling,
|
|||||||
- [Get Pod](#get-pod)
|
- [Get Pod](#get-pod)
|
||||||
- [Pod delete](#pod-delete)
|
- [Pod delete](#pod-delete)
|
||||||
- [OOMKilled](#oomkilled)
|
- [OOMKilled](#oomkilled)
|
||||||
- [Rollout](#rollout)
|
|
||||||
- [Custom Resource Definitions](#custom-resource-definitions)
|
- [Custom Resource Definitions](#custom-resource-definitions)
|
||||||
- [Helper pods](#helper-pods)
|
- [Helper pods](#helper-pods)
|
||||||
- [network testing](#network-testing)
|
- [network testing](#network-testing)
|
||||||
@@ -23,6 +22,9 @@ Kubernetes is an open‑source platform that automates the deployment, scaling,
|
|||||||
- [Manifest - StringData](#manifest---stringdata)
|
- [Manifest - StringData](#manifest---stringdata)
|
||||||
- [Inline with heredoc and environment variables](#inline-with-heredoc-and-environment-variables)
|
- [Inline with heredoc and environment variables](#inline-with-heredoc-and-environment-variables)
|
||||||
- [substr](#substr)
|
- [substr](#substr)
|
||||||
|
- [Deployment](#deployment)
|
||||||
|
- [Deployment - Set Replicas](#deployment---set-replicas)
|
||||||
|
- [Deployment - Restart](#deployment---restart)
|
||||||
- [certs](#certs)
|
- [certs](#certs)
|
||||||
- [list all certs](#list-all-certs)
|
- [list all certs](#list-all-certs)
|
||||||
- [get cert end date](#get-cert-end-date)
|
- [get cert end date](#get-cert-end-date)
|
||||||
@@ -68,7 +70,7 @@ echo $POD_NAME
|
|||||||
|
|
||||||
### Pod delete
|
### Pod delete
|
||||||
|
|
||||||
**Restart local Path Provizionizer:**
|
**Restart local Path Provisioner:**
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
kubectl delete pod -n kube-system -l app=local-path-provisioner
|
kubectl delete pod -n kube-system -l app=local-path-provisioner
|
||||||
@@ -88,13 +90,6 @@ kubectl get pods --all-namespaces \
|
|||||||
| grep OOMKilled
|
| grep OOMKilled
|
||||||
```
|
```
|
||||||
|
|
||||||
### Rollout
|
|
||||||
|
|
||||||
**rollout coredns:**
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
kubectl rollout restart deployment coredns -n kube-system
|
|
||||||
```
|
|
||||||
|
|
||||||
### Custom Resource Definitions
|
### 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 <name> --replicas=0
|
||||||
|
```
|
||||||
|
|
||||||
|
### Deployment - Restart
|
||||||
|
|
||||||
|
**example restart coredns:**
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
kubectl rollout restart deployment coredns -n kube-system
|
||||||
|
```
|
||||||
|
|
||||||
## certs
|
## certs
|
||||||
|
|
||||||
### list all certs
|
### list all certs
|
||||||
|
|||||||
Reference in New Issue
Block a user