You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
x509: certificate signed by unknown authority #551
Trying to deploy to a GKE cluster is giving me the following error.
$ helm deploy --name test --properties "workers=2" gs://kubernetes-charts-testing/redis-2.tgz
[ERROR] Post https://XXX.XXX.XX.XXX/api/v1/proxy/namespaces/helm/services/manager-service:manager/deployments: x509: certificate signed by unknown authority
Is there any way to disable TLS verification or to trust the self-signed cert?
@jason-riddle if you run a kubectl proxy --port=8001 locally, and set your HELM_HOST to http://localhost:8001/api/v1/proxy/namespaces/helm/services/manager-service:manager
Maybe I don't understand proxying, but how would helm be able to validate the certificate, if there is just forwarding from http:// to https://? Wouldn't it see this as an issue? It can't just blindly be okay with the fact that it was expecting http but instead got https?
Can you try the latest version of helm. I am not sure how you are getting it installed. But I believe the error you are seeing is because the images running the services are out of date.
Try getting the latest helm and redeploy with helm server install.
As far as the proxy. kubectl proxy proxies all API requests to the secure endpoint (using the certs and tokens of your secured k8s server). A service running in your k8s cluster can be reached as if running locally thanks to the proxy.
With a working helm you will be able to curl the helm manager API at the HELM_HOST URL.
$ helm --version
helm version v1.2+0af0856
$ helm server uninstall
namespace "helm" deleted
$ helm server install
## <snip># In another window
$ kubectl proxy --port=8001
Starting to serve on 127.0.0.1:8001
$ export HELM_HOST=http://localhost:8001/api/v1/proxy/namespaces/helm/services/manager-service:manager
$ helm repo add kubernetes-charts-testing gs://kubernetes-charts-testing
[ERROR] 404 page not found
Activity
sebgoa commentedon Apr 4, 2016
@jason-riddle if you run a
kubectl proxy --port=8001locally, and set your HELM_HOST tohttp://localhost:8001/api/v1/proxy/namespaces/helm/services/manager-service:managerit should properly forward the request.
jason-riddle commentedon Apr 5, 2016
Alright so now upon running the proxy before trying to add kubernetes-charts-testing, I get the following.
When I visit
http://localhost:8001/in my browser, I literally get the following text.While visiting the
https://XXX.XXX.XX.XXXmaster url works fine.Maybe I don't understand proxying, but how would helm be able to validate the certificate, if there is just forwarding from
http://tohttps://? Wouldn't it see this as an issue? It can't just blindly be okay with the fact that it was expectinghttpbut instead gothttps?sebgoa commentedon Apr 5, 2016
Can you try the latest version of
helm. I am not sure how you are getting it installed. But I believe the error you are seeing is because the images running the services are out of date.Try getting the latest helm and redeploy with
helm server install.As far as the proxy.
kubectl proxyproxies all API requests to the secure endpoint (using the certs and tokens of your secured k8s server). A service running in your k8s cluster can be reached as if running locally thanks to the proxy.With a working helm you will be able to curl the helm manager API at the HELM_HOST URL.
jason-riddle commentedon Apr 5, 2016
Upgraded and still getting the same issue.
jason-riddle commentedon Apr 5, 2016
Running
curl http://localhost:8001/api/v1/proxy/namespaces/helm/services/manager-service:managerreturns nothing.sebgoa commentedon Apr 5, 2016
is your proxy running ?
kubectl proxy --port 8001jason-riddle commentedon Apr 6, 2016
Yes it is. Up above I've listed the commands to reproduce what I've done.
technosophos commentedon May 3, 2016
This should no longer be a problem with the new version.
erikbgithub commentedon Jul 25, 2017
@jason-riddle You may have already learned this, but the better way to debug with curl is using
-vvvvto see what happens in the http communication.fix: Send log messages to STDERR (helm#583)
Merge pull request helm#551 from helmfile/dependabot/go_modules/githu…