From 772e2b17f6907f8502a4993d014afb326d4d2ba3 Mon Sep 17 00:00:00 2001 From: Bakhtiar Abdul Hamid Date: Thu, 19 Sep 2024 16:43:21 +0800 Subject: [PATCH] enable proxy for offline clusters --- charts/irsa-manager/templates/deployment.yaml | 14 ++++++++++++++ charts/irsa-manager/values.yaml | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/charts/irsa-manager/templates/deployment.yaml b/charts/irsa-manager/templates/deployment.yaml index a712ba7..a9c3799 100644 --- a/charts/irsa-manager/templates/deployment.yaml +++ b/charts/irsa-manager/templates/deployment.yaml @@ -50,6 +50,20 @@ spec: optional: true - name: KUBERNETES_CLUSTER_DOMAIN value: {{ quote .Values.kubernetesClusterDomain }} + {{- if .Values.proxy.enabled }} + {{- if .Values.proxy.httpProxy }} + - name: HTTP_PROXY + value: {{ .Values.proxy.httpProxy | quote }} + {{- end }} + {{- if .Values.proxy.httpsProxy }} + - name: HTTPS_PROXY + value: {{ .Values.proxy.httpsProxy | quote }} + {{- end }} + {{- if .Values.proxy.noProxy }} + - name: NO_PROXY + value: {{ .Values.proxy.noProxy | quote }} + {{- end }} + {{- end }} image: {{ .Values.controllerManager.manager.image.repository }}:{{ .Values.controllerManager.manager.image.tag | default .Chart.AppVersion }} livenessProbe: diff --git a/charts/irsa-manager/values.yaml b/charts/irsa-manager/values.yaml index 0af4024..883480c 100644 --- a/charts/irsa-manager/values.yaml +++ b/charts/irsa-manager/values.yaml @@ -28,3 +28,9 @@ metricsService: protocol: TCP targetPort: https type: ClusterIP +proxy: + enabled: false + httpProxy: "" + httpsProxy: "" + noProxy: "localhost,127.0.0.1," +