This is a...
Problem:
kube-apiserver can't see a basic auth file that clearly exists.
Reproduction:
kubeadmapiserver container/etc/kubernetes/kubepasswd.csv with the contents: password,user,user/etc/kubernetes/manifests/kube-apiserver.yamlcommand reading: - --basic-auth-file=/etc/kubernetes/kubepasswd.csvdocker ps -a | grep apiserver and note which container died most recently.docker logs against that containerinvalid authentication config: open /etc/kubernetes/kubepasswd.csv: no such file or directory
# ls -l /etc/kubernetes/kubepasswd.csv
-rwxrwxrwx 1 root root 13 Oct 4 22:23 /etc/kubernetes/kubepasswd.csv
The file exists, has open permissions, and a valid format, yet the error persists. This is an Ubuntu 16.04 machine, so SELinux is off the table, neither am I getting any Apparmor AVC messages in the syslog.
Proposed Solution:
kube-apiserver should read the file that very definitely exists
Page to Update:
n/a
Kubernetes Version:
1.8
Thanks for the report @Karunamon!
As I'm reading this, I looks more like an issue with Kubernetes than with the documentation on Kubernetes. If that's the case, could open an issue at https://github.com/kubernetes/kubernetes, as it likely won't get the attention you're desiring when filed against the documentation.
D'oh! Wrong repo. Thanks :)
Still may be a documentation issue as
https://stackoverflow.com/questions/46618383/how-to-config-simple-login-pass-authentication-for-kubernetes-desktop-ui
solved the problem for me. There seems to be a change in k8s 1.8
Most helpful comment
D'oh! Wrong repo. Thanks :)