Skip to content

Instantly share code, notes, and snippets.

View ramiyengar's full-sized avatar

Ram Iyengar ramiyengar

View GitHub Profile
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
curl localhost:2112/metrics
cf push
gcloud container clusters get-credentials <cluster-name> --zone <zone-name> --project <project-name>
git clone https://github.com/cloudfoundry/cf-k8s-prometheus.git
git clone https://github.com/cloudfoundry/cf-for-k8s.git
cd cf-for-k8s
./hack/generate-values.sh -d 35.192.46.62.xip.io > /home/ram/tempdir/cf-values.yml
vi /home/ram/tempdir/cf-values.yml
ytt -f ~/cf-for-k8s/config -f ~/cf-k8s-prometheus/config -f ~/cf-k8s-prometheus/experimental/add-grafana.yml -f ~/tempdir/cf-values.yml > ~/tempdir/cf-for-k8s-rendered.yml
kapp deploy -a cf -f /home/ram/tempdir/cf-for-k8s-rendered.yml -y
kubectl patch svc istio-ingressgateway --namespace istio-system --patch '{"spec": { "loadBalancerIP": "35.192.46.62" }}'