Skip to content

2.1: Better kubernetes configuration detection based on k8s libraries (#30)

Compare
Choose a tag to compare
@max-rocket-internet max-rocket-internet released this 06 Jul 10:08
· 8 commits to master since this release
9eb8df6
* Instead of doing our own user home directory detection for .kube/config, use the k8s.io/cmdclient built-in methods which support KUBECONFIG env variable, $HOME/.kube/config, and KUBERNETES_SERVICE env variables automatically.
Also print out a sanitized representation of the config at startup in case of misconfiguration.

* no need to pre-initialize variables and require an extra import

* remove superfluous environment variables in helm chart and make the container securityContext configurable via variables instead of hard-coded

---------

Co-authored-by: Max Williams <[email protected]>