123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: {{ .Release.Name }}-minio
- labels:
- tier: aihub-dag
- component: minio
- release: {{ .Release.Name }}
- spec:
- selector:
- matchLabels:
- tier: aihub-dag
- component: minio
- release: {{ .Release.Name }}
- template:
- metadata:
- {{- with .Values.minio.podAnnotations }}
- annotations:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- labels:
- tier: aihub-dag
- component: minio
- release: {{ .Release.Name }}
- spec:
- {{- with .Values.minio.imagePullSecrets }}
- imagePullSecrets:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- securityContext:
- {{- toYaml .Values.minio.podSecurityContext | nindent 8 }}
- containers:
- - name: {{ .Release.Name }}-minio
- securityContext:
- {{- toYaml .Values.securityContext | nindent 12 }}
- image: "{{ .Values.minio.image.repository }}:{{ .Values.minio.image.tag | default .Chart.AppVersion }}"
- imagePullPolicy: {{ .Values.minio.image.pullPolicy }}
- ports:
- - name: api-port
- containerPort: 9000
- protocol: TCP
- - name: web-port
- containerPort: 9001
- protocol: TCP
- volumeMounts:
- - name: minio-data
- mountPath: /data
- resources:
- {{- toYaml .Values.minio.resources | nindent 12 }}
- volumes:
- - name: minio-data
- persistentVolumeClaim:
- claimName: minio-data
- # livenessProbe:
- # httpGet:
- # path: /
- # port: http
- # readinessProbe:
- # httpGet:
- # path: /
- # port: http
- {{- with .Values.minio.nodeSelector }}
- nodeSelector:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- with .Values.minio.affinity }}
- affinity:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- with .Values.minio.tolerations }}
- tolerations:
- {{- toYaml . | nindent 8 }}
- {{- end }}
|