Repository for dip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
648 B

{{- 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 }}