Initialisation depot
This commit is contained in:
18
RdpBroker/chart/rdpbroker/templates/networkpolicy.yaml
Normal file
18
RdpBroker/chart/rdpbroker/templates/networkpolicy.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
{{- if .Values.networkPolicy.enabled }}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: {{ include "rdpbroker.fullname" . }}
|
||||
labels:
|
||||
{{- include "rdpbroker.labels" . | nindent 4 }}
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
{{- include "rdpbroker.selectorLabels" . | nindent 6 }}
|
||||
policyTypes:
|
||||
{{- toYaml .Values.networkPolicy.policyTypes | nindent 4 }}
|
||||
{{- with .Values.networkPolicy.ingress }}
|
||||
ingress:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user