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

tk init does not include protocol in spec.apiServer #287

Closed
jamshid opened this issue Jun 2, 2020 · 2 comments · Fixed by #289
Closed

tk init does not include protocol in spec.apiServer #287

jamshid opened this issue Jun 2, 2020 · 2 comments · Fixed by #289
Labels
kind/bug Something isn't working

Comments

@jamshid
Copy link

jamshid commented Jun 2, 2020

As mentioned in this comment, it seems to be required that the spec include the https:// protocol, not just a host and port.
#238 (comment)
Btw I also had to use kubernetes.docker.internal as the host (my k8s is the one built into Docker for Mac) instead of localhost.

$ KUBECONFIG=~/loki-test/default.kubeconfig get pods
No resources found in default namespace.
$ KUBECONFIG=~/loki-test/default.kubeconfig tk status environments/loki 
connecting to Kubernetes: finding usable context: no cluster that matches the apiServer `kubernetes.docker.internal:6443` was found. Please check your $KUBECONFIG
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label kind/bug to this issue, with a confidence of 0.88. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the kind/bug Something isn't working label Jun 2, 2020
@jamshid
Copy link
Author

jamshid commented Jun 2, 2020

Ah this is probably user error since Loki install does show --server with the protocol.
But the message from tk init should be updated to use protocol too. I think I didn't include it because I saw this message:

% tk init
Installing k.libsonnet: jsonnet-bundler not found in $PATH. Follow https://tanka.dev/install#jsonnet-bundler for installation instructions
Directory structure set up! Remember to configure the API endpoint:
`tk env set environments/default --server=127.0.0.1:6443`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant