apiVersion: apps/v1
kind: Deployment
metadata:
  name: pod-rolling
spec:
  replicas: 5
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 3 # 업데이트 도중 포드의 개수가 deployment의 replicas 값보다 더 존재할 수 있는 양
      maxUnavailable: 3 # 업데이트 도중 사용 불가능한 상태가 되는 포드의 최대 개수
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      name: nginx
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx
        ports:
        - containerPort: 80

 

'IT Study > Memo & Tips' 카테고리의 다른 글

gift  (0) 2023.11.10
[K8S] taint & tolerations  (0) 2022.08.24
[AWS] EKS ALB Ingress Controller - ingress class 변경  (0) 2022.08.24
eksctl, kubectl install  (0) 2022.08.12
[AWS] EKS IAM  (0) 2022.08.09
ITguny