enable proxy for offline clusters

This commit is contained in:
Bakhtiar Abdul Hamid
2024-09-19 16:43:21 +08:00
parent cb39473a47
commit 772e2b17f6
2 changed files with 20 additions and 0 deletions
@@ -50,6 +50,20 @@ spec:
optional: true optional: true
- name: KUBERNETES_CLUSTER_DOMAIN - name: KUBERNETES_CLUSTER_DOMAIN
value: {{ quote .Values.kubernetesClusterDomain }} 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 image: {{ .Values.controllerManager.manager.image.repository }}:{{ .Values.controllerManager.manager.image.tag
| default .Chart.AppVersion }} | default .Chart.AppVersion }}
livenessProbe: livenessProbe:
+6
View File
@@ -28,3 +28,9 @@ metricsService:
protocol: TCP protocol: TCP
targetPort: https targetPort: https
type: ClusterIP type: ClusterIP
proxy:
enabled: false
httpProxy: "<your_proxy>"
httpsProxy: "<your_proxy>"
noProxy: "localhost,127.0.0.1,<other_ip>"