a7fd28ee by Adam Heath

A simple single-node minio instance.

1 parent ac6237ff
1 apiVersion: kustomize.config.k8s.io/v1beta1
2 kind: Kustomization
3
4 resources:
5 - ./minio-simple.yaml
6
1 ---
2 apiVersion: v1
3 kind: ConfigMap
4 metadata:
5 name: minio-simple-configenv
6 data:
7 configenv: null
8 ---
9 apiVersion: v1
10 kind: ConfigMap
11 metadata:
12 name: minio-simple
13 data:
14 ---
15 apiVersion: v1
16 kind: Secret
17 metadata:
18 name: minio-simple
19 stringData:
20 access_key: admin
21 secret_key: admin
22 ---
23 apiVersion: v1
24 kind: PersistentVolumeClaim
25 metadata:
26 name: minio-simple-data
27 spec:
28 accessModes:
29 - ReadWriteOnce
30 resources:
31 requests:
32 storage: 10Gi
33 ---
34 apiVersion: v1
35 kind: Service
36 metadata:
37 name: minio-simple
38 spec:
39 type: ClusterIP
40 selector:
41 app: minio-simple
42 ports:
43 - name: http-minio
44 protocol: TCP
45 port: 9000
46 targetPort: 9000
47 ---
48 apiVersion: apps/v1
49 kind: Deployment
50 metadata:
51 name: minio-simple
52 labels:
53 app: minio-simple
54 spec:
55 selector:
56 matchLabels:
57 app: minio-simple
58 template:
59 metadata:
60 labels:
61 app: minio-simple
62 spec:
63 restartPolicy: Always
64 securityContext:
65 runAsUser: 0
66 runAsGroup: 0
67
68 volumes:
69 - name: minio-simple-data
70 persistentVolumeClaim:
71 claimName: minio-simple-data
72
73 - name: configenv
74 configMap:
75 name: minio-simple-configenv
76 items:
77 - key: configenv
78 path: config.env
79 - name: access-secrets
80 secret:
81 secretName: minio-simple
82 items:
83 - key: access_key
84 path: access_key
85 - key: secret_key
86 path: secret_key
87
88 containers:
89 - name: minio
90 image: minio/minio
91 args: ["server", "/data"]
92 env:
93 - name: MINIO_ACCESS_KEY_FILE
94 value: /access-secrets/access_key
95 - name: MINIO_SECRET_KEY_FILE
96 value: /access-secrets/secret_key
97 - name: MINIO_ROOT_USER_FILE
98 value: /access-secrets/access_key
99 - name: MINIO_ROOT_PASSWORD_FILE
100 value: /access-secrets/secret_key
101 - name: MINIO_CONFIG_ENV_FILE
102 value: /configenv/config.env
103
104 envFrom:
105 - configMapRef:
106 name: minio-simple
107 volumeMounts:
108 - name: configenv
109 mountPath: /configenv
110 - name: access-secrets
111 mountPath: /access-secrets
112 - name: minio-simple-data
113 mountPath: /data
114
1 namespace: default
2 name: test
3 minio:
4 enabled: true
5 configenv: ''
6 config: {}
7 persistence:
8 storageClass: null
9 size: 500M
10 access_key: admin
11 secret_key: adminsecret
1 bases:
2 - ../common/environments.yaml
3
4 ---
5
6 repositories:
7
8 releases:
9 - name: minio-simple
10 chart: charts/minio-simple
11 namespace: {{ .Values.namespace }}
12 condition: minio.enabled
13 values:
14 - namePrefix: {{ .Values.name }}-
15
16 strategicMergePatches:
17 - apiVersion: v1
18 kind: ConfigMap
19 metadata:
20 namespace: {{ .Values.namespace }}
21 name: {{ .Values.name }}-minio-simple-configenv
22 data:
23 configenv: {{ .Values.configenv | quote }}
24 - apiVersion: v1
25 kind: ConfigMap
26 metadata:
27 namespace: {{ .Values.namespace }}
28 name: {{ .Values.name }}-minio-simple
29 data:
30 {{ .Values.config | toYaml | nindent 12 }}
31 - apiVersion: v1
32 kind: Secret
33 metadata:
34 namespace: {{ .Values.namespace }}
35 name: {{ .Values.name }}-minio-simple
36 stringData:
37 access_key: {{ .Values.access_key | quote }}
38 secret_key: {{ .Values.secret_key | quote }}
39 - apiVersion: v1
40 kind: PersistentVolumeClaim
41 metadata:
42 namespace: {{ .Values.namespace }}
43 name: {{ .Values.name }}-minio-simple-data
44 spec:
45 resources:
46 requests:
47 storage: {{ .Values.persistence.size | quote }}
48 - apiVersion: v1
49 kind: Service
50 metadata:
51 namespace: {{ .Values.namespace }}
52 name: {{ .Values.name }}-minio-simple
53 spec:
54 selector:
55 app: {{ .Values.name }}-minio-simple
56
57 - apiVersion: apps/v1
58 kind: Deployment
59 metadata:
60 namespace: {{ .Values.namespace }}
61 name: {{ .Values.name }}-minio-simple
62 labels:
63 app: {{ .Values.name }}-minio-simple
64 spec:
65 selector:
66 matchLabels:
67 app: {{ .Values.name }}-minio-simple
68 template:
69 metadata:
70 labels:
71 app: {{ .Values.name }}-minio-simple
72