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
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: {{ .Values.name }}
|
||||
namespace: {{ .Values.namespace | default .Values.name }}
|
||||
labels:
|
||||
service: {{ .Values.name }}
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
service: {{ .Values.name }}
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
ingress:
|
||||
- from:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
name: ingress-nginx
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: {{ .Values.port }}
|
||||
egress:
|
||||
- to:
|
||||
- namespaceSelector: {}
|
||||
podSelector: {}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 53
|
||||
- protocol: UDP
|
||||
port: 53
|
||||
# apiVersion: networking.k8s.io/v1
|
||||
# kind: NetworkPolicy
|
||||
# metadata:
|
||||
# name: {{ .Values.name }}
|
||||
# namespace: {{ .Values.namespace | default .Values.name }}
|
||||
# labels:
|
||||
# service: {{ .Values.name }}
|
||||
# spec:
|
||||
# podSelector:
|
||||
# matchLabels:
|
||||
# service: {{ .Values.name }}
|
||||
# policyTypes:
|
||||
# - Ingress
|
||||
# - Egress
|
||||
# ingress:
|
||||
# - from:
|
||||
# - namespaceSelector:
|
||||
# matchLabels:
|
||||
# name: ingress-nginx
|
||||
# ports:
|
||||
# - protocol: TCP
|
||||
# port: {{ .Values.port }}
|
||||
# egress:
|
||||
# - to:
|
||||
# - namespaceSelector: {}
|
||||
# podSelector: {}
|
||||
# ports:
|
||||
# - protocol: TCP
|
||||
# port: 53
|
||||
# - protocol: UDP
|
||||
# port: 53
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue