Woojoong Kim | 676bbac | 2021-01-15 12:00:33 -0800 | [diff] [blame] | 1 | # Copyright 2021-present Open Networking Foundation |
| 2 | # |
| 3 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
| 5 | --- |
| 6 | apiVersion: apps/v1 |
| 7 | kind: StatefulSet |
| 8 | metadata: |
| 9 | name: ros-core |
| 10 | labels: |
| 11 | {{ tuple "ros-core" . | include "ros-core.metadata_labels" | indent 4 }} |
| 12 | spec: |
| 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 Kim | fccf090 | 2021-01-15 12:48:41 -0800 | [diff] [blame] | 23 | {{- if .Values.nodeSelector.enabled }} |
| 24 | nodeSelector: |
| 25 | {{ .Values.nodeSelector.rosCore.label }}: {{ .Values.nodeSelector.rosCore.value }} |
| 26 | {{- end }} |
| 27 | hostNetwork: {{ .Values.networks.hostNetwork }} |
Woojoong Kim | 676bbac | 2021-01-15 12:00:33 -0800 | [diff] [blame] | 28 | 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 |