Files
service-catalog/manifests/helm/openmetadata/1.12.1/templates/networkpolicy.yaml
T
2026-02-27 14:51:57 +09:00

25 lines
648 B
YAML

{{- if .Values.networkPolicy.enabled }}
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: {{ include "OpenMetadata.fullname" . }}-networkpolicy
labels:
{{- include "OpenMetadata.labels" . | indent 4 }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
podSelector:
matchLabels: {{- include "OpenMetadata.selectorLabels" . | nindent 6 }}
policyTypes:
- Ingress
# Allow inbound connections
ingress:
- ports:
- port: {{ .Values.service.port }}
protocol: TCP
- port: {{ .Values.service.adminPort }}
protocol: TCP
{{- end }}