Files
charts/bitnami/minio/templates/networkpolicy.yaml
Miguel Ruiz 082e9eef2c [bitnami/minio] Major release (#7344)
* [bitnami/minio] Major release

* Update README.md

* Fix metadata

* Update README.md

* Add missing nodePorts.*

* Update bitnami/minio/README.md

Co-authored-by: Alejandro Moreno <alemorcuq@gmail.com>

* [bitnami/minio] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Co-authored-by: Alejandro Moreno <alemorcuq@gmail.com>
Co-authored-by: Bitnami Containers <containers@bitnami.com>
2021-09-10 08:28:09 +02:00

30 lines
1.1 KiB
YAML

{{- if .Values.networkPolicy.enabled }}
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: {{ include "common.names.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
podSelector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
ingress:
# Allow inbound connections
- ports:
- port: {{ .Values.containerPorts.console }}
{{- if not .Values.networkPolicy.allowExternal }}
from:
- podSelector:
matchLabels:
{{ include "common.names.fullname" . }}-client: "true"
- podSelector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 14 }}
{{- end }}
{{- end }}