-
Notifications
You must be signed in to change notification settings - Fork 7k
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
docker-for-mac - cannot parse dnsName "kubernetes.default.svc." on helm init #3873
Comments
We've seen this across the ecosystem. I'd suggest using minikube or downgrading docker for mac for the time being. |
Downgrading to 18.03.0-ce-mac58 resolves the issue:
|
Is there a https://github.com/docker/for-mac/issues for this? |
I download 18.03.0-ce-mac58 and reinstall it to downgrade docker for mac. |
The downgrade works for me as well. Not sure if it is a docker or helm issue. both? 😕 |
Docker issue |
I am experiencing this as well. |
@koalalorenzo opened docker/for-mac#2811 to track this issue |
I can also confirm that downgrading to 18.03.0-ce-mac58 worked for me. |
The root cause seems to be a recent change to Go''s SSL library and the way D4M sets the dnsName field in the x509 cert: golang/go#23995 |
This fix doesn't seem to be working for me using the latest Helm (2.9.0).
Edit 1: I'm going to see if downgrading Helm makes a difference. Edit 2: Downgrading Helm to the prior release (2.8.2) made it work for me:
|
Yeah, downgrading to Helm 2.8.2 will also work because it's compiled against Go 1.8, bypassing the breaking change Go 1.9 introduced as @technosophos mentioned. :) |
As far as I know, one still needs to use Docker for Mac Edge Version 18.03.0-ce-mac58 (23607) to have this not be a problem. |
I haven't tried upgrading to latest yet myself since this. Each upgrade so far has broken my Kubernetes setup and required rebuilding the cluster. It can be time-consuming when one has deadlines to hit. I'll give it another go once I have more flexibility there. |
I'd love to get some word that this has been fixed or not. Every time I get pestered by a new Docker for Mac upgrade, from 18.03.0-ce-mac58, I check and every time it's not fixed. Anyone else have any status on this? |
I haven't tried them yet, but there were new releases of both stable and edge yesterday. Stable 18.06.0-ce-mac70 - https://docs.docker.com/docker-for-mac/release-notes/#docker-community-edition-18060-ce-mac70-2018-07-25 Edge 18.06.0-ce-mac69 - https://docs.docker.com/docker-for-mac/edge-release-notes/#docker-community-edition-18060-ce-mac69-2018-07-25 |
Getting this same issue on Edge 18.06.0-ce-mac. |
For anyone that saw my post from a minute or so, please disregard |
I am happy to report that with Docker for Mac Stable 18.06.0-ce I am able to do
I did not observe the "cannot parse dnsName" error. From my perspective, this issue can be closed. |
Woop! I believe @technosohos also indicated that he was able to get this working today. Closing! |
❯ helm init
Creating /Users/x/.helm
Creating /Users/x/.helm/repository
Creating /Users/x/.helm/repository/cache
Creating /Users/x/.helm/repository/local
Creating /Users/x/.helm/plugins
Creating /Users/x/.helm/starters
Creating /Users/x/.helm/cache/archive
Creating /Users/x/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /Users/x/.helm.
Error: error installing: Post https://localhost:6443/apis/extensions/v1beta1/namespaces/kube-system/deployments: tls: failed to parse certificate from server: x509: cannot parse dnsName "kubernetes.default.svc."
Output of
helm version
:❯ helm version
Client: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}
Output of
kubectl version
:❯ kubectl version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.6", GitCommit:"6260bb08c46c31eea6cb538b34a9ceb3e406689c", GitTreeState:"clean", BuildDate:"2017-12-21T06:34:11Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.6", GitCommit:"9f8ebd171479bec0ada837d7ee641dec2f8c6dd1", GitTreeState:"clean", BuildDate:"2018-03-21T15:13:31Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Cloud Provider/Platform (AKS, GKE, Minikube etc.):
Docker-for-mac Version 18.04.0-ce-rc2-mac61 (23890)
Likely related to:
The text was updated successfully, but these errors were encountered: