blob: 621e27c5606033403c444f9a96825f751929e34d [file] [log] [blame]
# Minio
apiVersion: v1
kind: Service
metadata:
name: minio
namespace: nonrtric
labels:
run: minio
prodtest: minio
spec:
clusterIP: None
selector:
run: minio
---
apiVersion: v1
kind: Service
metadata:
name: minio-ext
namespace: nonrtric
labels:
prodtest: minio
spec:
type: NodePort
selector:
statefulset.kubernetes.io/pod-name: minio-0
ports:
- protocol: TCP
port: 9001
targetPort: 9001
nodePort: 31768
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: minio
namespace: nonrtric
labels:
run: minio
prodtest: minio
spec:
serviceName: minio
replicas: 1
selector:
matchLabels:
run: minio
template:
metadata:
labels:
run: minio
prodtest: minio
spec:
initContainers:
- name: init
image: alpine:latest
imagePullPolicy: IfNotPresent
command: ["ash","-c"]
args: ["IDX=${HOSTNAME##*-} && mkdir -p /data/ && rm -rf /data//*"]
volumeMounts:
- mountPath: /data
name: data-vol
containers:
- name: minio
image: minio/minio:latest
imagePullPolicy: IfNotPresent
args:
- server
- "--console-address"
- ":9001"
- /data/0/
#
#
#
#
#
#
#
#
#
#
env:
- name: MINIO_ROOT_USER
value: admin
- name: MINIO_ROOT_PASSWORD
value: adminadmin
volumeMounts:
- mountPath: /data
name: data-vol
volumes:
#MINIO_EMPTY_DIR_START
- name: data-vol
emptyDir: {}
#MINIO_EMPTY_DIR_STOP