This commit is contained in:
changmin hyeon
2025-10-31 14:32:16 +09:00
commit ee24c09708
14 changed files with 478 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
{{- if .Values.networkPolicy.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ include "generic.fullname" . }}
labels:
{{- include "generic.labels" . | nindent 4 }}
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: {{ include "generic.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
policyTypes: ["Ingress"]
ingress:
{{- toYaml .Values.networkPolicy.ingress | nindent 4 }}
{{- end }}