Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 1.38 KB

prepare_kubernetes_cluster.md

File metadata and controls

47 lines (40 loc) · 1.38 KB
title permalink
Prepare Kubernetes cluster
advanced/ci_cd/werf_with_argocd/prepare_kubernetes_cluster.html

1. Install ArgoCD with werf plugin

Install ArgoCD.

Enable werf sidecar plugin:

  1. Edit deploy/argocd-repo-server:
    kubectl -n argocd edit deploy argocd-repo-server
  2. Add sidecar container and apparmor annotation:
    ...
    metadata:
      annotations:
        "container.apparmor.security.beta.kubernetes.io/werf-argocd-cmp-sidecar": "unconfined"
      ...
    spec:
      ...
      template:
        ...
        spec:
          containers:
          - image: ghcr.io/werf/werf-argocd-cmp-sidecar:1.2-alpha
            imagePullPolicy: Always
            name: werf-argocd-cmp-sidecar
            volumeMounts:
            - mountPath: /var/run/argocd
              name: var-files
            - mountPath: /home/argocd/cmp-server/plugins
              name: plugins
            - mountPath: /tmp
              name: tmp

2. Install ArgoCD Image Updater

Install ArgoCD Image Updater with the "continuous deployment of OCI Helm chart type application" patch:

kubectl apply -n argocd -f https://raw.githubusercontent.com/werf/3p-argocd-image-updater/master/manifests/install.yaml