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 # value: "http://proxy.example.com:443" # - name: HTTPS_PROXY # value: "https://proxy.example.com:443" # - name: https_proxy # value: "http://proxy.example.com:443" # - name: http_proxy # value: "https://proxy.example.com:443" # - name: NO_PROXY # value: "kubernetes.default.svc,10.0.0.0/8,127.0.0.1,localhost" the above doesn't work... - name: JAVA_OPTS value: -Djava.awt.headless=true -Djenkins.install.runSetupWizard=false -Dhttp.proxyHost=proxy.example.com -Dhttp.proxyPort=443 -Dhttps.proxyHost=proxy.example.com -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: https://github.com/jenkinsci/kubernetes-operator/issues/697 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. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-users/3b03ce46-21b7-4258-b058-144fde67195an%40googlegroups.com.