mirror of
https://github.com/thanos-io/kube-thanos.git
synced 2026-05-10 22:46:11 +02:00
37 lines
785 B
YAML
37 lines
785 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: minio
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: minio
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: minio
|
|
spec:
|
|
containers:
|
|
- name: minio
|
|
image: minio/minio
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- "mkdir -p /storage/thanos && /usr/bin/minio server /storage"
|
|
env:
|
|
- name: MINIO_ACCESS_KEY
|
|
value: "minio"
|
|
- name: MINIO_SECRET_KEY
|
|
value: "minio123"
|
|
ports:
|
|
- containerPort: 9000
|
|
volumeMounts:
|
|
- name: storage
|
|
mountPath: "/storage"
|
|
volumes:
|
|
- name: storage
|
|
persistentVolumeClaim:
|
|
claimName: minio
|