Baphomet is the dedicated bot for nulloctet matrix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.2 KiB

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: {{ include "baphomet-js.fullname" . }}
  5. labels:
  6. {{ include "baphomet-js.labels" . | indent 4 }}
  7. spec:
  8. replicas: {{ .Values.replicaCount }}
  9. selector:
  10. matchLabels:
  11. app.kubernetes.io/name: {{ include "baphomet-js.name" . }}
  12. app.kubernetes.io/instance: {{ .Release.Name }}
  13. template:
  14. metadata:
  15. labels:
  16. app.kubernetes.io/name: {{ include "baphomet-js.name" . }}
  17. app.kubernetes.io/instance: {{ .Release.Name }}
  18. spec:
  19. {{- with .Values.imagePullSecrets }}
  20. imagePullSecrets:
  21. {{- toYaml . | nindent 8 }}
  22. {{- end }}
  23. serviceAccountName: {{ template "baphomet-js.serviceAccountName" . }}
  24. securityContext:
  25. {{- toYaml .Values.podSecurityContext | nindent 8 }}
  26. containers:
  27. - name: {{ .Chart.Name }}
  28. securityContext:
  29. {{- toYaml .Values.securityContext | nindent 12 }}
  30. image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
  31. imagePullPolicy: {{ .Values.image.pullPolicy }}
  32. env:
  33. - name: LOG_LEVEL
  34. value: {{ .Values.app.env.log_level }}
  35. - name: NODE_ENV
  36. value: {{ .Values.app.env.node_env }}
  37. resources:
  38. {{- toYaml .Values.resources | nindent 12 }}
  39. volumeMounts:
  40. - mountPath: /opt/baphomet/data
  41. name: data
  42. subPath: data
  43. - mountPath: /opt/baphomet/log
  44. name: data
  45. subPath: log
  46. volumes:
  47. - name: config
  48. configMap:
  49. name: {{ include "baphomet-js.fullname" . }}
  50. - name: data
  51. {{- if .Values.persistence.enabled }}
  52. persistentVolumeClaim:
  53. claimName: {{ .Values.persistence.existingClaim | default (include "baphomet-js.fullname" .) }}
  54. {{- else }}
  55. emptyDir: {}
  56. {{- end -}}
  57. {{- with .Values.nodeSelector }}
  58. nodeSelector:
  59. {{- toYaml . | nindent 8 }}
  60. {{- end }}
  61. {{- with .Values.affinity }}
  62. affinity:
  63. {{- toYaml . | nindent 8 }}
  64. {{- end }}
  65. {{- with .Values.tolerations }}
  66. tolerations:
  67. {{- toYaml . | nindent 8 }}
  68. {{- end }}