더북(TheBook)
k8s/smb/rollout.yaml
  apiVersion: argoproj.io/v1alpha1
  kind: Rollout
  metadata:
    name: notiflex-api
    namespace: notiflex
  spec:
    replicas: 2
    revisionHistoryLimit: 3
    selector:
      matchLabels:
        app: notiflex-api
    strategy:
      blueGreen:
        activeService: notiflex-api
        previewService: notiflex-api-preview
        autoPromotionEnabled: true
        autoPromotionSeconds: 30
    template:
      metadata:
        labels:
          app: notiflex-api
      spec:
        containers:
        - name: notiflex-api
          image: asia-northeast3-docker.pkg.dev/PROJECT_ID/notiflex/api:v0.1.1
          ports:
          - containerPort: 8080
          resources:
            requests:
              cpu: 50m
              memory: 64Mi
            limits:
              cpu: 100m
              memory: 128Mi
          readinessProbe:
            httpGet:
              path: /health
              port: 8080
            initialDelaySeconds: 5
            periodSeconds: 10
          livenessProbe:
            httpGet:
              path: /health
              port: 8080
            initialDelaySeconds: 10
            periodSeconds: 30