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

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    labels:
     5      app.kubernetes.io/name: argocd-redis
     6      app.kubernetes.io/part-of: argocd
     7      app.kubernetes.io/component: redis
     8    name: argocd-redis
     9  spec:
    10    selector:
    11      matchLabels:
    12        app.kubernetes.io/name: argocd-redis
    13    template:
    14      metadata:
    15        labels:
    16          app.kubernetes.io/name: argocd-redis
    17      spec:
    18        initContainers:
    19          - command:
    20              - argocd
    21              - admin
    22              - redis-initial-password
    23            image: quay.io/argoproj/argocd:latest
    24            imagePullPolicy: IfNotPresent
    25            name: secret-init
    26            securityContext:
    27              allowPrivilegeEscalation: false
    28              capabilities:
    29                drop:
    30                  - ALL
    31              readOnlyRootFilesystem: true
    32              runAsNonRoot: true
    33              seccompProfile:
    34                type: RuntimeDefault
    35        securityContext:
    36          runAsNonRoot: true
    37          runAsUser: 999
    38          seccompProfile:
    39            type: RuntimeDefault
    40        serviceAccountName: argocd-redis        
    41        containers:
    42        - name: redis
    43          image: redis:8.2.2-alpine
    44          imagePullPolicy: Always
    45          args:
    46          - "--save"
    47          - ""
    48          - "--appendonly"
    49          - "no"
    50          - --requirepass $(REDIS_PASSWORD)
    51          env:
    52            - name: REDIS_PASSWORD
    53              valueFrom:
    54                secretKeyRef:
    55                  key: auth
    56                  name: argocd-redis
    57          ports:
    58          - containerPort: 6379
    59          securityContext:
    60            readOnlyRootFilesystem: true
    61            allowPrivilegeEscalation: false
    62            capabilities:
    63              drop:
    64              - ALL
    65        affinity:
    66          podAntiAffinity:
    67            preferredDuringSchedulingIgnoredDuringExecution:
    68            - weight: 100
    69              podAffinityTerm:
    70                labelSelector:
    71                  matchLabels:
    72                    app.kubernetes.io/name: argocd-redis
    73                topologyKey: kubernetes.io/hostname
    74            - weight: 5
    75              podAffinityTerm:
    76                labelSelector:
    77                  matchLabels:
    78                    app.kubernetes.io/part-of: argocd
    79                topologyKey: kubernetes.io/hostname
    80        nodeSelector:
    81          kubernetes.io/os: linux