
Processo de atualização para seu cluster Kubernetes
- Kubernetes . , . Kubernetes "Voluntary Disruption".
4 :
- .
- podā Kubernetes-
- pod'
- Kubernetes- PodDisruptionBudgets
(. . )
, Kubernetes .
, , . , lifecycle hooks, readiness probes Pod disruption budgets .
, . , Kubernetes , pod'a, Service
:

podā Nginx Service Kubernetes-.
. ? , . , :
- , podā . podā ? , , .
- ? podā .
podā , , . , ( VM), . podā , podā. kubectl drain
.
podā
drain podā . drain unschedulable ( NoSchedule
). podā. drain podā , , TERM
podā.
kubectl drain
podā, , drain:
TERM
. podā , Kubernetes TERM
, , , . , , podā , (, ).- podā, . , podā , .
voluntary disruption, , , drain , Kubernetes :
Kubernetes podā. , :
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.15
ports:
- containerPort: 80
---
kind: Service
apiVersion: v1
metadata:
name: nginx-service
spec:
selector:
app: nginx
ports:
- protocol: TCP
targetPort: 80
port: 80
Deployment
, podā nginx . , Service
, podā nginx .
, , Kubernetes .
Kubernetes AWS , Gruntwork.io.
: