Skip to content

Commit

Permalink
feat: test deny rules
Browse files Browse the repository at this point in the history
  • Loading branch information
oscaromeu committed Mar 25, 2024
1 parent c4ed226 commit 484a705
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions kubernetes/apps/dev/podinfo/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,15 @@ spec:
hajimari.io/icon: simple-icons:podinfo
hajimari.io/group: "Public"
nginx.ingress.kubernetes.io/server-snippet: |
location ~* "^/metrics" {
deny all;
if ($request_uri = /metrics) {
return 403;
}
}
#nginx.ingress.kubernetes.io/auth-url: http://authelia.kube-system.svc.cluster.local/api/verify
#nginx.ingress.kubernetes.io/auth-signin: https://auth.${SECRET_DOMAIN}
hosts:
- host: &host "podinfo.${SECRET_DOMAIN}"
paths:
- path: /(.*)
pathType: ImplementationSpecific
- host: *host
paths:
- path: /metrics(/.*)
- path: /
pathType: ImplementationSpecific
tls:
- hosts:
Expand Down

0 comments on commit 484a705

Please sign in to comment.