* Upgrade base image to ruby 2.7
[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       dnsConfig:
26         searches:
27           - "arvados-slurm-compute.{{ .Release.Namespace }}.svc.cluster.local"
28       containers:
29         - name: {{ .Chart.Name }}
30           image: "cure/arvados-slurm-runtime"
31           imagePullPolicy: {{ .Values.image.pullPolicy }}
32           command:
33             - "sh"
34             - "-c"
35             - "/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"
36           env:
37             - name : ARVADOS_API_HOST
38               value: "{{ .Values.externalIP }}:444"
39             - name : ARVADOS_API_HOST_INSECURE
40               value: "true"
41             - name : ARVADOS_API_TOKEN
42               value: "{{ .Values.superUserSecret }}"
43           volumeMounts:
44             - name: etc-configmap
45               mountPath: /etc/arvados/config.yml
46               subPath: config.yml
47             - name: slurm-configmap
48               mountPath: /etc/slurm-llnl/slurm.conf
49               subPath: slurm.conf
50             - name: slurm-configmap
51               mountPath: /etc/munge/munge.key
52               subPath: munge.key
53
54       volumes:
55         - name: etc-configmap
56           configMap:
57             name: etc-configmap
58         - name: slurm-configmap
59           configMap:
60             name: slurm-configmap
61             defaultMode: 0400