Skip to content

Commit

Permalink
Exposed the metrics port in the k8s service and configured Prometheus…
Browse files Browse the repository at this point in the history
… annotations to use the metrics port instead of the webhook one

Fix: aws#136
  • Loading branch information
vai-frd committed Jan 21, 2022
1 parent a65cc3d commit 264b33c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions deploy/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ metadata:
name: pod-identity-webhook
namespace: default
annotations:
prometheus.io/port: "443"
prometheus.io/scheme: "https"
prometheus.io/port: "9999"
prometheus.io/scheme: "http"
prometheus.io/scrape: "true"
spec:
ports:
- port: 443
targetPort: 443
- name: webhook
port: 443
targetPort: 443
- name: metrics
port: 9999
targetPort: 9999
selector:
app: pod-identity-webhook

0 comments on commit 264b33c

Please sign in to comment.