Skip to content

Commit

Permalink
Merge pull request #9 from kedai/enable-proxy-configuration
Browse files Browse the repository at this point in the history
enable proxy for offline clusters
  • Loading branch information
kkb0318 authored Sep 20, 2024
2 parents 13ae436 + 772e2b1 commit f1775f8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions charts/irsa-manager/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,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:
Expand Down
6 changes: 6 additions & 0 deletions charts/irsa-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ metricsService:
protocol: TCP
targetPort: https
type: ClusterIP
proxy:
enabled: false
httpProxy: "<your_proxy>"
httpsProxy: "<your_proxy>"
noProxy: "localhost,127.0.0.1,<other_ip>"

0 comments on commit f1775f8

Please sign in to comment.