Using Glauco
Copy kubectl commands
Copy a kubectl get, describe, logs or edit command for any resource.
From a detail view
- Open the resource.
- Click kubectl in the header.
- Pick Get (YAML), Describe, Logs or Edit. Logs is for pods and workloads.
- Paste the command in a terminal.
From a table
- Click the ⋮ menu at the end of the row, or right-click the row.
- Pick Copy: kubectl get, Copy: kubectl describe or Copy: kubectl logs.
What you get
The command names the namespace and the context, so it works in any terminal, whatever your current context:
kubectl get deployments web -n shop --context prod -o yaml
kubectl logs deployments/web -n shop --context prodFor a workload, kubectl logs reads one of its pods. Custom resources use kind.group, for example certificates.cert-manager.io. Names with unusual characters are quoted.
Still stuck? Contact us.