minio-dev.yml 1.33 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
---
# Deploys a new MinIO Pod into the metadata.namespace Kubernetes namespace
#
# The `spec.containers[0].args` contains the command run on the pod
# The `/data` directory corresponds to the `spec.containers[0].volumeMounts[0].mountPath`
# That mount path corresponds to a Kubernetes HostPath which binds `/data` to a local drive or volume on the worker node where the pod runs
# 
apiVersion: v1
kind: Pod
metadata:
Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
11 12
  name: {{ include "minio.name" . }}
  namespace: {{ .Values.namespace }}
13
  labels:
Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
14
    {{- include "minio.labels" . | nindent 4 }}
15 16
spec:
  containers:
Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
17 18 19 20 21 22 23 24 25 26
    - name: {{ .Chart.Name }}
      image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
      pullPolicy: {{ .Values.image.pullPolicy }}
      resources:
        limits:
          memory: {{ .Values.limits.memory }}
          cpu: {{ .Values.limits.cpu }}
      envFrom:
        - configMapRef:
            name: "{{ include "minio.name" . }}-cm"
Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
27

Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
28 29 30 31
      {{- with .Values.command }}
      command:
        {{- toYaml . | nindent 8 -}}
      {{- end -}}
Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
32

Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
33 34 35 36 37 38 39 40 41
      {{- with .Values.args }}
      args:
        {{- toYaml . | nindent 8 -}}
      {{- end -}}
      {{- with .Values.volumeMounts }}
      volumeMounts:
        {{- toYaml . | nindent 8 -}}
      {{- end -}}
    {{- with .Values.volumes }}
42
  volumes:
Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
43
    {{- toYaml . | nindent 6 -}}
Vũ Hoàng Nam's avatar
Vũ Hoàng Nam committed
44
  {{- end -}}