Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
3.8 kB
2
Indexable
Never
apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
    monitoring: "true"
  creationTimestamp: null
  generation: 2
  labels:
    ceres.service: ceres-traksys-worker
    tags.datadoghq.com/env: ambevtech-brewtech-aks-qa
    tags.datadoghq.com/service: ceres-traksys-worker
    tags.datadoghq.com/version: $(Build.SourceVersion)
  name: ceres-traksys-worker
  namespace: ceres-qa
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      ceres.service: ceres-traksys-worker
  strategy:
    type: Recreate
  template:
    metadata:
      creationTimestamp: null
      labels:
        ceres.service: ceres-traksys-worker
        tags.datadoghq.com/env: ambevtech-brewtech-aks-qa
        tags.datadoghq.com/service: ceres-traksys-worker
        tags.datadoghq.com/version: $(Build.SourceVersion)
    spec:
      containers:
        - env:
            - name: var_log_level
              value: "Trace"
            - name: var_traksys_server
              value: "snpr2d2dev-ondemand.sql.azuresynapse.net,1433"
            - name: var_traksys_catalog
              value: "mesglobal"
            - name: var_traksys_timeout
              value: "6000"
            - name: var_traksys_user
              value: "srv_ceres@ambev.com.br"
            - name: var_traksys_password
              value: "fjkjah$#554iYTardadhfYUteaer#j"
            - name: var_hierarchy_url
              value: "http://ceres-hierarchy-data:9300"
            - name: var_ceres_process_missing_batches
              value: "true"
            - name: var_redis_host
              value: "$(redis-host)"
            - name: var_redis_port
              value: "$(redis-port)"
            - name: var_redis_password
              value: "$(redis-pwd)"
            - name: var_cron_processupdatebatches
              value: "0 0 * * *"
            - name: var_cron_processmissingbatches
              value: "00 15 * * *"
            - name: DD_ENV
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: metadata.labels['tags.datadoghq.com/env']
            - name: DD_SERVICE
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: metadata.labels['tags.datadoghq.com/service']
            - name: DD_VERSION
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: metadata.labels['tags.datadoghq.com/version']
            - name: DD_AGENT_HOST
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: status.hostIP
            - name: DD_AGENT_HOST_PORT
              value: "8126"
          envFrom:
            - configMapRef:
                name: datadog
          image: docker.ambevdevs.com.br/ceres-traksys-worker:$(Release.Artifacts.CI-ceres-traksys-worker.BuildNumber)
          imagePullPolicy: Always
          name: ceres-traksys-worker
          resources:
            limits:
              cpu: 500m
              memory: 500Mi
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      imagePullSecrets:
        - name: ceres-secret
      nodeSelector:
        agentpool: apps
      tolerations:
        - key: "kubernetes.azure.com/scalesetpriority"
          operator: "Equal"
          value: "spot"
          effect: "NoSchedule"
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
status: {}