Merge pull request #9 from kedai/enable-proxy-configuration

enable proxy for offline clusters
This commit is contained in:
kkb
2024-09-20 19:53:50 +09:00
committed by GitHub
2 changed files with 20 additions and 0 deletions
@@ -59,6 +59,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>"