Closed jimitkr closed 1 year ago
This issue is currently awaiting triage.
If custom-metrics-apiserver contributors determine this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
Hi @jimitkr,
It looks you're using prometheus-adapter, right? Which version are you using? How did you install it?
@olivierlemasle I'm using Prometheus Adapter v0.6.0 and have installed it via a deployment.yml file in my code. Here's the full deployment.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus-adapter
namespace: monitoring
spec:
replicas: 2
selector:
matchLabels:
name: prometheus-adapter
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
name: prometheus-adapter
spec:
containers:
- args:
- --cert-dir=/var/run/serving-cert
- --config=/etc/adapter/config.yaml
- --logtostderr=true
- --metrics-relist-interval=15s
- --prometheus-url=http://prometheus-service.prometheus.svc:9090/
- --secure-port=6443
image: <image_uri>
name: prometheus-adapter
ports:
- containerPort: 6443
volumeMounts:
- mountPath: /tmp
name: tmpfs
readOnly: false
- mountPath: /var/run/serving-cert
name: volume-serving-cert
readOnly: false
- mountPath: /etc/adapter
name: config
readOnly: false
serviceAccountName: prometheus-adapter
volumes:
- emptyDir: {}
name: tmpfs
- emptyDir: {}
name: volume-serving-cert
- configMap:
name: prometheus-adapter-config
name: config
Prometheus adapter logs:
E0209 14:13:25.053677 1 webhook.go:196] Failed to make webhook authorizer request: the server could not find the requested resource
E0209 14:13:25.053754 1 errors.go:77] the server could not find the requested resource
E0209 14:13:25.058400 1 webhook.go:196] Failed to make webhook authorizer request: the server could not find the requested resource
E0209 14:13:25.058478 1 errors.go:77] the server could not find the requested resource
E0209 14:13:25.061852 1 webhook.go:196] Failed to make webhook authorizer request: the server could not find the requested resource
E0209 14:13:25.061916 1 errors.go:77] the server could not find the requested resource
/transfer-issue prometheus-adapter
/triage accepted /assign
@olivierlemasle Sorry to bother. Did you have any luck replicating the problem?
@olivierlemasle My issue was fixed after upgrading prometheus adapter to v0.10.0
I recently upgraded my Kubernetes version to 1.23 and have been getting the following error on the custom metrics api since then:
Kubernetes api-server has the following error:
My API service is configured as follows:
What am i doing wrong?