Skip to content

Instantly share code, notes, and snippets.

View vishnuhd's full-sized avatar
🎯
Focusing

Vishnu Hari Dadhich vishnuhd

🎯
Focusing
View GitHub Profile
@vishnuhd
vishnuhd / publicIP.sh
Last active July 26, 2019 08:42
Get your public IP address
curl ipinfo.io/ip
curl ifconfig.me
@vishnuhd
vishnuhd / Display pods and nodes
Last active March 15, 2021 07:49
Display pods and nodes they are deployed on side by side
kubectl get pod -o=custom-columns=NODE:.spec.nodeName,NAME:.metadata.name --sort-by="{.spec.nodeName}" --all-namespaces
@vishnuhd
vishnuhd / Accessing k8s dashboard
Created July 8, 2019 15:27
Command to get token to login into the K8s Dashboard
kubectl -n kube-system describe secrets \
`kubectl -n kube-system get secrets | awk '/clusterrole-aggregation-controller/ {print $1}'` \
| awk '/token:/ {print $2}'