Spaces:
Runtime error
Runtime error
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: {{ include "matrix-runtime.fullname" . }} | |
| labels: | |
| {{- include "matrix-runtime.labels" . | nindent 4 }} | |
| spec: | |
| replicas: {{ .Values.replicaCount }} | |
| selector: | |
| matchLabels: | |
| {{- include "matrix-runtime.selectorLabels" . | nindent 6 }} | |
| template: | |
| metadata: | |
| labels: | |
| {{- include "matrix-runtime.selectorLabels" . | nindent 8 }} | |
| spec: | |
| serviceAccountName: {{ include "matrix-runtime.serviceAccountName" . }} | |
| securityContext: | |
| {{- toYaml .Values.podSecurityContext | nindent 8 }} | |
| containers: | |
| - name: matrix-runtime | |
| image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | |
| imagePullPolicy: {{ .Values.image.pullPolicy }} | |
| args: ["--mode", "{{ .Values.runtime.mode }}"] | |
| securityContext: | |
| {{- toYaml .Values.securityContext | nindent 12 }} | |
| ports: | |
| - name: http | |
| containerPort: {{ .Values.service.port }} | |
| envFrom: | |
| - configMapRef: | |
| name: {{ include "matrix-runtime.fullname" . }} | |
| {{- if or .Values.runtime.joinToken .Values.runtime.apiToken .Values.runtime.hfToken }} | |
| - secretRef: | |
| name: {{ include "matrix-runtime.fullname" . }} | |
| {{- end }} | |
| livenessProbe: | |
| httpGet: | |
| path: /v1/health | |
| port: http | |
| initialDelaySeconds: 10 | |
| periodSeconds: 20 | |
| readinessProbe: | |
| httpGet: | |
| path: /v1/ready | |
| port: http | |
| initialDelaySeconds: 5 | |
| periodSeconds: 10 | |
| resources: | |
| {{- toYaml .Values.resources | nindent 12 }} | |
| volumeMounts: | |
| - name: data | |
| mountPath: {{ .Values.runtime.dataDir }} | |
| volumes: | |
| - name: data | |
| {{- if .Values.persistence.enabled }} | |
| persistentVolumeClaim: | |
| claimName: {{ include "matrix-runtime.fullname" . }}-data | |
| {{- else }} | |
| emptyDir: {} | |
| {{- end }} | |
| {{- with .Values.nodeSelector }} | |
| nodeSelector: | |
| {{- toYaml . | nindent 8 }} | |
| {{- end }} | |
| {{- with .Values.affinity }} | |
| affinity: | |
| {{- toYaml . | nindent 8 }} | |
| {{- end }} | |
| {{- with .Values.tolerations }} | |
| tolerations: | |
| {{- toYaml . | nindent 8 }} | |
| {{- end }} | |