github.com/argoproj/argo-cd@v1.8.7/examples/known-hosts/argocd-known-hosts-mounts.yaml (about)

     1  ---
     2  apiVersion: apps/v1
     3  kind: Deployment
     4  metadata:
     5    name: argocd-server
     6  spec:
     7    template:
     8      spec:
     9        containers:
    10        - name: argocd-server
    11          volumeMounts:
    12          - name: known-hosts
    13            mountPath: /etc/ssh/ssh_known_hosts
    14            subPath: known_hosts
    15        volumes:
    16        - name: known-hosts
    17          configMap:
    18            name: argocd-known-hosts
    19  ---
    20  apiVersion: apps/v1
    21  kind: Deployment
    22  metadata:
    23    name: argocd-repo-server
    24  spec:
    25    template:
    26      spec:
    27        containers:
    28        - name: argocd-repo-server
    29          volumeMounts:
    30          - name: known-hosts
    31            mountPath: /etc/ssh/ssh_known_hosts
    32            subPath: known_hosts
    33        volumes:
    34        - name: known-hosts
    35          configMap:
    36            name: argocd-known-hosts
    37  ---
    38  apiVersion: apps/v1
    39  kind: Deployment
    40  metadata:
    41    name: argocd-application-controller
    42  spec:
    43    template:
    44      spec:
    45        containers:
    46        - name: argocd-application-controller
    47          volumeMounts:
    48          - name: known-hosts
    49            mountPath: /etc/ssh/ssh_known_hosts
    50            subPath: known_hosts
    51        volumes:
    52        - name: known-hosts
    53          configMap:
    54            name: argocd-known-hosts