mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
Allow scraping and webhooks
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
b6afc8f6ce
commit
fc4d01b3e5
4 changed files with 30 additions and 1 deletions
14
manifests/policies/allow-scraping.yaml
Normal file
14
manifests/policies/allow-scraping.yaml
Normal file
|
|
@ -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: {}
|
||||
13
manifests/policies/allow-webhooks.yaml
Normal file
13
manifests/policies/allow-webhooks.yaml
Normal file
|
|
@ -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…
Reference in a new issue