根据 custom-metrics-api 的 readme ,运行 ./deploy.sh 命令部署 custom-metrics-api 却失败。
kubectl get apiservices -n monitoring | grep metrics 输出如下:
v1beta1.custom.metrics.k8s.io monitoring/prometheus-adapter False (FailedDiscoveryCheck) 93s
kubectl describe apiservices v1beta1.custom.metrics.k8s.io -n monitoring 输出的错误信息如下:
failing or missing response from https://10.96.132.172:443/apis/custom.metrics.k8s.io/v1beta1: bad status from https://10.96.132.172:443/apis/custom.metrics.k8s.io/v1beta1: 404
kubectl get ev -n monitoring 发现下面的错误信息:
MountVolume.SetUp failed for volume "config" : configmap "adapter-config" not found
请问如何解决?