Skip to content
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

--apiserver-name has no effect on ~/.kube/config #3878

Closed
aparamon opened this issue Mar 14, 2019 · 1 comment · Fixed by #3897
Closed

--apiserver-name has no effect on ~/.kube/config #3878

aparamon opened this issue Mar 14, 2019 · 1 comment · Fixed by #3897
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@aparamon
Copy link

To reproduce:

powtest@chlorine:~$ minikube version
minikube version: v0.35.0
````console
powtest@chlorine:~$ sudo -E minikube start --vm-driver=none --apiserver-name=chlorine.acdlabs.ru

File ~/.kube/config is populated with

apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: <skip>
    server: https://82.97.201.217:8443
  name: minikube

Cluster is created successfully:

powtest@chlorine:~$ kubectl cluster-info
Kubernetes master is running at https://82.97.201.217:8443
KubeDNS is running at https://82.97.201.217:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

However it's expected that server is https://chlorine.acdlabs.ru:8443. It works if modifying generated ~/.kube/config manually:

powtest@chlorine:~$ kubectl cluster-info
Kubernetes master is running at https://chlorine.acdlabs.ru:8443
KubeDNS is running at https://chlorine.acdlabs.ru:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
@tstromberg
Copy link
Contributor

Good find. This sounds like a fairly simple template mistake. Help wanted!

@tstromberg tstromberg added kind/bug Categorizes issue or PR as related to a bug. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/backlog Higher priority than priority/awaiting-more-evidence. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. labels Mar 14, 2019
tstromberg added a commit that referenced this issue Mar 21, 2019
Replace server name in updateKubeConfig if --apiserver-name exists #3878
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants