navigator icon indicating copy to clipboard operation
navigator copied to clipboard

API server `--standalone-mode` doesn't work

Open wallrj opened this issue 6 years ago • 0 comments

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 avatar May 17 '18 08:05 wallrj