Upgrading to v0.1.11 throws a not found error (.kube/config: no such file or directory)
cmarquezrusso opened this issue · 2 comments
cmarquezrusso commented
After updating to v0.1.11 with kubectl set image
the new pods were crashing due to an error with the k8s configuration.
It seems to be related to the removal of IN_CLUSTER=true
in the Dockerfile.
I will perform additional diagnostics and add the info here.
Log:
2020/03/12 13:30:17 ### Kubeview v0.1.11 starting...
2020/03/12 13:30:17 ### Connecting to Kubernetes...
2020/03/12 13:30:17 ### Creating client with config file: /.kube/config
panic: stat /.kube/config: no such file or directory
goroutine 1 [running]:
main.main()
/build/cmd/server/main.go:59 +0xc54
PS: Thanks for all the upgrades! Great stuff! 👏
cmarquezrusso commented
Fixed by adding
name: IN_CLUSTER
value: "true"
Note: " " are required has these are required as per kubernetes/kubernetes#73692
benc-uk commented
Hi, Sorry yes I felt that having that hard coded in the Dockerfile was a bit hidden and easy to miss. I myself forgot it was there!
I updated the Helm chart to include it but made a typo, you're correct the true should be in quotes