Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

API server --standalone-mode doesn't work #364

Open
wallrj opened this issue May 17, 2018 · 0 comments
Open

API server --standalone-mode doesn't work #364

wallrj opened this issue May 17, 2018 · 0 comments
Labels

Comments

@wallrj
Copy link
Member

wallrj commented May 17, 2018

Trying to run the navigator API server locally but found that even with the --standalone-mode flag, it still requires Kubernetes API host, port and token.

./navigator-apiserver_linux_amd64 --etcd-servers http://127.0.0.1:38501 --standalone-mode --secure-port 0
...
F0517 09:14:54.826538   13762 main.go:40] unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined
KUBERNETES_SERVICE_HOST=127.0.0.1 KUBERNETES_SERVICE_PORT=1234 ./navigator-apiserver_linux_amd64 --etcd-servers http://127.0.0.1:38501 --standalone-mode --secure-port 0
...
F0517 09:19:31.363602   13962 main.go:40] open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory

      --standalone-mode                                         Standalone mode runs the APIServer in a mode that doesn't require a connection to a core Kubernetes API server. For example, admission control is disabled in standalone mode.

/kind bug

wallrj added a commit to wallrj/navigator that referenced this issue May 17, 2018
* Tried to separate out the API server options that require kubernetes API configuration options.
* Don't apply those command line options if `--standalone-mode` has been supplied.
* Added a wrapper around the Kubernetes integration test framework to also launch the Navigator API server and connect it to the same Etcd server.
* Currently parses stderr to check for a successful startup message, but the API server ought to have an `/healthz` endpoint.

Fixes: jetstack#364
wallrj added a commit to wallrj/navigator that referenced this issue May 21, 2018
* Tried to separate out the API server options that require kubernetes API configuration options.
* Don't apply those command line options if `--standalone-mode` has been supplied.
* Added a wrapper around the Kubernetes integration test framework to also launch the Navigator API server and connect it to the same Etcd server.
* Currently parses stderr to check for a successful startup message, but the API server ought to have an `/healthz` endpoint.

Fixes: jetstack#364

Hook up a navigator cli helper
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants