Skip to content

Commit 1f63beb

Browse files
committed
feat(charts): Add helm charts for minio
1 parent 4c6ba36 commit 1f63beb

6 files changed

Lines changed: 101 additions & 0 deletions

File tree

charts/minio/Chart.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: minio
2+
home: https://github.com/deis/minio
3+
version: <Will be populated by the ci before publishing the chart>
4+
description: Minio Object Storage in Kubernetes, used by Deis Workflow.
5+
maintainers:
6+
- name: Deis Team
7+
email: engineering@deis.com
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{{- if eq .Values.global.storage "minio" }}
2+
apiVersion: extensions/v1beta1
3+
kind: Deployment
4+
metadata:
5+
name: deis-minio
6+
labels:
7+
heritage: deis
8+
annotations:
9+
component.deis.io/version: {{ .Values.docker_tag }}
10+
spec:
11+
replicas: 1
12+
strategy:
13+
type: Recreate
14+
selector:
15+
matchLabels:
16+
app: deis-minio
17+
template:
18+
metadata:
19+
labels:
20+
app: deis-minio
21+
spec:
22+
serviceAccount: deis-minio
23+
containers:
24+
- name: deis-minio
25+
image: quay.io/{{.Values.org}}/minio:{{.Values.docker_tag}}
26+
imagePullPolicy: {{.Values.pull_policy}}
27+
env:
28+
- name: HEALTH_SERVER_PORT
29+
value: "8082"
30+
ports:
31+
- containerPort: 9000
32+
- containerPort: 8082
33+
livenessProbe:
34+
httpGet:
35+
path: /healthz
36+
port: 8082
37+
initialDelaySeconds: 30
38+
timeoutSeconds: 1
39+
readinessProbe:
40+
httpGet:
41+
path: /healthz
42+
port: 8082
43+
initialDelaySeconds: 30
44+
timeoutSeconds: 1
45+
command:
46+
- boot
47+
args:
48+
- "server /home/minio/"
49+
volumeMounts:
50+
- name: minio-user
51+
mountPath: /var/run/secrets/deis/minio/user
52+
readOnly: true
53+
volumes:
54+
- name: minio-user
55+
secret:
56+
secretName: minio-user
57+
{{- end }}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{{- if eq .Values.global.storage "minio" }}
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
name: deis-minio
6+
labels:
7+
heritage: deis
8+
{{- end }}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{- if eq .Values.global.storage "minio" }}
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: deis-minio
6+
labels:
7+
heritage: deis
8+
spec:
9+
ports:
10+
- name: s3
11+
port: 9000
12+
selector:
13+
app: deis-minio
14+
{{- end }}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: minio-user
5+
labels:
6+
heritage: deis
7+
type: Opaque
8+
data:
9+
accesskey: OFRaUlkySlJXTVBUNlVNWFI2STU=
10+
secretkey: Z2JzdHJPdm90TU1jZzJzTWZHVWhBNWE2RXQvRUk1QUx0SUhzb2JZaw==

charts/minio/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
org: "deisci"
2+
pull_policy: "Always"
3+
docker_tag: canary
4+
global:
5+
storage: minio

0 commit comments

Comments
 (0)