github.com/argoproj/argo-cd@v1.8.7/manifests/ha/base/overlays/argocd-server-deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: argocd-server
     5  spec:
     6    replicas: 2
     7    template:
     8      spec:
     9        affinity:
    10          podAntiAffinity:
    11            requiredDuringSchedulingIgnoredDuringExecution:
    12            - labelSelector:
    13                matchLabels:
    14                  app.kubernetes.io/name: argocd-server
    15              topologyKey: kubernetes.io/hostname
    16            preferredDuringSchedulingIgnoredDuringExecution:
    17            - weight: 100
    18              podAffinityTerm:
    19                labelSelector:
    20                  matchLabels:
    21                    app.kubernetes.io/name: argocd-server
    22                topologyKey: failure-domain.beta.kubernetes.io/zone
    23        containers:
    24        - name: argocd-server
    25          env:
    26          - name: ARGOCD_API_SERVER_REPLICAS
    27            value: '2'
    28          command:
    29          - argocd-server
    30          - --staticassets
    31          - /shared/app
    32          - --redis
    33          - "argocd-redis-ha-haproxy:6379"