jetstack / navigator

Managed Database-as-a-Service (DBaaS) on Kubernetes
Apache License 2.0
271 stars 31 forks source link

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

Open wallrj opened 6 years ago

wallrj commented 6 years ago

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