Joey Armstrong | 0747509 | 2023-01-26 10:56:13 -0500 | [diff] [blame] | 1 | # Copyright 2020-2023 Open Networking Foundation (ONF) and the ONF Contributors |
Matteo Scandolo | 2996b05 | 2020-12-01 18:42:50 -0800 | [diff] [blame] | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | --- |
| 15 | apiVersion: "apps/v1" |
| 16 | kind: "Deployment" |
| 17 | metadata: |
| 18 | name: "bbsim-sadis-server" |
Joey Armstrong | cb98c46 | 2022-12-17 22:46:45 -0500 | [diff] [blame] | 19 | namespace: {{.Release.Namespace | quote}} |
Matteo Scandolo | 2996b05 | 2020-12-01 18:42:50 -0800 | [diff] [blame] | 20 | spec: |
Joey Armstrong | cb98c46 | 2022-12-17 22:46:45 -0500 | [diff] [blame] | 21 | replicas: {{.Values.replicas | int}} |
Matteo Scandolo | 2996b05 | 2020-12-01 18:42:50 -0800 | [diff] [blame] | 22 | selector: |
| 23 | matchLabels: |
| 24 | app: "bbsim-sadis-server" |
Joey Armstrong | cb98c46 | 2022-12-17 22:46:45 -0500 | [diff] [blame] | 25 | release: {{.Release.Name | quote}} |
Matteo Scandolo | 2996b05 | 2020-12-01 18:42:50 -0800 | [diff] [blame] | 26 | template: |
| 27 | metadata: |
Joey Armstrong | cb98c46 | 2022-12-17 22:46:45 -0500 | [diff] [blame] | 28 | namespace: {{.Release.Namespace | quote}} |
Matteo Scandolo | 2996b05 | 2020-12-01 18:42:50 -0800 | [diff] [blame] | 29 | labels: |
| 30 | app: "bbsim-sadis-server" |
Joey Armstrong | cb98c46 | 2022-12-17 22:46:45 -0500 | [diff] [blame] | 31 | release: {{.Release.Name | quote}} |
Matteo Scandolo | 2996b05 | 2020-12-01 18:42:50 -0800 | [diff] [blame] | 32 | app.kubernetes.io/name: "bbsim-sadis-server" |
Joey Armstrong | cb98c46 | 2022-12-17 22:46:45 -0500 | [diff] [blame] | 33 | app.kubernetes.io/version: {{.Chart.AppVersion | quote}} |
Matteo Scandolo | 2996b05 | 2020-12-01 18:42:50 -0800 | [diff] [blame] | 34 | app.kubernetes.io/component: "sadis-server" |
| 35 | app.kubernetes.io/part-of: "voltha" |
Joey Armstrong | cb98c46 | 2022-12-17 22:46:45 -0500 | [diff] [blame] | 36 | app.kubernetes.io/managed-by: {{.Release.Service | quote}} |
Matteo Scandolo | 2996b05 | 2020-12-01 18:42:50 -0800 | [diff] [blame] | 37 | helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
| 38 | spec: |
Joey Armstrong | cb98c46 | 2022-12-17 22:46:45 -0500 | [diff] [blame] | 39 | serviceAccountName: {{.Values.serviceAccountName | quote}} |
Matteo Scandolo | 2996b05 | 2020-12-01 18:42:50 -0800 | [diff] [blame] | 40 | containers: |
| 41 | - name: "sadis" |
| 42 | image: "{{ tpl .Values.images.bbsim_sadis_server.registry . }}{{ tpl .Values.images.bbsim_sadis_server.repository . }}:{{ tpl ( tpl .Values.images.bbsim_sadis_server.tag . ) . }}" |
Joey Armstrong | cb98c46 | 2022-12-17 22:46:45 -0500 | [diff] [blame] | 43 | imagePullPolicy: {{tpl .Values.images.bbsim_sadis_server.pullPolicy . | quote}} |
| 44 | command: ["/app/bbsim-sadis-server"] |
Matteo Scandolo | 2996b05 | 2020-12-01 18:42:50 -0800 | [diff] [blame] | 45 | args: |
Matteo Scandolo | b4c5f4e | 2020-11-11 12:05:23 -0800 | [diff] [blame] | 46 | - "-log_level={{.Values.global.log_level}}" |
| 47 | - "-log_format={{.Values.global.log_format}}" |
Matteo Scandolo | 2996b05 | 2020-12-01 18:42:50 -0800 | [diff] [blame] | 48 | - "-bbsim_sadis_port={{.Values.bbsim_sadis_port}}" |