Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: nginx-dp
- namespace: default
- labels:
- app: nginx-dp
- spec:
- revisionHistoryLimit: 2
- strategy:
- type: RollingUpdate
- rollingUpdate:
- maxUnavailable: 0 # Cambia este valor según tus necesidades
- maxSurge: 1 # Cambia este valor según tus necesidades
- replicas: 3
- selector:
- matchLabels:
- app: nginx-dp
- template:
- metadata:
- labels:
- app: nginx-dp
- spec:
- containers:
- - name: nginx
- image: nginx:1.18
- ports:
- - name: http
- containerPort: 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement