Skip to content

Commit

Permalink
Merge pull request #120 from kmala/charts
Browse files Browse the repository at this point in the history
feat(charts): Add helm charts for minio
  • Loading branch information
kmala authored Oct 12, 2016
2 parents 4c6ba36 + 1f63beb commit 5ffdf97
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/minio/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: minio
home: https://github.com/deis/minio
version: <Will be populated by the ci before publishing the chart>
description: Minio Object Storage in Kubernetes, used by Deis Workflow.
maintainers:
- name: Deis Team
email: [email protected]
57 changes: 57 additions & 0 deletions charts/minio/templates/minio-deployment.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
8 changes: 8 additions & 0 deletions charts/minio/templates/minio-service-account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{- if eq .Values.global.storage "minio" }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: deis-minio
labels:
heritage: deis
{{- end }}
14 changes: 14 additions & 0 deletions charts/minio/templates/minio-service.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
10 changes: 10 additions & 0 deletions charts/minio/templates/minio-user-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
name: minio-user
labels:
heritage: deis
type: Opaque
data:
accesskey: OFRaUlkySlJXTVBUNlVNWFI2STU=
secretkey: Z2JzdHJPdm90TU1jZzJzTWZHVWhBNWE2RXQvRUk1QUx0SUhzb2JZaw==
5 changes: 5 additions & 0 deletions charts/minio/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
org: "deisci"
pull_policy: "Always"
docker_tag: canary
global:
storage: minio

0 comments on commit 5ffdf97

Please sign in to comment.