From a99d01b01e0996f0429b02dbf351eb87b0ec9dc1 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Wed, 9 Dec 2020 04:37:07 +0500 Subject: [PATCH] Update notes.txt --- test/minio/8.0.5/questions.yaml | 30 ++++++++--------- test/minio/8.0.5/templates/NOTES.txt | 49 ++-------------------------- 2 files changed, 17 insertions(+), 62 deletions(-) diff --git a/test/minio/8.0.5/questions.yaml b/test/minio/8.0.5/questions.yaml index 6591a040110..64ee9feb610 100644 --- a/test/minio/8.0.5/questions.yaml +++ b/test/minio/8.0.5/questions.yaml @@ -55,16 +55,16 @@ questions: description: "Never pull image even if it's not present on host" - variable: updateStrategy - label: "Minio update strategy" - group: "Workload Configuration" - schema: - type: string - default: "RollingUpdate" - enum: - - value: "RollingUpdate" - description: "Create new pods and then kill old ones" - - value: "Recreate" - description: "Kill existing pods before creating new ones" + label: "Minio update strategy" + group: "Workload Configuration" + schema: + type: string + default: "RollingUpdate" + enum: + - value: "RollingUpdate" + description: "Create new pods and then kill old ones" + - value: "Recreate" + description: "Kill existing pods before creating new ones" - variable: extraArgs label: "Minio Extra Arguments" @@ -96,11 +96,11 @@ questions: max_length: 40 - variable: environment - label: "Minio image environment" - group: "Minio Configuration" - schema: - type: dict - additional_attrs: true + label: "Minio image environment" + group: "Minio Configuration" + schema: + type: dict + additional_attrs: true - variable: service description: "Minio Service Configuration" diff --git a/test/minio/8.0.5/templates/NOTES.txt b/test/minio/8.0.5/templates/NOTES.txt index 77efd37ff67..060e317c08e 100644 --- a/test/minio/8.0.5/templates/NOTES.txt +++ b/test/minio/8.0.5/templates/NOTES.txt @@ -1,47 +1,2 @@ -{{- if eq .Values.service.type "ClusterIP" "NodePort" }} -Minio can be accessed via port {{ .Values.service.port }} on the following DNS name from within your cluster: -{{ template "minio.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local - -To access Minio from localhost, run the below commands: - - 1. export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - - 2. kubectl port-forward $POD_NAME 9000 --namespace {{ .Release.Namespace }} - -Read more about port forwarding here: http://kubernetes.io/docs/user-guide/kubectl/kubectl_port-forward/ - -You can now access Minio server on http://localhost:9000. Follow the below steps to connect to Minio server with mc client: - - 1. Download the Minio mc client - https://docs.minio.io/docs/minio-client-quickstart-guide - - 2. Get the ACCESS_KEY=$(kubectl get secret {{ template "minio.secretName" . }} -o jsonpath="{.data.accesskey}" | base64 --decode) and the SECRET_KEY=$(kubectl get secret {{ template "minio.secretName" . }} -o jsonpath="{.data.secretkey}" | base64 --decode) - - 3. mc alias set {{ template "minio.fullname" . }}-local http://localhost:{{ .Values.service.port }} "$ACCESS_KEY" "$SECRET_KEY" --api s3v4 - - 4. mc ls {{ template "minio.fullname" . }}-local - -Alternately, you can use your browser or the Minio SDK to access the server - https://docs.minio.io/categories/17 -{{- end }} -{{- if eq .Values.service.type "LoadBalancer" }} -Minio can be accessed via port {{ .Values.service.port }} on an external IP address. Get the service external IP address by: -kubectl get svc --namespace {{ .Release.Namespace }} -l app={{ template "minio.fullname" . }} - -Note that the public IP may take a couple of minutes to be available. - -You can now access Minio server on http://:9000. Follow the below steps to connect to Minio server with mc client: - - 1. Download the Minio mc client - https://docs.minio.io/docs/minio-client-quickstart-guide - - 2. Get the ACCESS_KEY=$(kubectl get secret {{ template "minio.secretName" . }} -o jsonpath="{.data.accesskey}" | base64 --decode) and the SECRET_KEY=$(kubectl get secret {{ template "minio.secretName" . }} -o jsonpath="{.data.secretkey}" | base64 --decode) - 3. mc alias set {{ template "minio.fullname" . }} http://:{{ .Values.service.port }} "$ACCESS_KEY" "$SECRET_KEY" --api s3v4 - - 4. mc ls {{ template "minio.fullname" . }} - -Alternately, you can use your browser or the Minio SDK to access the server - https://docs.minio.io/categories/17 -{{- end }} - -{{ if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }} -Note: Since NetworkPolicy is enabled, only pods with label -{{ template "minio.fullname" . }}-client=true" -will be able to connect to this minio cluster. -{{- end }} +Minio can be accessed from the following URL: +http://$node_ip:{{ .Values.plexServiceTCP.port }}/