blob: 58ac1cc5d318fb80746b31f7a54de319bd81fe47 [file] [log] [blame]
Woojoong Kim676bbac2021-01-15 12:00:33 -08001# Copyright 2021-present Open Networking Foundation
2#
3# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
4
5---
6apiVersion: apps/v1
7kind: StatefulSet
8metadata:
9 name: ros-core
10 labels:
11{{ tuple "ros-core" . | include "ros-core.metadata_labels" | indent 4 }}
12spec:
13 replicas: 1
14 serviceName: ros-core
15 selector:
16 matchLabels:
17{{ tuple "ros-core" . | include "ros-core.metadata_labels" | indent 6 }}
18 template:
19 metadata:
20 labels:
21{{ tuple "ros-core" . | include "ros-core.metadata_labels" | indent 8 }}
22 spec:
Woojoong Kimfccf0902021-01-15 12:48:41 -080023 {{- if .Values.nodeSelector.enabled }}
24 nodeSelector:
25 {{ .Values.nodeSelector.rosCore.label }}: {{ .Values.nodeSelector.rosCore.value }}
26 {{- end }}
27 hostNetwork: {{ .Values.networks.hostNetwork }}
Woojoong Kim676bbac2021-01-15 12:00:33 -080028 containers:
29 - name: ros-core
30 image: {{ .Values.images.tags.rosCore }}
31 imagePullPolicy: {{ .Values.images.pullPolicy }}
32 securityContext:
33 privileged: true
34 command:
35 - /root/run_roscore.sh
36 volumeMounts:
37 - name: ros-core
38 mountPath: /root/run_roscore.sh
39 subPath: run_roscore.sh
40 volumes:
41 - name: ros-core
42 configMap:
43 name: ros-core
44 defaultMode: 493