Skip to content

Commit

Permalink
Fix namespace in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
camilb committed Aug 13, 2018
1 parent 635a1c7 commit a28b919
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/grafana_proxy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash

#Namespace
NAMESPACE=$(kubectl get sts --all-namespaces | grep prometheus-k8s | cut -d " " -f1)

POD=$(kubectl get pods --namespace=$NAMESPACE | grep grafana| cut -d ' ' -f 1)
kubectl port-forward $POD --namespace=$NAMESPACE 3000:3000
3 changes: 3 additions & 0 deletions tools/prometheus_proxy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash

#Namespace
NAMESPACE=$(kubectl get sts --all-namespaces | grep prometheus-k8s | cut -d " " -f1)

POD=$(kubectl get pods --namespace=$NAMESPACE | grep prometheus-k8s-0| cut -d ' ' -f 1)
kubectl port-forward $POD --namespace=$NAMESPACE 9090:9090

0 comments on commit a28b919

Please sign in to comment.