sensu / sensu-k8s-quick-start

14 stars 17 forks source link

sensu-backend init is required to set admin password #3

Open jspaleta opened 4 years ago

jspaleta commented 4 years ago

Running through the readme using minikube.

After getting the sensu backend statefulset installed, login as admin won't work until I manually sensu-backend init in one of the backend containers. Ex: kubectl -n sensu-system exec -it sensu-backend-0 -- sensu-backend init

After I run that manually I'm able to login into web-ui and sensuctl configure without a problem.

No idea how to automate this in a container environment as it appears you have to run it after the backend cluster is up and running.

jspaleta commented 4 years ago

Figured it out... calling the full path to sensu-backend down in opt breakes the logic that runs init after the backend is up. I'll test a change and roll into my open PR.

jspaleta commented 4 years ago

Fixed in PR #2