diff --git a/argocd/apps/loki.yaml b/argocd/apps/loki.yaml index 4d8d5b9..2615e32 100644 --- a/argocd/apps/loki.yaml +++ b/argocd/apps/loki.yaml @@ -26,6 +26,12 @@ spec: loki: auth_enabled: false + podSecurityContext: + sysctls: + - name: fs.inotify.max_user_watches + value: "524288" + - name: fs.inotify.max_user_instances + value: "512" storage: bucketNames: chunks: chunks @@ -84,15 +90,7 @@ spec: limits: cpu: 500m memory: 1Gi - initContainers: - - name: sysctl-inotify - image: busybox:1.36 - command: - - sysctl - - -w - - fs.inotify.max_user_watches=524288 - securityContext: - privileged: true + destination: server: https://kubernetes.default.svc namespace: metrics diff --git a/bootstrap/argocd/values.yaml b/bootstrap/argocd/values.yaml index d1c14ad..c1117dc 100644 --- a/bootstrap/argocd/values.yaml +++ b/bootstrap/argocd/values.yaml @@ -19,13 +19,10 @@ redis: repository: docker.io/library/redis tag: 7.4-alpine -repoServer: - initContainers: - - name: sysctl-inotify - image: busybox:1.36 - command: - - sysctl - - -w - - fs.inotify.max_user_watches=524288 - securityContext: - privileged: true +global: + securityContext: + sysctls: + - name: fs.inotify.max_user_watches + value: "524288" + - name: fs.inotify.max_user_instances + value: "512"