blob: 0ec0bbe82f13cb594710f268dbc75dfbbff38555 [file] [log] [blame]
Joey Armstrong07475092023-01-26 10:56:13 -05001# Copyright 2020-2023 Open Networking Foundation (ONF) and the ONF Contributors
Matteo Scandolo2996b052020-12-01 18:42:50 -08002#
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---
15apiVersion: "apps/v1"
16kind: "Deployment"
17metadata:
18 name: "bbsim-sadis-server"
Joey Armstrongcb98c462022-12-17 22:46:45 -050019 namespace: {{.Release.Namespace | quote}}
Matteo Scandolo2996b052020-12-01 18:42:50 -080020spec:
Joey Armstrongcb98c462022-12-17 22:46:45 -050021 replicas: {{.Values.replicas | int}}
Matteo Scandolo2996b052020-12-01 18:42:50 -080022 selector:
23 matchLabels:
24 app: "bbsim-sadis-server"
Joey Armstrongcb98c462022-12-17 22:46:45 -050025 release: {{.Release.Name | quote}}
Matteo Scandolo2996b052020-12-01 18:42:50 -080026 template:
27 metadata:
Joey Armstrongcb98c462022-12-17 22:46:45 -050028 namespace: {{.Release.Namespace | quote}}
Matteo Scandolo2996b052020-12-01 18:42:50 -080029 labels:
30 app: "bbsim-sadis-server"
Joey Armstrongcb98c462022-12-17 22:46:45 -050031 release: {{.Release.Name | quote}}
Matteo Scandolo2996b052020-12-01 18:42:50 -080032 app.kubernetes.io/name: "bbsim-sadis-server"
Joey Armstrongcb98c462022-12-17 22:46:45 -050033 app.kubernetes.io/version: {{.Chart.AppVersion | quote}}
Matteo Scandolo2996b052020-12-01 18:42:50 -080034 app.kubernetes.io/component: "sadis-server"
35 app.kubernetes.io/part-of: "voltha"
Joey Armstrongcb98c462022-12-17 22:46:45 -050036 app.kubernetes.io/managed-by: {{.Release.Service | quote}}
Matteo Scandolo2996b052020-12-01 18:42:50 -080037 helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
38 spec:
Joey Armstrongcb98c462022-12-17 22:46:45 -050039 serviceAccountName: {{.Values.serviceAccountName | quote}}
Matteo Scandolo2996b052020-12-01 18:42:50 -080040 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 Armstrongcb98c462022-12-17 22:46:45 -050043 imagePullPolicy: {{tpl .Values.images.bbsim_sadis_server.pullPolicy . | quote}}
44 command: ["/app/bbsim-sadis-server"]
Matteo Scandolo2996b052020-12-01 18:42:50 -080045 args:
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -080046 - "-log_level={{.Values.global.log_level}}"
47 - "-log_format={{.Values.global.log_format}}"
Matteo Scandolo2996b052020-12-01 18:42:50 -080048 - "-bbsim_sadis_port={{.Values.bbsim_sadis_port}}"