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

Anyone got guidance on how to troubleshoot when pks login works but "pks get-credentials my-cluster" fails? #720

Open
leoncozzi opened this issue Jun 27, 2020 · 2 comments

Comments

@leoncozzi
Copy link
Contributor

pks login works

ubuntu@cli-vm:~$ pks login -a pks.corp.local -u pksadmin -p VMware1! -k

API Endpoint: pks.corp.local
User: pksadmin

BUT this fails

ubuntu@cli-vm:~$ pks get-credentials my-cluster

Fetching credentials for cluster my-cluster.
Error: Status: 500; ErrorMessage: ; Description: Create Binding: Put https://172.16.0.2:8443/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/oidc:pksadmin-cluster-admin: dial tcp 172.16.0.2:8443: connect: connection refused; ResponseError:
ubuntu@cli-vm:~$

I am struggling to TS this.

@riazvm
Copy link
Collaborator

riazvm commented Jun 27, 2020 via email

@leoncozzi
Copy link
Contributor Author

leoncozzi commented Jun 28, 2020

the DNS looks ok, any other ideas? Thank you

ubuntu@cli-vm:~$ pks cluster my-cluster

Name: my-cluster
Plan Name: Small
UUID: bfbbec5f-df39-48f0-bed0-6bacc1a1d19e
Last Action: CREATE
Last Action State: succeeded
Last Action Description: Instance provisioning completed
Kubernetes Master Host: my-cluster.corp.local
Kubernetes Master Port: 8443
Worker Nodes: 2
Kubernetes Master IP(s): 10.40.14.34
Network Profile Name:

ubuntu@cli-vm:~$ nslookup my-cluster
Server: 127.0.0.53
Address: 127.0.0.53#53

Non-authoritative answer:
Name: my-cluster.corp.local
Address: 10.40.14.34

ubuntu@cli-vm:~$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants