Matteo Scandolo | 2996b05 | 2020-12-01 18:42:50 -0800 | [diff] [blame] | 1 | # 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 | --- |
| 15 | apiVersion: "apps/v1" |
| 16 | kind: "Deployment" |
| 17 | metadata: |
| 18 | name: "bbsim-sadis-server" |
| 19 | namespace: {{ .Release.Namespace | quote }} |
| 20 | spec: |
| 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 Scandolo | 23611c3 | 2021-10-06 10:28:29 -0700 | [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 . ) . }}" |
| 43 | imagePullPolicy: {{ tpl .Values.images.bbsim_sadis_server.pullPolicy . | quote }} |
| 44 | command: [ "/app/bbsim-sadis-server" ] |
| 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}}" |