Files
config/static-pods/master/minio.yaml
2025-11-02 18:31:13 +01:00

54 lines
1.1 KiB
YAML

{{ if .vars.enable_minio }}
apiVersion: v1
kind: Pod
metadata:
name: minio
labels:
app: minio
spec:
hostNetwork: true
volumes:
- name: data
hostPath:
path: /mnt/storage/k8s-pv-backup
type: BlockDevice
- name: config
emptyDir: {}
containers:
- name: minio
image: minio/minio:RELEASE.2025-01-20T14-49-07Z
imagePullPolicy: IfNotPresent
args:
- server
- /data
- --config-dir=/config
env:
- name: MINIO_ACCESS_KEY
value: {{ .vars.minio_access_key }}
- name: MINIO_SECRET_KEY
value: {{ .vars.minio_secret_key }}
livenessProbe:
httpGet:
path: /minio/login
port: 9000
httpHeaders:
- name: User-Agent
value: Mozilla
readinessProbe:
failureThreshold: 3
httpGet:
path: /minio/login
port: 9000
httpHeaders:
- name: User-Agent
value: Mozilla
initialDelaySeconds: 15
ports:
- containerPort: 9000
volumeMounts:
- name: data
mountPath: "/data"
- name: config
mountPath: "/config"
{{ end }}