Advertisement
sergio_educacionit

nginx-dp.yaml

Sep 1st, 2023 (edited)
919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.60 KB | None | 0 0
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4.   name: nginx-dp
  5.   namespace: default
  6.   labels:
  7.     app: nginx-dp
  8. spec:
  9.   revisionHistoryLimit: 2
  10.   strategy:
  11.     type: RollingUpdate
  12.     rollingUpdate:
  13.       maxUnavailable: 0 # Cambia este valor según tus necesidades
  14.       maxSurge: 1 # Cambia este valor según tus necesidades
  15.   replicas: 3
  16.   selector:
  17.     matchLabels:
  18.       app: nginx-dp
  19.   template:
  20.     metadata:
  21.       labels:
  22.         app: nginx-dp
  23.     spec:
  24.       containers:
  25.       - name: nginx
  26.         image: nginx:1.18
  27.         ports:
  28.         - name: http
  29.           containerPort: 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement