|
| 1 | +CHART NAME: {{ .Chart.Name }} |
| 2 | +CHART VERSION: {{ .Chart.Version }} |
| 3 | +APP VERSION: {{ .Chart.AppVersion }} |
| 4 | + |
| 5 | +** Please be patient while the chart is being deployed ** |
| 6 | + |
| 7 | +{{- if .Values.gateway.enabled }} |
| 8 | +MinIO® deployed as a {{ upper .Values.gateway.type }} Gateway |
| 9 | +{{- end }} |
| 10 | + |
| 11 | +MinIO® can be accessed via port {{ .Values.service.port }} on the following DNS name from within your cluster: |
| 12 | + |
| 13 | + {{ include "common.names.fullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }} |
| 14 | + |
| 15 | +To get your credentials run: |
| 16 | + |
| 17 | + export ROOT_USER=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ include "minio.secretName" . }} -o jsonpath="{.data.root-user}" | base64 -d) |
| 18 | + export ROOT_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ include "minio.secretName" . }} -o jsonpath="{.data.root-password}" | base64 -d) |
| 19 | + |
| 20 | +To connect to your MinIO® server using a client: |
| 21 | + |
| 22 | +- Run a MinIO® Client pod and append the desired command (e.g. 'admin info'): |
| 23 | + |
| 24 | + kubectl run --namespace {{ .Release.Namespace }} {{ include "common.names.fullname" . }}-client \ |
| 25 | + --rm --tty -i --restart='Never' \ |
| 26 | + --env MINIO_SERVER_ROOT_USER=$ROOT_USER \ |
| 27 | + --env MINIO_SERVER_ROOT_PASSWORD=$ROOT_PASSWORD \ |
| 28 | + --env MINIO_SERVER_HOST={{ include "common.names.fullname" . }} \ |
| 29 | + {{- if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }} |
| 30 | + --labels="{{ include "common.names.fullname" . }}-client=true" \ |
| 31 | + {{- end }} |
| 32 | + --image {{ template "minio.clientImage" . }} -- admin info minio |
| 33 | + |
| 34 | +{{- if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }} |
| 35 | + |
| 36 | + NOTE: Since NetworkPolicy is enabled, only pods with label |
| 37 | + "{{ template "common.names.fullname" . }}-client=true" will be able to connect to MinIO®. |
| 38 | + |
| 39 | +{{- end }} |
| 40 | +{{- if or .Values.gateway.enabled (not .Values.disableWebUI) }} |
| 41 | + |
| 42 | +To access the MinIO® web UI: |
| 43 | + |
| 44 | +- Get the MinIO® URL: |
| 45 | + |
| 46 | +{{- if .Values.ingress.enabled }} |
| 47 | + |
| 48 | + You should be able to access your new MinIO® web UI through |
| 49 | + |
| 50 | + {{ if .Values.ingress.tls }}https{{ else }}http{{ end }}://{{ .Values.ingress.hostname }}/minio/ |
| 51 | +{{- else if contains "LoadBalancer" .Values.service.type }} |
| 52 | + |
| 53 | + NOTE: It may take a few minutes for the LoadBalancer IP to be available. |
| 54 | + Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ include "common.names.fullname" . }}' |
| 55 | + |
| 56 | + {{- $port:=.Values.service.ports.console | toString }} |
| 57 | + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "common.names.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}") |
| 58 | + echo "MinIO® web URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.ports.console }}{{ end }}/minio" |
| 59 | + |
| 60 | +{{- else if contains "ClusterIP" .Values.service.type }} |
| 61 | + |
| 62 | + echo "MinIO® web URL: http://127.0.0.1:{{ .Values.containerPorts.console }}/minio" |
| 63 | + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "common.names.fullname" . }} {{ .Values.containerPorts.console }}:{{ .Values.service.ports.console }} |
| 64 | + |
| 65 | +{{- else if contains "NodePort" .Values.service.type }} |
| 66 | + |
| 67 | + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "common.names.fullname" . }}) |
| 68 | + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") |
| 69 | + echo "MinIO® web URL: http://$NODE_IP:$NODE_PORT/minio" |
| 70 | + |
| 71 | +{{- end }} |
| 72 | +{{- else }} |
| 73 | + |
| 74 | + WARN: MinIO® Web UI is disabled. |
| 75 | +{{- end }} |
| 76 | + |
| 77 | +{{- include "common.warnings.rollingTag" .Values.image }} |
| 78 | +{{- include "common.warnings.rollingTag" .Values.clientImage }} |
| 79 | +{{- include "common.warnings.rollingTag" .Values.volumePermissions.image }} |
| 80 | +{{- include "minio.validateValues" . }} |
| 81 | + |
| 82 | +{{- $requiredPasswords := list -}} |
| 83 | +{{- $secretName := include "minio.secretName" . -}} |
| 84 | +{{- if and (not .Values.auth.existingSecret) (not .Values.auth.forceNewKeys) (not .Values.gateway.enabled) -}} |
| 85 | + {{- $requiredRootUser := dict "valueKey" "auth.rootUser" "secret" $secretName "field" "root-user" -}} |
| 86 | + {{- $requiredRootPassword := dict "valueKey" "auth.rootPassword" "secret" $secretName "field" "root-password" -}} |
| 87 | + {{- $requiredPasswords = append $requiredPasswords $requiredRootUser -}} |
| 88 | + {{- $requiredPasswords = append $requiredPasswords $requiredRootPassword -}} |
| 89 | +{{- end -}} |
| 90 | +{{- $requiredMinioPasswordErrors := include "common.validations.values.multiple.empty" (dict "required" $requiredPasswords "context" $) -}} |
| 91 | +{{- include "common.errors.upgrade.passwords.empty" (dict "validationErrors" (list $requiredMinioPasswordErrors) "context" $) -}} |
0 commit comments