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.

64 lines
2.1 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. - name: data
  41. mountPath: /opt/baphomet/data
  42. volumes:
  43. - name: config
  44. configMap:
  45. name: {{ include "baphomet-js.fullname" . }}
  46. - name: data
  47. {{- if .Values.persistence.enabled }}
  48. persistentVolumeClaim:
  49. claimName: {{ .Values.persistence.existingClaim | default (include "baphomet-js.fullname" .) }}
  50. {{- else }}
  51. emptyDir: {}
  52. {{- end -}}
  53. {{- with .Values.nodeSelector }}
  54. nodeSelector:
  55. {{- toYaml . | nindent 8 }}
  56. {{- end }}
  57. {{- with .Values.affinity }}
  58. affinity:
  59. {{- toYaml . | nindent 8 }}
  60. {{- end }}
  61. {{- with .Values.tolerations }}
  62. tolerations:
  63. {{- toYaml . | nindent 8 }}
  64. {{- end }}