From 948efe60c79cb84f2ba32a6c9dc6c19b559d7877 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Sun, 23 Feb 2025 20:57:15 -0600 Subject: [PATCH] disable netpol --- helm-chart/templates/networkpolicy.yaml | 48 ++++++++++++------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/helm-chart/templates/networkpolicy.yaml b/helm-chart/templates/networkpolicy.yaml index b02b397..9582637 100644 --- a/helm-chart/templates/networkpolicy.yaml +++ b/helm-chart/templates/networkpolicy.yaml @@ -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: {}