We have added the support for running the tekton components in a proxy environment through operator. This will enable running the tekton controllers, webhook and also taskrun pods with proxy configuration. We are attaching the proxy env variables like HTTP_PROXY, NO_PROXY and HTTPS_PROXY to the pods created through automation on the fly.
- This funcationality will only be available for pods created using taskruns, not for all pods on clusters.
Proxy Support on Kubernetes
For enabling the proxy support on Kubernetes, users need to update the operator deployment with proxy environment variables like
spec: containers: - env: - name: HTTP_PROXY value: "url-to-be-pasted-here"
This will restart the operator pod, ending up in proxy environment variables attached to all components pods. Also whenever you run a taskrun, the resulting pod will also be having the environment variables in all containers.
This functionality of adding proxy environment variables is not available on taskruns created in
Proxy Support on OpenShift
For enabling proxy support on OpenShift environment, configure the proxy environments on OpenShift like mentioned here. After that install the operator through Operator Hub, and proxy environment variables will be available in tekton component’s controllers and webhook pod, also all taskrun pods created will also have the these environments
openshift-pipelines namespace is exempted from adding the proxy environment varaibles in taskrun pods
Configuring namespace to be exempted from proxy environment feature
By default, the automation of adding proxy environment variables to taskrun pod is available on all namespace except the namespace in which tekton components are installed.
If you want to disable this feature in any other namespace, you can update the namespace object with following label
Support for certificates for HTTPS proxy
Was this page helpful?
Thanks! Tell us how we can further improve.
Sorry about that. Tell us how we can further improve.