From 85ffa7530dcfafad4627cee56b205ccbe830f6e7 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Sat, 6 Feb 2021 21:55:40 +0500 Subject: [PATCH] Update minio version --- test/minio/1.2.0/.helmignore | 23 +++ test/minio/1.2.0/Chart.yaml | 19 ++ test/minio/1.2.0/README.md | 48 +++++ test/minio/1.2.0/app-readme.md | 1 + test/minio/1.2.0/charts/common-2101.0.0.tgz | Bin 0 -> 4091 bytes test/minio/1.2.0/default_values.yaml | 22 +++ test/minio/1.2.0/migrations/migrate | 28 +++ test/minio/1.2.0/questions.yaml | 181 ++++++++++++++++++ test/minio/1.2.0/requirements.lock | 6 + test/minio/1.2.0/templates/NOTES.txt | 2 + test/minio/1.2.0/templates/_helpers.tpl | 6 + test/minio/1.2.0/templates/deployment.yaml | 46 +++++ test/minio/1.2.0/templates/secrets.yaml | 9 + test/minio/1.2.0/templates/service.yaml | 10 + .../minio/1.2.0/templates/serviceaccount.yaml | 1 + test/minio/1.2.0/test_values.yaml | 23 +++ test/minio/1.2.0/values.yaml | 0 17 files changed, 425 insertions(+) create mode 100644 test/minio/1.2.0/.helmignore create mode 100644 test/minio/1.2.0/Chart.yaml create mode 100755 test/minio/1.2.0/README.md create mode 100644 test/minio/1.2.0/app-readme.md create mode 100644 test/minio/1.2.0/charts/common-2101.0.0.tgz create mode 100644 test/minio/1.2.0/default_values.yaml create mode 100755 test/minio/1.2.0/migrations/migrate create mode 100644 test/minio/1.2.0/questions.yaml create mode 100644 test/minio/1.2.0/requirements.lock create mode 100644 test/minio/1.2.0/templates/NOTES.txt create mode 100644 test/minio/1.2.0/templates/_helpers.tpl create mode 100644 test/minio/1.2.0/templates/deployment.yaml create mode 100644 test/minio/1.2.0/templates/secrets.yaml create mode 100644 test/minio/1.2.0/templates/service.yaml create mode 100644 test/minio/1.2.0/templates/serviceaccount.yaml create mode 100644 test/minio/1.2.0/test_values.yaml create mode 100644 test/minio/1.2.0/values.yaml diff --git a/test/minio/1.2.0/.helmignore b/test/minio/1.2.0/.helmignore new file mode 100644 index 0000000000..a9fe727881 --- /dev/null +++ b/test/minio/1.2.0/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +# OWNERS file for Kubernetes +OWNERS \ No newline at end of file diff --git a/test/minio/1.2.0/Chart.yaml b/test/minio/1.2.0/Chart.yaml new file mode 100644 index 0000000000..24b8727508 --- /dev/null +++ b/test/minio/1.2.0/Chart.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +description: High Performance, Kubernetes Native Object Storage +name: minio +version: 1.2.0 +appVersion: master +keywords: +- storage +- object-storage +- S3 +home: https://min.io +icon: https://min.io/resources/img/logo/MINIO_wordmark.png +sources: +- https://github.com/minio/minio +- https://github.com/minio/charts +upstream_version: 8.0.5 +dependencies: + - name: common + repository: file://../../../library/common/2101.0.0 + version: 2101.0.0 diff --git a/test/minio/1.2.0/README.md b/test/minio/1.2.0/README.md new file mode 100755 index 0000000000..e1eaee7605 --- /dev/null +++ b/test/minio/1.2.0/README.md @@ -0,0 +1,48 @@ +MinIO +===== + +[MinIO](https://min.io) is a High Performance Object Storage released under Apache License v2.0. It is API compatible with Amazon S3 cloud storage service. Use MinIO to build high performance infrastructure for machine learning, analytics and application data workloads. + +MinIO supports [distributed mode](https://docs.minio.io/docs/distributed-minio-quickstart-guide). In distributed mode, you can pool multiple drives (even on different machines) into a single object storage server. + +For more detailed documentation please visit [here](https://docs.minio.io/) + +Introduction +------------ + +This chart bootstraps MinIO deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. + + +Configuration +------------- + +The following table lists the configurable parameters of the MinIO chart and their default values. + +| Parameter | Description | Default | +|:-------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------| +| `image.repository` | Image repository | `minio/minio` | +| `image.tag` | MinIO image tag. Possible values listed [here](https://hub.docker.com/r/minio/minio/tags/). | `RELEASE.2020-11-06T23-17-07Z` | +| `image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `extraArgs` | Additional command line arguments to pass to the MinIO server | `[]` | +| `accessKey` | Default access key (5 to 20 characters) | random 20 chars | +| `secretKey` | Default secret key (8 to 40 characters) | random 40 chars | +| `persistence.enabled` | Use persistent volume to store data | `true` | +| `persistence.size` | Size of persistent volume claim | `500Gi` | +| `persistence.existingClaim` | Use an existing PVC to persist data | `nil` | +| `persistence.storageClass` | Storage class name of PVC | `nil` | +| `persistence.accessMode` | ReadWriteOnce or ReadOnly | `ReadWriteOnce` | +| `persistence.subPath` | Mount a sub directory of the persistent volume if set | `""` | +| `environment` | Set MinIO server relevant environment variables in `values.yaml` file. MinIO containers will be passed these variables when they start. | `MINIO_STORAGE_CLASS_STANDARD: EC:4"` | + +Some parameters above map to the env variables defined in the [MinIO DockerHub image](https://hub.docker.com/r/minio/minio/). + +Pass environment variables to MinIO containers +---------------------------------------------- + +To pass environment variables to MinIO containers when deploying via Helm chart, use the below command line format + +```bash +$ helm install --set environment.MINIO_BROWSER=on,environment.MINIO_DOMAIN=domain-name minio/minio +``` + +You can add as many environment variables as required, using the above format. Just add `environment.=` under `set` flag. diff --git a/test/minio/1.2.0/app-readme.md b/test/minio/1.2.0/app-readme.md new file mode 100644 index 0000000000..246e247c39 --- /dev/null +++ b/test/minio/1.2.0/app-readme.md @@ -0,0 +1 @@ +[MinIO](https://min.io) is a High Performance Object Storage released under Apache License v2.0. It is API compatible with Amazon S3 cloud storage service. Use MinIO to build high performance infrastructure for machine learning, analytics and application data workloads. diff --git a/test/minio/1.2.0/charts/common-2101.0.0.tgz b/test/minio/1.2.0/charts/common-2101.0.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..3a22457ea69f5da42b01b6548f9d39e6eed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qePCnLxha#hF&69e{PT|uf=gxBk+Ar1tt)d`^>lki7Kr1 z_phZXFDh%l&FhH~V*0^Ri`~m7jYB4FV~ zq-h&>e-^23F>24iStw+pmGf>Ii%?2%yBvjNR_qfNrPQW1+4LOiV=5lING)1_^+o&A z=Fm4+7Tf>ygXNTGz5nT;ng888I^5)ctf$mNScOK`3dQ&t=!a5v_ld*=I0LJo%vqUb z;%c$#X&6O?fcWqOymV$kJ-?$clsxU{q+KH2&A$bPb2?X+M%~}@vZihwtWuJ$2&?73 zyst;3S^kekn2za?ae<$IjHUcP6aU#gJldT9UQ2laS41fkOgs7v1;G6X8T50SCX@{! zBk>&>qKtwUpby8{3xOrb5vC~&Q{FeZ2$T(f0D&n{bb>~XRP}@}@4)Pp=`NLI%;0s*e8GpdUp2 z{}Ubkud5ghJH!>SFreuOc-rese*G!K?odUcg%- zD9tgx;&H2gMujkP?d5$rb#(%mq z{NLT=f3K&!fY`APsecc^Tjos{(SQ01}?7Q^0yoK z_59@W25x?X|2l_@%j=ty*RRjd;Oyef`RUE;-(S57%<)<(fx!R#jOn;O{Qqu^l*;6B zr{iuCN_Z?gif1&|rfJdiRv+J%ofk!$?FcT^-y~$Y$hgD;axsOW;CWUEFZU-1_>jiX zM|F>AE7Ga} zFjXN%1txinFea2KWTXHZa~(UWhPS}=Ur)%TzHLEY!6BwV;*mDS2n;z%3rzZ0Oy%s& z?@4uR+dj%BF0}rff>R{3`$e|NpmYzN`Rp006^LAzc6f literal 0 HcmV?d00001 diff --git a/test/minio/1.2.0/default_values.yaml b/test/minio/1.2.0/default_values.yaml new file mode 100644 index 0000000000..7afa31dc0d --- /dev/null +++ b/test/minio/1.2.0/default_values.yaml @@ -0,0 +1,22 @@ +## Set default image, imageTag, and imagePullPolicy. mode is used to indicate the +## +image: + repository: minio/minio + tag: RELEASE.2020-11-19T23-48-16Z + pullPolicy: IfNotPresent + +## Additional arguments to pass to minio binary +extraArgs: [] + +updateStrategy: RollingUpdate + +service: + nodePort: 9000 + +environment: + ## Please refer for comprehensive list https://docs.minio.io/docs/minio-server-configuration-guide.html + +appVolumeMounts: + export: + emptyDir: true + mountPath: "/export" diff --git a/test/minio/1.2.0/migrations/migrate b/test/minio/1.2.0/migrations/migrate new file mode 100755 index 0000000000..d9772faa1d --- /dev/null +++ b/test/minio/1.2.0/migrations/migrate @@ -0,0 +1,28 @@ +#!/usr/bin/python3 +import json +import os +import sys + + +def migrate(values): + if values.get('appVolumeMounts'): + return values + + values.update({ + 'appVolumeMounts': { + 'export': { + 'hostPathEnabled': values['minioHostPathEnabled'], + **({'hostPath': values['minioHostPath']} if values.get('minioHostPath') else {}) + }, + }, + }) + return values + + +if __name__ == '__main__': + if len(sys.argv) != 2: + exit(1) + + if os.path.exists(sys.argv[1]): + with open(sys.argv[1], 'r') as f: + print(json.dumps(migrate(json.loads(f.read())))) diff --git a/test/minio/1.2.0/questions.yaml b/test/minio/1.2.0/questions.yaml new file mode 100644 index 0000000000..e4753328ae --- /dev/null +++ b/test/minio/1.2.0/questions.yaml @@ -0,0 +1,181 @@ +groups: + - name: "Container Images" + description: "Image to be used for container" + - name: "Workload Configuration" + description: "Configure workload deployment" + - name: "Storage" + description: "Configure Storage for Nextcloud" + - name: "Minio Configuration" + description: "Configure Minio credentials" + +portals: + web_portal: + protocols: + - "http" + host: + - "$node_ip" + ports: + - "$variable-service.nodePort" + +questions: + # Image related + - variable: image + description: "Docker Image Details" + label: "Docker Image" + group: "Container Images" + schema: + type: dict + required: true + attrs: + - variable: repository + description: "Docker image repository" + label: "Image repository" + schema: + type: string + default: "minio/minio" + required: true + - variable: tag + description: "Tag to use for specified image" + label: "Image Tag" + schema: + type: string + default: "RELEASE.2020-11-19T23-48-16Z" + - variable: pullPolicy + description: "Docker Image Pull Policy" + label: "Image Pull Policy" + schema: + type: string + default: "IfNotPresent" + enum: + - value: "IfNotPresent" + description: "Only pull image if not present on host" + - value: "Always" + description: "Always pull image even if present on host" + - value: "Never" + 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" + + - variable: extraArgs + label: "Minio Extra Arguments" + group: "Minio Configuration" + schema: + type: list + default: [] + items: + - variable: arg + label: "Argument" + schema: + type: string + + - variable: accessKey + label: "Access Key" + group: "Minio Configuration" + description: "Enter the S3 access ID" + schema: + type: string + private: true + required: true + min_length: 5 + max_length: 20 + + - variable: secretKey + label: "Secret Key" + group: "Minio Configuration" + description: "Enter the S3 secret access key" + schema: + type: string + private: true + required: true + min_length: 8 + max_length: 40 + + - variable: environmentVariables + label: "Minio image environment" + group: "Minio Configuration" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string + + - variable: service + description: "Minio Service Configuration" + label: "Minio Service Configuration" + group: "Minio Configuration" + schema: + type: dict + required: true + attrs: + - variable: nodePort + label: "Node Port to use for Minio" + schema: + type: int + min: 9000 + max: 65535 + default: 9000 + required: true + + - variable: appVolumeMounts + label: "Minio Storage" + group: "Storage" + schema: + type: dict + attrs: + - variable: export + label: "Data Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Minio Data Volume Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "ix-minio" + editable: false + - variable: mountPath + label: "Minio Data Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/export" + - variable: hostPathEnabled + label: "Enable Host Path for Minio Data Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Minio Data Volume" + schema: + type: hostpath + required: true diff --git a/test/minio/1.2.0/requirements.lock b/test/minio/1.2.0/requirements.lock new file mode 100644 index 0000000000..74ceebcbc1 --- /dev/null +++ b/test/minio/1.2.0/requirements.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../library/common/2101.0.0 + version: 2101.0.0 +digest: sha256:6ab46f958de11ae6a24d8f7e18417aa9852a8d968d5b0cc94ffa4700449931d6 +generated: "2021-02-04T01:15:55.416388+05:00" diff --git a/test/minio/1.2.0/templates/NOTES.txt b/test/minio/1.2.0/templates/NOTES.txt new file mode 100644 index 0000000000..88e8e93ef8 --- /dev/null +++ b/test/minio/1.2.0/templates/NOTES.txt @@ -0,0 +1,2 @@ +Minio can be accessed from the following URL: +http://$node_ip:{{ .Values.service.nodePort }}/ diff --git a/test/minio/1.2.0/templates/_helpers.tpl b/test/minio/1.2.0/templates/_helpers.tpl new file mode 100644 index 0000000000..c769c2fb2a --- /dev/null +++ b/test/minio/1.2.0/templates/_helpers.tpl @@ -0,0 +1,6 @@ +{{/* +Determine secret name. +*/}} +{{- define "minio.secretName" -}} +{{- include "common.names.fullname" . -}} +{{- end -}} diff --git a/test/minio/1.2.0/templates/deployment.yaml b/test/minio/1.2.0/templates/deployment.yaml new file mode 100644 index 0000000000..aed4ad032b --- /dev/null +++ b/test/minio/1.2.0/templates/deployment.yaml @@ -0,0 +1,46 @@ +{{ $scheme := "http" }} +apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} +kind: Deployment +metadata: + name: {{ template "common.names.fullname" . }} + labels: + app: {{ template "common.names.name" . }} + chart: {{ template "common.names.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: + replicas: {{ (default 1 .Values.replicas) }} + strategy: + type: {{ (default "Recreate" .Values.updateStrategy ) }} + selector: + matchLabels: + app: {{ template "common.names.name" . }} + release: {{ .Release.Name }} + template: + metadata: + name: {{ template "common.names.fullname" . }} + labels: + app: {{ template "common.names.name" . }} + release: {{ .Release.Name }} + {{- include "common.labels.selectorLabels" . | nindent 8 }} + annotations: {{ include "common.annotations" . | nindent 8 }} + spec: + serviceAccountName: {{ include "common.names.serviceAccountName" . | quote }} + containers: + - name: {{ .Chart.Name }} + {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} + {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} + command: + - "/bin/sh" + - "-ce" + - "/usr/bin/docker-entrypoint.sh minio server /export {{ (.Values.extraArgs | default list) | join " " }}" + ports: + - name: {{ $scheme }} + containerPort: 9000 + env: + {{ $secretName := (include "minio.secretName" .) }} + {{ $envList := (default list .Values.environment) }} + {{ $envList = mustAppend $envList (dict "name" "MINIO_ACCESS_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "accesskey") }} + {{ $envList = mustAppend $envList (dict "name" "MINIO_SECRET_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey") }} + {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} +{{ include "common.storage.allAppVolumes" .Values | nindent 6 }} diff --git a/test/minio/1.2.0/templates/secrets.yaml b/test/minio/1.2.0/templates/secrets.yaml new file mode 100644 index 0000000000..f44495e5e1 --- /dev/null +++ b/test/minio/1.2.0/templates/secrets.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Secret +metadata: + name: {{ template "minio.secretName" . }} + labels: {{ include "common.labels" . | nindent 4 }} +type: Opaque +data: + accesskey: {{ if .Values.accessKey }}{{ .Values.accessKey | toString | b64enc | quote }}{{ else }}{{ randAlphaNum 20 | b64enc | quote }}{{ end }} + secretkey: {{ if .Values.secretKey }}{{ .Values.secretKey | toString | b64enc | quote }}{{ else }}{{ randAlphaNum 40 | b64enc | quote }}{{ end }} diff --git a/test/minio/1.2.0/templates/service.yaml b/test/minio/1.2.0/templates/service.yaml new file mode 100644 index 0000000000..34e44be851 --- /dev/null +++ b/test/minio/1.2.0/templates/service.yaml @@ -0,0 +1,10 @@ +{{ $svc := .Values.service }} +{{ $selectors := list }} +{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} +{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} +{{ $ports := list }} +{{ $ports = mustAppend $ports (dict "name" "http" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 9000) }} +{{ $params := . }} +{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} +{{ $_1 := set .Values "extraSelectorLabels" $selectors }} +{{ include "common.classes.service" $params }} diff --git a/test/minio/1.2.0/templates/serviceaccount.yaml b/test/minio/1.2.0/templates/serviceaccount.yaml new file mode 100644 index 0000000000..12bd3f4a39 --- /dev/null +++ b/test/minio/1.2.0/templates/serviceaccount.yaml @@ -0,0 +1 @@ +{{ include "common.serviceaccount" . }} diff --git a/test/minio/1.2.0/test_values.yaml b/test/minio/1.2.0/test_values.yaml new file mode 100644 index 0000000000..383d0bbdd5 --- /dev/null +++ b/test/minio/1.2.0/test_values.yaml @@ -0,0 +1,23 @@ +## Set default image, imageTag, and imagePullPolicy. mode is used to indicate the +## +image: + repository: minio/minio + tag: RELEASE.2020-11-19T23-48-16Z + pullPolicy: IfNotPresent + +## Additional arguments to pass to minio binary +extraArgs: [] + +updateStrategy: RollingUpdate + +service: + nodePort: 32001 + +environmentVariables: [] + ## Please refer for comprehensive list https://docs.minio.io/docs/minio-server-configuration-guide.html + +emptyDirVolumes: true +appVolumeMounts: + export: + emptyDir: true + mountPath: "/export" diff --git a/test/minio/1.2.0/values.yaml b/test/minio/1.2.0/values.yaml new file mode 100644 index 0000000000..e69de29bb2