Closed krismarc closed 3 years ago
Ok solved. 😆
"error": "2:the server could not find the requested resource (get pods.metrics.k8s.io). debug_error_string:{\"created\":\"@1615495665.571772000\",\"description\":\"Error received from peer ipv4:10.96.236.26:8080\",\"file\":\"src/core/lib/surface/call.cc\",\"file_line\":1063,\"grpc_message\":\"the server could not find the requested resource (get pods.metrics.k8s.io)\",\"grpc_status\":2}"
somehow I missed this..
Solution:
$ minikube addons enable metrics-server
▪ Using image k8s.gcr.io/metrics-server-amd64:v0.2.1
🌟 The 'metrics-server' addon is enabled
s8me5s@DESKTOP-Q8TBEVJ:~/get-started-python$ cf apps
Getting apps in org test-org / space test-space as admin...
name requested state processes routes
GetStartedPython started web:1/1 GetStartedPython.apps.127.0.0.1.nip.io, test.apps.127.0.0.1.nip.io
Hi KrzMar,
Thanks for the detailed issue and follow up solution report! From my experience running cf-for-k8s, that error message tends to show up when metrics-server is absent from the cluster, so the solution you described in your follow up comment seems consistent with my understanding of the symptoms you described. I'm going to go ahead and resolve the issue as a result, but feel free to reopen if there was something we missed.
Thanks, Andrew
Hi CF Community,
Describe the bug
I've decided to go further with my tests of cf-for-k8s on Minikube using Docker for windows. This time, I've attempted to deploy simple test python app. https://github.com/IBM-Cloud/get-started-python
Push went fine except an error at the end (at this point it should return the app status). However, the app is accessible.
To Reproduce*
Steps to reproduce the behavior:
App deployment using following manifest file:
Check if app exists:
Check if app works:
Cluster information
local minikube using WSL2
CLI versions
paste output of the following commands
ytt --version
: ytt version 0.31.0kapp --version
: kapp version 0.35.0kubectl version
: v1.19.3cf version
: cf version 7.2.0+be4a5ce2b.2020-12-10