22948b65b4
The sample app is a NodeJs app that requests the metrics every second and prints that in the console. In the deployment is created a service account, roles and role binding to allows this application communicate with the api, this token is stored by default on `/var/run/secrets/kubernetes.io/serviceaccount/token`, the application is reading that token and doing the requests on the endpoint `/apis/metrics.k8s.io/v1beta1/pods` that returns all pod metrics and log it on console. Story: 2008457 Task: 41954 Change-Id: Ifd56e6e6ef862515d96d6ca22c2146e382bba78c Signed-off-by: Rafael Jardim <rafaeljordao.jardim@windriver.com>
2 lines
11 B
C++
2 lines
11 B
C++
sample-app
|