disable netpol
This commit is contained in:
parent
54cd382650
commit
948efe60c7
1 changed files with 24 additions and 24 deletions
|
|
@ -1,27 +1,27 @@
|
|||
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: kube-system
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: {{ .Values.port }}
|
||||
egress:
|
||||
- {}
|
||||
# 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: kube-system
|
||||
# ports:
|
||||
# - protocol: TCP
|
||||
# port: {{ .Values.port }}
|
||||
# egress:
|
||||
# - {}
|
||||
# TODO, optionally add egress restriction.
|
||||
# - to:
|
||||
# - namespaceSelector: {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue