Kubernetes cluster pack template
Context, namespace and the commands you type every day against one cluster.
Adds #kubernetes to the browser demo. No account.
Keys
- context
- prod-eu
- namespace
- app
- logs_cmd:command
- kubectl --context prod-eu -n app logs -f deploy/web
- dashboard:url
- https://grafana.example.com
Example values. Rename, add or remove keys after you create the pack.
In a task
investigate the restarts on #kubernetes.namespace @today !1
In the terminal
tsk env kubernetes
CONTEXT=prod-eu
NAMESPACE=app
LOGS_CMD='kubectl --context prod-eu -n app logs -f deploy/web'
DASHBOARD=https://grafana.example.comThe real tsk decrypts secrets on your machine and prints them.
Switching clusters means remembering the context name, the namespace and the flags that go with them. This template keeps them per cluster, along with the commands you run against it most.
tsk get kubernetes.logs_cmd
tsk open kubernetes.dashboard
Make one pack per cluster (k8s-prod-eu, k8s-staging) and add a command field for each thing you type more than twice a week.