Skip to content

Commit

Permalink
fix(helm): add restriction to prom metrics
Browse files Browse the repository at this point in the history
this removes the cluster level configuration
it also adds in restrictions to prom metrics

Issue: https://coreosdev.atlassian.net/browse/QUAY-598

- [ ] It works!
- [ ] Comments provide sufficient explanations for the next contributor
- [ ] Tests cover changes and corner cases
- [ ] Follows Quay syntax patterns and format
  • Loading branch information
charltonaustin committed Jun 13, 2017
1 parent a5e2409 commit d42cb94
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 301 deletions.
30 changes: 0 additions & 30 deletions helm/apostille-app/extra/apostille-monitoring.yaml

This file was deleted.

53 changes: 0 additions & 53 deletions helm/apostille-app/extra/default-http-backend.yaml

This file was deleted.

72 changes: 0 additions & 72 deletions helm/apostille-app/extra/lego.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions helm/apostille-app/extra/namespaces.yaml

This file was deleted.

137 changes: 0 additions & 137 deletions helm/apostille-app/extra/nginx-ingress.yaml

This file was deleted.

22 changes: 22 additions & 0 deletions helm/apostille-app/templates/apostille-ingress-prometheus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
kind: Ingress
apiVersion: extensions/v1beta1
metadata:
name: {{.Values.service}}
namespace: {{.Values.apostille_namespace}}
annotations:
kubernetes.io/tls-acme: "true"
kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/whitelist-source-range: "207.251.72.138/32,50.250.250.40/29,195.226.171.114/32"
spec:
tls:
- hosts:
- {{.Values.service_subdomain}}.quay.io
secretName: {{.Values.service}}-apostille-tls
rules:
- host: {{.Values.service_subdomain}}.quay.io
http:
paths:
- path: /metrics
backend:
serviceName: {{.Values.service}}
servicePort: 4443

0 comments on commit d42cb94

Please sign in to comment.