github.com/argoproj/argo-cd/v3@v3.2.1/manifests/base/notification/argocd-notifications-controller-deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    labels:
     5      app.kubernetes.io/component: notifications-controller
     6      app.kubernetes.io/name: argocd-notifications-controller
     7      app.kubernetes.io/part-of: argocd
     8    name: argocd-notifications-controller
     9  spec:
    10    strategy:
    11      type: Recreate
    12    selector:
    13      matchLabels:
    14        app.kubernetes.io/name: argocd-notifications-controller
    15    template:
    16      metadata:
    17        labels:
    18          app.kubernetes.io/name: argocd-notifications-controller
    19      spec:
    20        volumes:
    21          - name: tls-certs
    22            configMap:
    23              name: argocd-tls-certs-cm
    24          - name: argocd-repo-server-tls
    25            secret:
    26              secretName: argocd-repo-server-tls
    27              optional: true
    28              items:
    29              - key: tls.crt
    30                path: tls.crt
    31              - key: tls.key
    32                path: tls.key
    33              - key: ca.crt
    34                path: ca.crt
    35        containers:
    36          - args:
    37              - /usr/local/bin/argocd-notifications
    38            env:
    39              - name: ARGOCD_NOTIFICATIONS_CONTROLLER_LOGFORMAT
    40                valueFrom:
    41                  configMapKeyRef:
    42                    key: notificationscontroller.log.format
    43                    name: argocd-cmd-params-cm
    44                    optional: true
    45              - name: ARGOCD_NOTIFICATIONS_CONTROLLER_LOGLEVEL
    46                valueFrom:
    47                  configMapKeyRef:
    48                    key: notificationscontroller.log.level
    49                    name: argocd-cmd-params-cm
    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              - name: ARGOCD_APPLICATION_NAMESPACES
    58                valueFrom:
    59                  configMapKeyRef:
    60                    key: application.namespaces
    61                    name: argocd-cmd-params-cm
    62                    optional: true
    63              - name: ARGOCD_NOTIFICATION_CONTROLLER_SELF_SERVICE_NOTIFICATION_ENABLED
    64                valueFrom:
    65                  configMapKeyRef:
    66                    key: notificationscontroller.selfservice.enabled
    67                    name: argocd-cmd-params-cm
    68                    optional: true
    69              - name: ARGOCD_NOTIFICATION_CONTROLLER_REPO_SERVER_PLAINTEXT
    70                valueFrom:
    71                  configMapKeyRef:
    72                    key: notificationscontroller.repo.server.plaintext
    73                    name: argocd-cmd-params-cm
    74                    optional: true
    75            workingDir: /app
    76            livenessProbe:
    77              tcpSocket:
    78                port: 9001
    79            image: quay.io/argoproj/argocd:latest
    80            imagePullPolicy: Always
    81            name: argocd-notifications-controller
    82            volumeMounts:
    83              - name: tls-certs
    84                mountPath: /app/config/tls
    85              - name: argocd-repo-server-tls
    86                mountPath: /app/config/reposerver/tls
    87            securityContext:
    88              capabilities:
    89                drop:
    90                - ALL
    91              allowPrivilegeEscalation: false
    92              readOnlyRootFilesystem: true
    93        serviceAccountName: argocd-notifications-controller
    94        securityContext:
    95          runAsNonRoot: true
    96          seccompProfile:
    97            type: RuntimeDefault
    98        nodeSelector:
    99          kubernetes.io/os: linux