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

When cluster remove is done , kube_config_cluster.yml continues to be present. #51

Closed
sangeethah opened this issue Nov 27, 2017 · 1 comment
Assignees
Labels

Comments

@sangeethah
Copy link

rke version v0.0.5-dev

Steps to reproduce the problem:
Create a new K8s cluster using cluster up command.
Remove K8s cluster using cluster remove command.
At this point , kube_config_cluster.yml continues to be present.

When attempting to add a new cluster using ```cluster up`` command , rke now attempts to fetch cluster state from the removed Kubernetes and it fails before it proceeds to creating a new cluster.

Sangeethas-MBP:~ sangeethahariharan1$ ./rke_darwin-amd64 cluster up
INFO[0000] Building Kubernetes cluster                  
INFO[0000] [ssh] Checking private key                   
INFO[0000] [ssh] Start tunnel for host [ip-172-31-38-78.us-east-2.compute.internal] 
INFO[0000] [ssh] Start tunnel for host [ip-172-31-39-84.us-east-2.compute.internal] 
INFO[0000] [ssh] Start tunnel for host [ip-172-31-37-222.us-east-2.compute.internal] 
INFO[0000] [ssh] Start tunnel for host [ip-172-31-38-78.us-east-2.compute.internal] 
INFO[0000] [ssh] Start tunnel for host [ip-172-31-39-84.us-east-2.compute.internal] 
INFO[0000] [state] Found local kube config file, trying to get state from cluster 
INFO[0000] [state] Fetching cluster state from Kubernetes 
INFO[0030] Timed out waiting for kubernetes cluster to get state 
INFO[0030] [certificates] Generating kubernetes certificates 
INFO[0030] [certificates] Generating CA kubernetes certificates 
INFO[0031] [certificates] Generating Kubernetes API server certificates 

Should cluster remove , also remove kube_config_cluster.yml to indicate that rke will not be working on this cluster anymore?

@sangeethah
Copy link
Author

Tested with rke verison - v0.0.8-dev
Create a new K8s cluster using cluster up command.
Remove K8s cluster using cluster remove command.
After this , kube_config_cluster.yml get removed.

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

No branches or pull requests

3 participants