minio-deployment.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: {{ .Release.Name }}-minio
  5. labels:
  6. tier: aihub-dag
  7. component: minio
  8. release: {{ .Release.Name }}
  9. spec:
  10. selector:
  11. matchLabels:
  12. tier: aihub-dag
  13. component: minio
  14. release: {{ .Release.Name }}
  15. template:
  16. metadata:
  17. {{- with .Values.minio.podAnnotations }}
  18. annotations:
  19. {{- toYaml . | nindent 8 }}
  20. {{- end }}
  21. labels:
  22. tier: aihub-dag
  23. component: minio
  24. release: {{ .Release.Name }}
  25. spec:
  26. {{- with .Values.minio.imagePullSecrets }}
  27. imagePullSecrets:
  28. {{- toYaml . | nindent 8 }}
  29. {{- end }}
  30. securityContext:
  31. {{- toYaml .Values.minio.podSecurityContext | nindent 8 }}
  32. containers:
  33. - name: {{ .Release.Name }}-minio
  34. securityContext:
  35. {{- toYaml .Values.securityContext | nindent 12 }}
  36. image: "{{ .Values.minio.image.repository }}:{{ .Values.minio.image.tag | default .Chart.AppVersion }}"
  37. imagePullPolicy: {{ .Values.minio.image.pullPolicy }}
  38. ports:
  39. - name: api-port
  40. containerPort: 9000
  41. protocol: TCP
  42. - name: web-port
  43. containerPort: 9001
  44. protocol: TCP
  45. volumeMounts:
  46. - name: minio-data
  47. mountPath: /data
  48. resources:
  49. {{- toYaml .Values.minio.resources | nindent 12 }}
  50. volumes:
  51. - name: minio-data
  52. persistentVolumeClaim:
  53. claimName: minio-data
  54. # livenessProbe:
  55. # httpGet:
  56. # path: /
  57. # port: http
  58. # readinessProbe:
  59. # httpGet:
  60. # path: /
  61. # port: http
  62. {{- with .Values.minio.nodeSelector }}
  63. nodeSelector:
  64. {{- toYaml . | nindent 8 }}
  65. {{- end }}
  66. {{- with .Values.minio.affinity }}
  67. affinity:
  68. {{- toYaml . | nindent 8 }}
  69. {{- end }}
  70. {{- with .Values.minio.tolerations }}
  71. tolerations:
  72. {{- toYaml . | nindent 8 }}
  73. {{- end }}