disable netpol

This commit is contained in:
Waylon S. Walker 2025-02-23 20:57:15 -06:00
parent 54cd382650
commit 948efe60c7

View file

@ -1,27 +1,27 @@
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: kube-system # name: kube-system
ports: # ports:
- protocol: TCP # - protocol: TCP
port: {{ .Values.port }} # port: {{ .Values.port }}
egress: # egress:
- {} # - {}
# TODO, optionally add egress restriction. # TODO, optionally add egress restriction.
# - to: # - to:
# - namespaceSelector: {} # - namespaceSelector: {}