openreplay/scripts/helmcharts/databases/charts/minio/templates/networkpolicy.yaml
Rajesh Rajendran 39ae351b6b chore(structure): changed folder structure for helm charts
Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
2022-01-17 02:13:58 +05:30

23 lines
670 B
YAML
Executable file

{{- if .Values.networkPolicy.enabled }}
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: {{ include "minio.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: {{- include "minio.labels" . | nindent 4 }}
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: {{ include "minio.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ingress:
# Allow inbound connections
- ports:
- port: 9000
{{- if not .Values.networkPolicy.allowExternal }}
from:
- podSelector:
matchLabels:
{{ include "minio.fullname" . }}-client: "true"
{{- end }}
{{- end }}