From 1f63beb0c51153388a73654952a3076183a1c589 Mon Sep 17 00:00:00 2001 From: "Keerthan Reddy Mala (kmala)" Date: Fri, 7 Oct 2016 13:55:23 -0600 Subject: [PATCH] feat(charts): Add helm charts for minio --- charts/minio/Chart.yaml | 7 +++ charts/minio/templates/minio-deployment.yaml | 57 +++++++++++++++++++ .../templates/minio-service-account.yaml | 8 +++ charts/minio/templates/minio-service.yaml | 14 +++++ charts/minio/templates/minio-user-secret.yaml | 10 ++++ charts/minio/values.yaml | 5 ++ 6 files changed, 101 insertions(+) create mode 100644 charts/minio/Chart.yaml create mode 100644 charts/minio/templates/minio-deployment.yaml create mode 100644 charts/minio/templates/minio-service-account.yaml create mode 100644 charts/minio/templates/minio-service.yaml create mode 100644 charts/minio/templates/minio-user-secret.yaml create mode 100644 charts/minio/values.yaml diff --git a/charts/minio/Chart.yaml b/charts/minio/Chart.yaml new file mode 100644 index 0000000..3b581f9 --- /dev/null +++ b/charts/minio/Chart.yaml @@ -0,0 +1,7 @@ +name: minio +home: https://github.com/deis/minio +version: +description: Minio Object Storage in Kubernetes, used by Deis Workflow. +maintainers: + - name: Deis Team + email: engineering@deis.com diff --git a/charts/minio/templates/minio-deployment.yaml b/charts/minio/templates/minio-deployment.yaml new file mode 100644 index 0000000..7db852c --- /dev/null +++ b/charts/minio/templates/minio-deployment.yaml @@ -0,0 +1,57 @@ +{{- if eq .Values.global.storage "minio" }} +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: deis-minio + labels: + heritage: deis + annotations: + component.deis.io/version: {{ .Values.docker_tag }} +spec: + replicas: 1 + strategy: + type: Recreate + selector: + matchLabels: + app: deis-minio + template: + metadata: + labels: + app: deis-minio + spec: + serviceAccount: deis-minio + containers: + - name: deis-minio + image: quay.io/{{.Values.org}}/minio:{{.Values.docker_tag}} + imagePullPolicy: {{.Values.pull_policy}} + env: + - name: HEALTH_SERVER_PORT + value: "8082" + ports: + - containerPort: 9000 + - containerPort: 8082 + livenessProbe: + httpGet: + path: /healthz + port: 8082 + initialDelaySeconds: 30 + timeoutSeconds: 1 + readinessProbe: + httpGet: + path: /healthz + port: 8082 + initialDelaySeconds: 30 + timeoutSeconds: 1 + command: + - boot + args: + - "server /home/minio/" + volumeMounts: + - name: minio-user + mountPath: /var/run/secrets/deis/minio/user + readOnly: true + volumes: + - name: minio-user + secret: + secretName: minio-user +{{- end }} diff --git a/charts/minio/templates/minio-service-account.yaml b/charts/minio/templates/minio-service-account.yaml new file mode 100644 index 0000000..2724940 --- /dev/null +++ b/charts/minio/templates/minio-service-account.yaml @@ -0,0 +1,8 @@ +{{- if eq .Values.global.storage "minio" }} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: deis-minio + labels: + heritage: deis +{{- end }} diff --git a/charts/minio/templates/minio-service.yaml b/charts/minio/templates/minio-service.yaml new file mode 100644 index 0000000..d5494c7 --- /dev/null +++ b/charts/minio/templates/minio-service.yaml @@ -0,0 +1,14 @@ +{{- if eq .Values.global.storage "minio" }} +apiVersion: v1 +kind: Service +metadata: + name: deis-minio + labels: + heritage: deis +spec: + ports: + - name: s3 + port: 9000 + selector: + app: deis-minio +{{- end }} diff --git a/charts/minio/templates/minio-user-secret.yaml b/charts/minio/templates/minio-user-secret.yaml new file mode 100644 index 0000000..e0b7dcd --- /dev/null +++ b/charts/minio/templates/minio-user-secret.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Secret +metadata: + name: minio-user + labels: + heritage: deis +type: Opaque +data: + accesskey: OFRaUlkySlJXTVBUNlVNWFI2STU= + secretkey: Z2JzdHJPdm90TU1jZzJzTWZHVWhBNWE2RXQvRUk1QUx0SUhzb2JZaw== diff --git a/charts/minio/values.yaml b/charts/minio/values.yaml new file mode 100644 index 0000000..5d43971 --- /dev/null +++ b/charts/minio/values.yaml @@ -0,0 +1,5 @@ +org: "deisci" +pull_policy: "Always" +docker_tag: canary +global: + storage: minio