Closed troytop closed 4 years ago
I saw this behaviour before, if I recalled correctly in the eirini logs we saw issues around the eirini SA not being able to get metrics from the nodes. This is related to the eirini SA not having cluster access via the clusterrole definition
Current state:
metrics-server
addon in minikube.
curl --cacert ~/.minikube/ca.crt --cert ~/.minikube/profiles/minikube/client.crt --key ~/.minikube/profiles/minikube/client.key "$(kubectl config view --minify --output=jsonpath='{.clusters[].cluster.server}')/apis/metrics.k8s.io/v1beta1/namespaces/eirini/pods/go-env-test-space-a82380fc86-0"
{ "kind": "PodMetrics", "apiVersion": "metrics.k8s.io/v1beta1", "metadata": { "name": "go-env-test-space-a82380fc86-0", "namespace": "eirini", "selfLink": "/apis/metrics.k8s.io/v1beta1/namespaces/eirini/pods/go-env-test-space-a82380fc86-0", "creationTimestamp": "2020-05-07T19:47:53Z" }, "timestamp": "2020-05-07T19:47:00Z", "window": "1m0s", "containers": [ { "name": "opi", "usage": { "cpu": "1011m", "memory": "10008Ki" } } ] }
To be clear, I'm able to get to the app metrics via Kubernetes, just not via cf app <appname>
or the Applications view in Stratos (via stratos-metrics).
Describe the bug Applications deployed to KubeCF with Eirini enabled do not report their CPU and memory usage.
To Reproduce Deploy KubeCF with Eirini, deploy any app, and observe the metrics with
cf app
or stratos console.Expected behavior Expect metrics to appear as they do with Diego.
Environment