Skip to content

Commit 9b71725

Browse files
rbaturovTal-or
authored andcommitted
add webhook server network policy
This will allow ingress traffic to the webhook server. Signed-off-by: Ronny Baturov <[email protected]>
1 parent 8a467ba commit 9b71725

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

config/networkpolicy/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ resources:
22
- deny-all.yaml
33
- egress-to-api-server.yaml
44
- ingress-to-metrics.yaml
5+
- webhook-server.yaml
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Allow access to the webhook server.
2+
apiVersion: networking.k8s.io/v1
3+
kind: NetworkPolicy
4+
metadata:
5+
name: allow-webhook-traffic
6+
spec:
7+
ingress:
8+
- ports:
9+
- port: 9443
10+
protocol: TCP
11+
podSelector:
12+
matchLabels:
13+
app: numaresources-operator
14+
policyTypes:
15+
- Ingress

0 commit comments

Comments
 (0)