Skip to content

Commit

Permalink
fix(chart): block /metrics on staging alb (#2813)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrompier committed May 15, 2024
1 parent 4a9d682 commit 3133635
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chart/env/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ api:
type: NodePort
ingress:
enabled: true
annotations:
alb.ingress.kubernetes.io/actions.openapi-redirect: '{"Type":"redirect","RedirectConfig":{"Host":"raw.githubusercontent.com","Path":"/huggingface/dataset-viewer/main/docs/source/openapi.json","Port":"443","Protocol":"HTTPS","Query":"#{query}","StatusCode":"HTTP_307"}}'
alb.ingress.kubernetes.io/actions.metrics-unauthorized: '{"type":"fixed-response","fixedResponseConfig":{"contentType":"text/plain","statusCode":"401","messageBody":"401 Unauthorized"}}'
resources:
requests:
cpu: 100m
Expand Down

0 comments on commit 3133635

Please sign in to comment.