Kubernetes
Alternative interfaces
Set up short names for contexts
-
Open
~/.kube.config
-
Modify
contexts
section:
Use specific context (i.e. cluster)
List namespaces
Set namespace
This will also update the relevant context’s namespace
value in the ~/.kube/config
file.
List everything
Show pod logs
Use ‘helm upgrade’ to install new version of a chart
This is far simpler than a more complex helm install
command with tons of --set
options.
More information here.
Get secret with a dot in its name
The normal access would be something like this:
But doing the same thing for a secret with a dot in its name wouldn’t work, thus:
An alternative would be to use go-template
: