Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set http/https proxy via env variables #47

Open
bbusioc opened this issue Sep 19, 2023 · 2 comments
Open

Set http/https proxy via env variables #47

bbusioc opened this issue Sep 19, 2023 · 2 comments

Comments

@bbusioc
Copy link

bbusioc commented Sep 19, 2023

Hello,

Is there a was to set the http/s proxy via an environment variable by using the helm chart?
For some reason, which I can't really understand to reach the power DNS API I have to go through a proxy.
I manually edited the deployment, added the required HTTP_PROXY, HTTPS_PROXY and NO_PROXY configurations and it worked.
However, I can't find a way to set environment variables via the helm chart.

Thanks,
Bogdan

@bbusioc
Copy link
Author

bbusioc commented Sep 20, 2023

I fixed it locally on my side by updating like this the env part in the deployment template:

          env:
            - name: GROUP_NAME
              value: {{ .Values.groupName | quote }}
            {{- with .Values.http_proxy }}
            - name: HTTP_PROXY
              value: {{ . }}
            {{- end }}
            {{- with .Values.https_proxy }}
            - name: HTTPS_PROXY
              value: {{ . }}
            {{- end }}
            {{- with .Values.no_proxy }}
            - name: NO_PROXY
              value: {{ . }}
            {{- end }}

But I think it would be great if this or a better solution could be integrated in your repo.

Thanks,
Bogdan

@zachomedia
Copy link
Owner

Hello @bbusioc, thanks - I thought the chart supported arbitrary env vars, but it looks like it does not. I'll add that support soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants