Allow scraping and webhooks

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
pull/323/head
Stefan Prodan 4 years ago
parent b6afc8f6ce
commit fc4d01b3e5
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF

@ -0,0 +1,14 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-scraping
spec:
policyTypes:
- Ingress
ingress:
- from:
- namespaceSelector: {}
ports:
- protocol: TCP
port: 8080
podSelector: {}

@ -0,0 +1,13 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-webhooks
spec:
policyTypes:
- Ingress
ingress:
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app: notification-controller

@ -3,9 +3,9 @@ kind: NetworkPolicy
metadata:
name: deny-ingress
spec:
podSelector: {}
policyTypes:
- Ingress
ingress:
- from:
- podSelector: {}
podSelector: {}

@ -2,3 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deny-ingress.yaml
- allow-scraping.yaml
- allow-webhooks.yaml

Loading…
Cancel
Save