Skip to content

Instantly share code, notes, and snippets.

Avatar

Ram Iyengar ramiyengar

  • Cloud Foundry Foundation
  • The World
  • Twitter @ramiyengar
View GitHub Profile
View 4HackScript
./hack/generate-values.sh -d 35.192.46.62.xip.io > /home/ram/tempdir/cf-values.yml
vi /home/ram/tempdir/cf-values.yml
View 3GitCf-For-K8s
git clone https://github.com/cloudfoundry/cf-for-k8s.git
cd cf-for-k8s
View 2GitCloneCF-K8s-Prometheus
git clone https://github.com/cloudfoundry/cf-k8s-prometheus.git
View 1_GcloudConnect
gcloud container clusters get-credentials <cluster-name> --zone <zone-name> --project <project-name>
View kubectl-port-forward
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
View kubetl-get-pods-cf-workloads
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
View manifest.yml-cf-test-metrics
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "2112"
prometheus.io/path: "/metrics"
View git-clone
git clone https://github.com/cloudfoundry/cf-for-k8s-metric-examples.git