I'm deploying a Jenkins instance using the Jenkins Operator.
My operator doesn't deploy a jenkins instance by default and I use CRs to create the Jenkins definitions.
My CR is very vanilla in nature, only installing the base plugins, including the Kubernetes plugin and the Kubernetes-credentials-provider plugin.
My Kubernetes is behind a proxy. Using ENV variables does not work to download the plugins, however, passing parameters to the JAVA_OPTS to start jenkins does work well.
in other words:
env:
# - name: HTTP_PROXY
# - name: HTTPS_PROXY
# - name: https_proxy
# - name: http_proxy
# - name: NO_PROXY
the above doesn't work...
- name: JAVA_OPTS
value: -Djava.awt.headless=true
-Djenkins.install.runSetupWizard=false
-Dhttp.proxyPort=443
-Dhttps.proxyPort=443
-Dhttps.nonProxyHost=kubernetes.default.svc
the above works... HOWEVER....
the Kubernetes-credentials-provider fails to connect to the cluster where the pod is running on.
I found a post describing exactly the issue I'm experiencing here:
Unfortunately, there's not clear remediation since I don't use the ENV variables the way they did and I'm still facing the same issue.
Any help is appreciated.