From 553aa882116daffc296f782fd890febe4a7637be Mon Sep 17 00:00:00 2001 From: "minquan.chen" Date: Wed, 19 Jul 2023 09:08:25 +0800 Subject: [PATCH] add resource setting to kubeRbacProxy --- helm/tailing-sidecar-operator/templates/resources.yaml | 3 +++ helm/tailing-sidecar-operator/values.yaml | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/helm/tailing-sidecar-operator/templates/resources.yaml b/helm/tailing-sidecar-operator/templates/resources.yaml index ddca7c2e..3a771d43 100644 --- a/helm/tailing-sidecar-operator/templates/resources.yaml +++ b/helm/tailing-sidecar-operator/templates/resources.yaml @@ -451,6 +451,9 @@ spec: image: {{ .Values.kubeRbacProxy.image.repository }}:{{ .Values.kubeRbacProxy.image.tag }} imagePullPolicy: {{ .Values.kubeRbacProxy.image.pullPolicy }} name: kube-rbac-proxy + {{- with .Values.kubeRbacProxy.resources }} + resources: {{ toYaml . | nindent 12 }} + {{- end }} ports: - containerPort: 8443 name: https diff --git a/helm/tailing-sidecar-operator/values.yaml b/helm/tailing-sidecar-operator/values.yaml index 8819f4e5..c4e40f13 100644 --- a/helm/tailing-sidecar-operator/values.yaml +++ b/helm/tailing-sidecar-operator/values.yaml @@ -64,6 +64,13 @@ kubeRbacProxy: pullPolicy: IfNotPresent repository: quay.io/brancz/kube-rbac-proxy tag: v0.11.0 + resources: + limits: + cpu: 500m + memory: 128Mi + requests: + cpu: 5m + memory: 64Mi # Configuration for MutatingWebhook which is used by tailing sidecar operator # for details please see Kubernetes API Reference Docs