Skip to content

Commit b948f65

Browse files
committed
Add monitor.sh script.
Basically show a summary of the current deployments on gcloud: - current vms, - pods - public ip.
1 parent 18cdd65 commit b948f65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

monitor.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
# run `bash monitor.sh namespace` to see your kubernetes note, pods and public IP`
4+
# likely run it in a separate terminal to see howyour hub deployment in google cloud is going.
5+
6+
watch -n1 'echo "get nodes: $ kubectl get nodes"; kubectl get node; echo "\nget pods: kubectl --namespace='$1' get pod"; kubectl --namespace='$1' get pod; echo "\nGet public ip: kubectl --namespace='$1' get svc proxy-public "; kubectl --namespace='$1' get svc proxy-public'

0 commit comments

Comments
 (0)