title | permalink |
---|---|
Prepare Kubernetes cluster |
advanced/ci_cd/werf_with_argocd/prepare_kubernetes_cluster.html |
Enable werf sidecar plugin:
- Edit
deploy/argocd-repo-server
:kubectl -n argocd edit deploy argocd-repo-server
- 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
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