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
:
List permissions
List all unique images
Debug node with ‘crictl’
-
List nodes: kubectl get nodes
-
Deploy debugging pod to node: kubectl debug node/mynode -it --image=ubuntu
-
Refresh packages and install curl
: apt update && apt install curl -y
-
Install crictl
:
More information here and here.
Trigger an External Secret refresh
More information here.