Skip to content

Commit

Permalink
fix(chart): block admin metrics exposition
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrompier committed Sep 13, 2024
1 parent d6edf09 commit acb51c4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions chart/templates/services/admin/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ spec:
- host: {{ include "datasetsServer.ingress.hostname" . }}
http:
paths:
- path: /admin
pathType: Prefix
backend:
service:
name: "{{ include "name" . }}-admin"
port:
name: http
{{- if hasKey $annotations "alb.ingress.kubernetes.io/actions.metrics-unauthorized" }}
- path: /admin/metrics
pathType: Exact
Expand All @@ -20,13 +27,6 @@ spec:
name: metrics-unauthorized
port:
name: use-annotation
{{ end -}}
- path: /admin
pathType: Prefix
backend:
service:
name: "{{ include "name" . }}-admin"
port:
name: http
{{- end -}}
{{- include "ingress.tls" (merge (dict "annotations" $annotations) $ ) | indent 2}}
{{- end }}

0 comments on commit acb51c4

Please sign in to comment.