mirror of
https://github.com/Noooste/garage-ui.git
synced 2026-08-31 01:09:25 +00:00
067e00b474
Signed-off-by: Noooste <83548733+Noooste@users.noreply.github.com>
27 lines
575 B
YAML
27 lines
575 B
YAML
{{- if .Values.networkPolicy.enabled -}}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: {{ include "garage-ui.fullname" . }}
|
|
labels:
|
|
{{- include "garage-ui.labels" . | nindent 4 }}
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
{{- include "garage-ui.selectorLabels" . | nindent 6 }}
|
|
policyTypes:
|
|
{{- toYaml .Values.networkPolicy.policyTypes | nindent 4 }}
|
|
ingress:
|
|
- from: []
|
|
ports:
|
|
- protocol: TCP
|
|
port: 8080
|
|
egress:
|
|
- to: []
|
|
ports:
|
|
- protocol: TCP
|
|
port: 53
|
|
- protocol: UDP
|
|
port: 53
|
|
{{- end }}
|