Make sure you have exported the KUBECONFIG env: export KUBECONFIG=/path/rke2_inventory/hetzner/credentials/rke2.yaml
- Get all pods and the nodes they are on
kubectl get pods -o wide
- Get nodes and their labels
kubectl get nodes --show-labels
- Deploy something to the cluster:
kubectl apply -f hetzner/domain.com-backend.yaml
- Delete a deployment from the cluster:
kubectl delete -f https://k8s.io/examples/application/deployment.yaml
- Get/watch logs from pod:
kubectl logs -f pod/vt-vttablet-decontabodusseldorf-2620423388-0c5af156
- Delete pod:
kubectl delete pod/vt-vttablet-decontabodusseldorf-2620423388-0c5af156