mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
* [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>
30 lines
1.1 KiB
YAML
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 }}
|