This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias k=kubectl | |
alias kg='kubectl get' | |
alias kga='kubectl get all' | |
alias kgp='kubectl get pod' | |
alias kgd='kubectl get deploy' | |
alias kd='kubectl describe' | |
alias k-prom-prod='kubectl port-forward --address 0.0.0.0 -n prometheus deploy/prometheus-server 9090:9090 &> /dev/null & kubectl port-forward --address 0.0.0.0 -n prometheus deploy/prometheus-alertmanager 9093:9093 &> /dev/null &' | |
alias k-prom-stage='kubectl port-forward --address 0.0.0.0 -n prometheus deploy/prometheus-server 9190:9090 &> /dev/null & kubectl port-forward --address 0.0.0.0 -n prometheus deploy/prometheus-alertmanager 9193:9093 &> /dev/null &' | |
alias bb='kubectl run busybox --image=busybox --rm -it --restart=Never --command --' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# busybox sh | |
kubectl run busybox --image=busybox --rm -it --restart=Never /bin/sh | |
# curl http://prometheus-node-exporter:9100/metrics | |
kubectl -n prometheus run -it test --image=appropriate/curl --restart=Never --rm -- prometheus-node-exporter:9100/metrics |