Collectd operator utilties
[demo.git] / vnfs / DAaaS / minio / templates / NOTES.txt
1 {{- if eq .Values.service.type "ClusterIP" "NodePort" }}
2 Minio can be accessed via port {{ .Values.service.port }} on the following DNS name from within your cluster:
3 {{ template "minio.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
4
5 To access Minio from localhost, run the below commands:
6
7   1. export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
8
9   2. kubectl port-forward $POD_NAME 9000 --namespace {{ .Release.Namespace }}
10
11 Read more about port forwarding here: http://kubernetes.io/docs/user-guide/kubectl/kubectl_port-forward/
12
13 You can now access Minio server on http://localhost:9000. Follow the below steps to connect to Minio server with mc client:
14
15   1. Download the Minio mc client - https://docs.minio.io/docs/minio-client-quickstart-guide
16
17   2. mc config host add {{ template "minio.fullname" . }}-local http://localhost:9000 {{ .Values.accessKey }} {{ .Values.secretKey }} S3v4
18
19   3. mc ls {{ template "minio.fullname" . }}-local
20
21 Alternately, you can use your browser or the Minio SDK to access the server - https://docs.minio.io/categories/17
22 {{- end }}
23 {{- if eq .Values.service.type "LoadBalancer" }}
24 Minio can be accessed via port {{ .Values.service.port }} on an external IP address. Get the service external IP address by:
25 kubectl get svc --namespace {{ .Release.Namespace }} -l app={{ template "minio.fullname" . }}
26
27 Note that the public IP may take a couple of minutes to be available.
28
29 You can now access Minio server on http://<External-IP>:9000. Follow the below steps to connect to Minio server with mc client:
30
31   1. Download the Minio mc client - https://docs.minio.io/docs/minio-client-quickstart-guide
32
33   2. mc config host add {{ template "minio.fullname" . }}-local http://<External-IP>:{{ .Values.service.port }} {{ .Values.accessKey }} {{ .Values.secretKey }} S3v4
34
35   3. mc ls {{ template "minio.fullname" . }}-local
36
37 Alternately, you can use your browser or the Minio SDK to access the server - https://docs.minio.io/categories/17
38 {{- end }}
39
40 {{ if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }}
41 Note: Since NetworkPolicy is enabled, only pods with label
42 {{ template "minio.fullname" . }}-client=true"
43 will be able to connect to this minio cluster.
44 {{- end }}