-
Notifications
You must be signed in to change notification settings - Fork 60
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
tests: kubectl misconfiguration after run-local.sh
#328
Comments
Hmm, I have used run-local.sh only for tests. However looking at the code, I suspect there needs to an extra config step if the cluster deployed with run-local.sh needs to be used.
You can try setting this explicitly and run a basic kubectl command to verify
If you hit any permissions issue, then you can copy the kubeconfig to @wainersm I think you are active user of run-local.sh :-). Any insights? |
I spin up an env with run-local.sh and you can use either of the following approach to work with the cluster.
or
Then you can run
Complete examples
or after copying the kubeconfig file to $HOME/.kube/config
|
@tylerfanelli for now you can use the following to just deploy the cluster using the helper scripts in the operator repo. Assuming you are in "$HOME/operator/tests/e2e", running the following will setup the cluster:
On successful cluster setup, you'll see the instructions to set kubeconfig, ie
There is a good explanation of run-local.sh and kubeconfig setup in the operator development guide @fitzthum @wainersm, for subsequent releases, I think it would be good to clarify the usage of run-local.sh or remove it altogether from quickstart to avoid confusions. |
Yeah maybe we should add a note about
to the quickstart guide. I think we mention it somewhere else. |
@fitzthum Patches are welcome, I have kcli related recommendations pending as well. |
Describe the bug
Once
tests/e2e/run-local.sh
is run, the next step in the quickstart guide is to deploy the operator. This fails immediately withThe connection to the server localhost:8080 was refused - did you specify the right host or port?
To Reproduce
Is there extra
kubectl
configuration that needs to be done?@bpradipt @wainersm
The text was updated successfully, but these errors were encountered: