blob: 23b41800b8d45897c291f120b3d783e5193cd08b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{{- if .Values.NetworkPolicy.Enabled }}
kind: NetworkPolicy
apiVersion: {{ .Values.NetworkPolicy.ApiVersion }}
metadata:
name: "{{ .Release.Name }}-{{ .Values.Component }}"
spec:
podSelector:
matchLabels:
component: "{{ .Release.Name }}-{{ .Values.Component }}"
ingress:
# Allow web access to the UI
- ports:
- port: {{ .Values.ContainerPort }}
{{- end }}
|