42 lines
1 KiB
YAML
42 lines
1 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
name: app
|
||
|
spec:
|
||
|
template:
|
||
|
spec:
|
||
|
restartPolicy: Always
|
||
|
containers:
|
||
|
- name: minio
|
||
|
image: quay.io/minio/minio:latest
|
||
|
command:
|
||
|
- /bin/bash
|
||
|
- -c
|
||
|
args:
|
||
|
- minio server /data --console-address ":80"
|
||
|
env:
|
||
|
- name: MINIO_ROOT_PASSWORD
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: minio-secrets
|
||
|
key: ROOT_PASSWORD
|
||
|
optional: false
|
||
|
- name: MINIO_ROOT_USER
|
||
|
value: minio
|
||
|
volumeMounts:
|
||
|
- mountPath: /data
|
||
|
name: minio-data
|
||
|
subPath: "data"
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
protocol: TCP
|
||
|
name: console
|
||
|
- containerPort: 9000
|
||
|
protocol: TCP
|
||
|
name: minio
|
||
|
volumes:
|
||
|
- name: minio-data
|
||
|
hostPath:
|
||
|
path: /data/minio
|
||
|
type: DirectoryOrCreate
|