github.com/argoproj/argo-cd/v3@v3.2.1/manifests/base/commit-server/argocd-commit-server-deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    labels:
     5      app.kubernetes.io/name: argocd-commit-server
     6      app.kubernetes.io/part-of: argocd
     7      app.kubernetes.io/component: commit-server
     8    name: argocd-commit-server
     9  spec:
    10    selector:
    11      matchLabels:
    12        app.kubernetes.io/name: argocd-commit-server
    13    template:
    14      metadata:
    15        labels:
    16          app.kubernetes.io/name: argocd-commit-server
    17      spec:
    18        serviceAccountName: argocd-commit-server
    19        automountServiceAccountToken: false
    20        containers:
    21        - name: argocd-commit-server
    22          image: quay.io/argoproj/argocd:latest
    23          imagePullPolicy: Always
    24          args:
    25            - /usr/local/bin/argocd-commit-server
    26          env:
    27            - name: ARGOCD_COMMIT_SERVER_LISTEN_ADDRESS
    28              valueFrom:
    29                configMapKeyRef:
    30                  name: argocd-cmd-params-cm
    31                  key: commitserver.listen.address
    32                  optional: true
    33            - name: ARGOCD_COMMIT_SERVER_METRICS_LISTEN_ADDRESS
    34              valueFrom:
    35                configMapKeyRef:
    36                  name: argocd-cmd-params-cm
    37                  key: commitserver.metrics.listen.address
    38                  optional: true
    39            - name: ARGOCD_COMMIT_SERVER_LOGFORMAT
    40              valueFrom:
    41                configMapKeyRef:
    42                  name: argocd-cmd-params-cm
    43                  key: commitserver.log.format
    44                  optional: true
    45            - name: ARGOCD_COMMIT_SERVER_LOGLEVEL
    46              valueFrom:
    47                configMapKeyRef:
    48                  name: argocd-cmd-params-cm
    49                  key: commitserver.log.level
    50                  optional: true
    51            - name: ARGOCD_LOG_FORMAT_TIMESTAMP
    52              valueFrom:
    53                configMapKeyRef:
    54                  name: argocd-cmd-params-cm
    55                  key: log.format.timestamp
    56                  optional: true
    57          ports:
    58          - containerPort: 8086
    59          - containerPort: 8087
    60          livenessProbe:
    61            httpGet:
    62              path: /healthz?full=true
    63              port: 8087
    64            initialDelaySeconds: 30
    65            periodSeconds: 30
    66            failureThreshold: 3
    67            timeoutSeconds: 5
    68          readinessProbe:
    69            httpGet:
    70              path: /healthz
    71              port: 8087
    72            initialDelaySeconds: 5
    73            periodSeconds: 10
    74          securityContext:
    75            runAsNonRoot: true
    76            readOnlyRootFilesystem: true
    77            allowPrivilegeEscalation: false
    78            capabilities:
    79              drop:
    80              - ALL
    81            seccompProfile:
    82              type: RuntimeDefault
    83          volumeMounts:
    84          - name: ssh-known-hosts
    85            mountPath: /app/config/ssh
    86          - name: tls-certs
    87            mountPath: /app/config/tls
    88          - name: gpg-keys
    89            mountPath: /app/config/gpg/source
    90          - name: gpg-keyring
    91            mountPath: /app/config/gpg/keys
    92          # We need a writeable temp directory for the askpass socket file.
    93          - name: tmp
    94            mountPath: /tmp
    95        volumes:
    96          - name: ssh-known-hosts
    97            configMap:
    98              name: argocd-ssh-known-hosts-cm
    99          - name: tls-certs
   100            configMap:
   101              name: argocd-tls-certs-cm
   102          - name: gpg-keys
   103            configMap:
   104              name: argocd-gpg-keys-cm
   105          - name: gpg-keyring
   106            emptyDir: {}
   107          - name: tmp
   108            emptyDir: {}
   109          - name: argocd-commit-server-tls
   110            secret:
   111              secretName: argocd-commit-server-tls
   112              optional: true
   113              items:
   114              - key: tls.crt
   115                path: tls.crt
   116              - key: tls.key
   117                path: tls.key
   118              - key: ca.crt
   119                path: ca.crt
   120        affinity:
   121          podAntiAffinity:
   122            preferredDuringSchedulingIgnoredDuringExecution:
   123            - weight: 100
   124              podAffinityTerm:
   125                labelSelector:
   126                  matchLabels:
   127                    app.kubernetes.io/name: argocd-commit-server
   128                topologyKey: kubernetes.io/hostname
   129            - weight: 5
   130              podAffinityTerm:
   131                labelSelector:
   132                  matchLabels:
   133                    app.kubernetes.io/part-of: argocd
   134                topologyKey: kubernetes.io/hostname