apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    sidecar.jaegertracing.io/inject: jaeger
  name: account-worker
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: account-worker
  strategy:
    type: Recreate
  template:
    metadata:
      annotations:
        kubectl.kubernetes.io/restartedAt: "2023-08-03T19:39:19+08:00"
      creationTimestamp: null
      labels:
        app: account-worker
    spec:
      containers:
      - command:
        - account-worker
        env:
        - name: CENTRAL_ROLE
          value: WORKER
        - name: GCP_WORKLOAD_IDENTITY_AUDIENCE
          value: //iam.googleapis.com/projects/301623017899/locations/global/workloadIdentityPools/prod-dbaas/providers/prod-dbaas-eks-oidc
        - name: GCP_IMPERSONATE_SA
          value: prod-prod-central@dbaas-prod.iam.gserviceaccount.com
        - name: IMAGE_TAG
          value: 0d50cc208ecfcc226eddb3b188d75987580f3e98
        - name: AWS_DEFAULT_REGION
          value: us-west-2
        - name: AWS_REGION
          value: us-west-2
        - name: SQS_QUEUE_URL
          value: https://sqs.us-west-2.amazonaws.com/380838443567/account
        image: 385595570414.dkr.ecr.us-west-2.amazonaws.com/dbaas/staging/account:0d50cc208ecfcc226eddb3b188d75987580f3e98
        imagePullPolicy: IfNotPresent
        name: account-worker
        readinessProbe:
          failureThreshold: 10
          httpGet:
            path: /healthz
            port: 11000
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 5
          successThreshold: 1
          timeoutSeconds: 1
        resources:
          limits:
            cpu: 500m
            memory: 500Mi
          requests:
            cpu: 500m
            memory: 500Mi
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/dbaas
          name: dbaas-central-config
          readOnly: true
        - mountPath: /var/log/central
          name: dbaas-central-auditlog
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: central
      serviceAccountName: central
      terminationGracePeriodSeconds: 30
      volumes:
      - configMap:
          defaultMode: 420
          name: argo-account-central-conf
        name: dbaas-central-config
      - emptyDir: {}
        name: dbaas-central-auditlog
