no netpol
This commit is contained in:
parent
d700ace4c7
commit
93e8b9a6c5
1 changed files with 31 additions and 31 deletions
|
|
@ -1,31 +1,31 @@
|
||||||
apiVersion: networking.k8s.io/v1
|
# apiVersion: networking.k8s.io/v1
|
||||||
kind: NetworkPolicy
|
# kind: NetworkPolicy
|
||||||
metadata:
|
# metadata:
|
||||||
name: {{ .Values.name }}
|
# name: {{ .Values.name }}
|
||||||
namespace: {{ .Values.namespace | default .Values.name }}
|
# namespace: {{ .Values.namespace | default .Values.name }}
|
||||||
labels:
|
# labels:
|
||||||
service: {{ .Values.name }}
|
# service: {{ .Values.name }}
|
||||||
spec:
|
# spec:
|
||||||
podSelector:
|
# podSelector:
|
||||||
matchLabels:
|
# matchLabels:
|
||||||
service: {{ .Values.name }}
|
# service: {{ .Values.name }}
|
||||||
policyTypes:
|
# policyTypes:
|
||||||
- Ingress
|
# - Ingress
|
||||||
- Egress
|
# - Egress
|
||||||
ingress:
|
# ingress:
|
||||||
- from:
|
# - from:
|
||||||
- namespaceSelector:
|
# - namespaceSelector:
|
||||||
matchLabels:
|
# matchLabels:
|
||||||
name: ingress-nginx
|
# name: ingress-nginx
|
||||||
ports:
|
# ports:
|
||||||
- protocol: TCP
|
# - protocol: TCP
|
||||||
port: {{ .Values.port }}
|
# port: {{ .Values.port }}
|
||||||
egress:
|
# egress:
|
||||||
- to:
|
# - to:
|
||||||
- namespaceSelector: {}
|
# - namespaceSelector: {}
|
||||||
podSelector: {}
|
# podSelector: {}
|
||||||
ports:
|
# ports:
|
||||||
- protocol: TCP
|
# - protocol: TCP
|
||||||
port: 53
|
# port: 53
|
||||||
- protocol: UDP
|
# - protocol: UDP
|
||||||
port: 53
|
# port: 53
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue