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

Fix CLI Options - --master doesn't work without --kubeconfig #1614

Open
aauren opened this issue Mar 3, 2024 · 0 comments
Open

Fix CLI Options - --master doesn't work without --kubeconfig #1614

aauren opened this issue Mar 3, 2024 · 0 comments
Labels
bug override-stale Don't allow automatic management of stale issues / PRs

Comments

@aauren
Copy link
Collaborator

aauren commented Mar 3, 2024

What happened?

A user attempting to only override the kube-apiserver address with --master would expect that it would pick up the credentials mounted into the pod via /run/secrets/.

What did you expect to happen?

The APIs that kube-router uses from client-go forces kube-router to get the config from an actual kubeconfig file and if the user only supplies --master it looks like kube-router will always fail to contact the kube-apiserver.

In this case, the only way that the user can override the kube-apiserver details, is to overload the ENV vars that kubernetes supplies and set KUBERNETES_SERVICE_HOST & KUBERNETES_SERVICE_PORT

How can we reproduce the behavior you experienced?
Steps to reproduce the behavior:

  1. Launch kube-router with --master but no --kubeconfig file
@aauren aauren added the bug label Mar 3, 2024
@aauren aauren added the override-stale Don't allow automatic management of stale issues / PRs label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug override-stale Don't allow automatic management of stale issues / PRs
Projects
None yet
Development

No branches or pull requests

1 participant