Pass validation.
[arvados-k8s.git] / charts / arvados / templates / crunch-dispatch-slurm-deployment.yaml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 apiVersion: apps/v1
6 kind: Deployment
7 metadata:
8   name: "arvados-crunch-dispatch-slurm"
9   labels:
10     app: arvados-crunch-dispatch-slurm
11     chart: {{ template "arvados.chart" . }}
12     release: {{ .Release.Name }}
13     heritage: {{ .Release.Service }}
14 spec:
15   selector:
16     matchLabels:
17       app: arvados-crunch-dispatch-slurm
18       release: {{ .Release.Name }}
19   template:
20     metadata:
21       labels:
22         app: arvados-crunch-dispatch-slurm
23         release: {{ .Release.Name }}
24     spec:
25       containers:
26         - name: {{ .Chart.Name }}
27           image: "cure/arvados-slurm-runtime"
28           imagePullPolicy: {{ .Values.image.pullPolicy }}
29           command:
30             - "sh"
31             - "-c"
32             - "/usr/local/bin/bootstrap.sh crunch-dispatch-slurm={{ .Values.arvados.versions.distribution.crunchDispatchSlurm }} && mkdir /munge && cp -p /etc/munge/munge.key /munge && chown munge:munge /munge/munge.key && mkdir /var/slurm && chmod 700 /var/slurm && sudo -u munge munged --key-file=/munge/munge.key && crunch-dispatch-slurm"
33           env:
34             - name : ARVADOS_API_HOST
35               value: "{{ .Values.externalIP }}:444"
36             - name : ARVADOS_API_HOST_INSECURE
37               value: "true"
38             - name : ARVADOS_API_TOKEN
39               value: "{{ .Values.superUserSecret }}"
40           volumeMounts:
41             - name: slurm-configmap
42               mountPath: /etc/slurm-llnl/slurm.conf
43               subPath: slurm.conf
44             - name: slurm-configmap
45               mountPath: /etc/munge/munge.key
46               subPath: munge.key
47             - name: crunch-dispatch-slurm-configmap
48               mountPath: /etc/arvados/crunch-dispatch-slurm/crunch-dispatch-slurm.yml
49               subPath: crunch-dispatch-slurm.yml
50
51       volumes:
52         - name: slurm-configmap
53           configMap:
54             name: slurm-configmap
55             defaultMode: 0400
56         - name: crunch-dispatch-slurm-configmap
57           configMap:
58             name: crunch-dispatch-slurm-configmap
59