Last active
July 26, 2017 22:35
-
-
Save rakesh-patnaik/ecdb902480732e1a13adf4890d52fe32 to your computer and use it in GitHub Desktop.
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
git clone https://github.com/openstack/openstack-helm.git | |
cd openstack-helm/tools/vagrant | |
vagrant up | |
vagrant ssh | |
#list running pods | |
sudo kubectl get pods --all-namespaces | |
#list endpoints setup | |
sudo kubectl get endpoints --all-namespaces | |
helm repo add stable http://storage.googleapis.com/kubernetes-charts | |
#install kubernetes dashboard | |
sudo helm install stable/kubernetes-dashboard | |
export POD_NAME=$(kubectl get pods -n default -l "app=kubernetes-dashboard,release=youthful-robin" -o jsonpath="{.items[0].metadata.name}") | |
kubectl -n default port-forward $POD_NAME 9090:9090 | |
#forward 9090 from vagrant vm to the windows host laptop | |
#OPEN virtualbox manager GUI and select vagrant VM -> settings -> Network -> Adapter 1 -> advanced -> port forwarding -> add a rule to map port 9090 on the vagrant VM to 127.0.0.1 and 9090 of the host windows. Save close. | |
#kubernetes will now be available at http://localhost:9090 | |
#install prometheus using helm charts with no persistence | |
sudo helm install stable/prometheus --set alertmanager.persistentVolume.enabled=false --set server.persistentVolume.enabled=false | |
export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}") | |
kubectl --namespace default port-forward $POD_NAME 9091:9090 | |
#forward 9091 from vagrant vm to the windows host laptop | |
#OPEN virtualbox manager GUI and select vagrant VM -> settings -> Network -> Adapter 1 -> advanced -> port forwarding -> add a rule to map port 9090 on the vagrant VM to 127.0.0.1 and 9091 of the host windows. Save close. | |
#prometheus dashboard will now be available at http://localhost:9091 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment