53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
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
|