blob: 1584bb3170cee7419a62d319f288fc1e952a56c0 [file] [log] [blame]
Matteo Scandolo2996b052020-12-01 18:42:50 -08001# Copyright 2020-present Open Networking Foundation
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---
15apiVersion: "apps/v1"
16kind: "Deployment"
17metadata:
18 name: "bbsim-sadis-server"
19 namespace: {{ .Release.Namespace | quote }}
20spec:
21 replicas: {{ .Values.replicas | int }}
22 selector:
23 matchLabels:
24 app: "bbsim-sadis-server"
25 release: {{ .Release.Name | quote }}
26 template:
27 metadata:
28 namespace: {{ .Release.Namespace | quote }}
29 labels:
30 app: "bbsim-sadis-server"
31 release: {{ .Release.Name | quote }}
32 app.kubernetes.io/name: "bbsim-sadis-server"
33 app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
34 app.kubernetes.io/component: "sadis-server"
35 app.kubernetes.io/part-of: "voltha"
36 app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
37 helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
38 spec:
Matteo Scandolo23611c32021-10-06 10:28:29 -070039 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 . ) . }}"
43 imagePullPolicy: {{ tpl .Values.images.bbsim_sadis_server.pullPolicy . | quote }}
44 command: [ "/app/bbsim-sadis-server" ]
45 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}}"