This file contains 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
./hack/generate-values.sh -d 35.192.46.62.xip.io > /home/ram/tempdir/cf-values.yml | |
vi /home/ram/tempdir/cf-values.yml |
This file contains 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/cloudfoundry/cf-for-k8s.git | |
cd cf-for-k8s |
This file contains 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/cloudfoundry/cf-k8s-prometheus.git |
This file contains 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
gcloud container clusters get-credentials <cluster-name> --zone <zone-name> --project <project-name> |
This file contains 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
cf push |
This file contains 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
curl localhost:2112/metrics |
This file contains 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
kubectl port-forward -n cf-workloads go-app-with-metrics-devel-cf3200ae74-0 2112 | |
Forwarding from 127.0.0.1:2112 -> 2112 | |
Forwarding from [::1]:2112 -> 2112 | |
Handling connection for 2112 |
This file contains 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
kubectl get pods -n cf-workloads | |
NAME READY STATUS RESTARTS AGE | |
go-app-with-metrics-devel-cf3200ae74-0 2/2 Running 0 4h38m | |
go-app-with-metrics-devel-cf3200ae74-1 2/2 Running 0 4h38m | |
restart-workloads-for-istio1-7-3-r6cxp 0/1 Completed 0 9h |
This file contains 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
metadata: | |
annotations: | |
prometheus.io/scrape: "true" | |
prometheus.io/port: "2112" | |
prometheus.io/path: "/metrics" |
This file contains 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/cloudfoundry/cf-for-k8s-metric-examples.git |