From 1c6a22e0dfe0f023d37407430b5d8c20e416800c Mon Sep 17 00:00:00 2001 From: Andrii Korotkov Date: Sat, 10 Aug 2024 19:47:05 -0700 Subject: [PATCH] chore: Add some empty dir volume moounts for the application controller (#19474) Closes #19474 Kube cache couldn't be used on read-only root file system leading to errors as revealed with `--gloglevel` equal to 6. Create an empty dir volume mount for the cache to fix this. Also, create an empty dir mount for `/tmp` just in case. Signed-off-by: Andrii Korotkov --- .../argocd-application-controller-statefulset.yaml | 8 ++++++++ manifests/core-install.yaml | 8 ++++++++ manifests/ha/install.yaml | 8 ++++++++ manifests/ha/namespace-install.yaml | 8 ++++++++ manifests/install.yaml | 8 ++++++++ manifests/namespace-install.yaml | 8 ++++++++ 6 files changed, 48 insertions(+) diff --git a/manifests/base/application-controller/argocd-application-controller-statefulset.yaml b/manifests/base/application-controller/argocd-application-controller-statefulset.yaml index ca09f482c35f7..6ceeb9c80618b 100644 --- a/manifests/base/application-controller/argocd-application-controller-statefulset.yaml +++ b/manifests/base/application-controller/argocd-application-controller-statefulset.yaml @@ -236,6 +236,10 @@ spec: mountPath: /home/argocd - name: argocd-cmd-params-cm mountPath: /home/argocd/params + - name: argocd-application-controller-kube-cache + mountPath: /home/ubuntu/.kube/cache + - name: argocd-application-controller-tmp + mountPath: /tmp serviceAccountName: argocd-application-controller affinity: podAntiAffinity: @@ -255,6 +259,10 @@ spec: volumes: - emptyDir: {} name: argocd-home + - emptyDir: {} + name: argocd-application-controller-kube-cache + - emptyDir: {} + name: argocd-application-controller-tmp - name: argocd-repo-server-tls secret: secretName: argocd-repo-server-tls diff --git a/manifests/core-install.yaml b/manifests/core-install.yaml index 52c9c47c2eaf9..ba7b321fb945f 100644 --- a/manifests/core-install.yaml +++ b/manifests/core-install.yaml @@ -22220,11 +22220,19 @@ spec: name: argocd-home - mountPath: /home/argocd/params name: argocd-cmd-params-cm + - mountPath: /home/ubuntu/.kube/cache + name: argocd-application-controller-kube-cache + - mountPath: /tmp + name: argocd-application-controller-tmp workingDir: /home/argocd serviceAccountName: argocd-application-controller volumes: - emptyDir: {} name: argocd-home + - emptyDir: {} + name: argocd-application-controller-kube-cache + - emptyDir: {} + name: argocd-application-controller-tmp - name: argocd-repo-server-tls secret: items: diff --git a/manifests/ha/install.yaml b/manifests/ha/install.yaml index 88519bbb1d6a7..625c6062c08b0 100644 --- a/manifests/ha/install.yaml +++ b/manifests/ha/install.yaml @@ -24185,11 +24185,19 @@ spec: name: argocd-home - mountPath: /home/argocd/params name: argocd-cmd-params-cm + - mountPath: /home/ubuntu/.kube/cache + name: argocd-application-controller-kube-cache + - mountPath: /tmp + name: argocd-application-controller-tmp workingDir: /home/argocd serviceAccountName: argocd-application-controller volumes: - emptyDir: {} name: argocd-home + - emptyDir: {} + name: argocd-application-controller-kube-cache + - emptyDir: {} + name: argocd-application-controller-tmp - name: argocd-repo-server-tls secret: items: diff --git a/manifests/ha/namespace-install.yaml b/manifests/ha/namespace-install.yaml index fbdd2bd7913cc..7fe4ea09c57f1 100644 --- a/manifests/ha/namespace-install.yaml +++ b/manifests/ha/namespace-install.yaml @@ -3040,11 +3040,19 @@ spec: name: argocd-home - mountPath: /home/argocd/params name: argocd-cmd-params-cm + - mountPath: /home/ubuntu/.kube/cache + name: argocd-application-controller-kube-cache + - mountPath: /tmp + name: argocd-application-controller-tmp workingDir: /home/argocd serviceAccountName: argocd-application-controller volumes: - emptyDir: {} name: argocd-home + - emptyDir: {} + name: argocd-application-controller-kube-cache + - emptyDir: {} + name: argocd-application-controller-tmp - name: argocd-repo-server-tls secret: items: diff --git a/manifests/install.yaml b/manifests/install.yaml index 3e85e9b860ae9..c96fbf8e2ead6 100644 --- a/manifests/install.yaml +++ b/manifests/install.yaml @@ -23253,11 +23253,19 @@ spec: name: argocd-home - mountPath: /home/argocd/params name: argocd-cmd-params-cm + - mountPath: /home/ubuntu/.kube/cache + name: argocd-application-controller-kube-cache + - mountPath: /tmp + name: argocd-application-controller-tmp workingDir: /home/argocd serviceAccountName: argocd-application-controller volumes: - emptyDir: {} name: argocd-home + - emptyDir: {} + name: argocd-application-controller-kube-cache + - emptyDir: {} + name: argocd-application-controller-tmp - name: argocd-repo-server-tls secret: items: diff --git a/manifests/namespace-install.yaml b/manifests/namespace-install.yaml index aff7f0cb8fe25..25ac75af24e3a 100644 --- a/manifests/namespace-install.yaml +++ b/manifests/namespace-install.yaml @@ -2108,11 +2108,19 @@ spec: name: argocd-home - mountPath: /home/argocd/params name: argocd-cmd-params-cm + - mountPath: /home/ubuntu/.kube/cache + name: argocd-application-controller-kube-cache + - mountPath: /tmp + name: argocd-application-controller-tmp workingDir: /home/argocd serviceAccountName: argocd-application-controller volumes: - emptyDir: {} name: argocd-home + - emptyDir: {} + name: argocd-application-controller-kube-cache + - emptyDir: {} + name: argocd-application-controller-tmp - name: argocd-repo-server-tls secret: items: