This commit is contained in:
2026-04-06 21:36:15 +07:00
commit 35874bf520
29 changed files with 1625 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "loki-stack.fullname" . }}-minio
labels:
{{- include "loki-stack.labels" . | nindent 4 }}
app.kubernetes.io/component: minio
spec:
replicas: 1
selector:
matchLabels:
{{- include "loki-stack.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: minio
template:
metadata:
labels:
{{- include "loki-stack.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: minio
spec:
containers:
- name: minio
image: {{ .Values.minio.image.repository }}:{{ .Values.minio.image.tag }}
command:
- sh
- -euc
- |
mkdir -p /data/{{ .Values.minio.bucketName }} && \
minio server /data --console-address ":9001"
env:
- name: MINIO_ROOT_USER
value: {{ .Values.minio.rootUser }}
- name: MINIO_ROOT_PASSWORD
value: {{ .Values.minio.rootPassword }}
ports:
- name: api
containerPort: 9000
- name: console
containerPort: 9001
readinessProbe:
exec:
command: ["mc", "ready", "local"]
initialDelaySeconds: 5
periodSeconds: 5
volumeMounts:
- name: data
mountPath: /data
resources:
{{- toYaml .Values.minio.resources | nindent 12 }}
volumes:
- name: data
persistentVolumeClaim:
claimName: {{ include "loki-stack.fullname" . }}-minio