blob: 182b1e0302fb50821db1e48864d9966e3aee8923 [file] [log] [blame]
Jonathan Hart711f9a02018-08-17 14:34:06 -07001# Copyright 2017-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
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080015apiVersion: apps/v1
Jonathan Hart711f9a02018-08-17 14:34:06 -070016
17kind: Deployment
18metadata:
19 name: sadis-server
20 labels:
21 app: sadis-server
22spec:
23 replicas: 1
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080024 selector:
25 matchLabels:
26 name: sadis-server
27 release: {{ .Release.Name }}
Jonathan Hart711f9a02018-08-17 14:34:06 -070028 template:
29 metadata:
30 labels:
31 app: sadis-server
32 release: {{ .Release.Name }}
33 spec:
34 containers:
35 - name: sadis-server
Zack Williamsd9d6b352018-10-05 07:53:30 -070036 image: {{ .Values.global.registry }}{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}
37 imagePullPolicy: {{ .Values.image.pullPolicy }}
Jonathan Hart711f9a02018-08-17 14:34:06 -070038 ports:
39 - containerPort: 8000
40 port: 8000
41 protocol: TCP
42 env:
43 - name: SADISSERVER_PORT
44 value: "8000"
45 - name: SADISSERVER_USERNAME
46 value: "{{ .Values.xosAdminUser }}"
47 - name: SADISSERVER_PASSWORD
48 value: "{{ .Values.xosAdminPassword }}"
49 - name: SADISSERVER_XOS
50 value: xos-chameleon:9101
Matteo Scandolo504da4d2018-11-19 14:56:06 -080051 - name: SADISSERVER_KAFKABROKER
52 value: "{{ .Values.kafkaBroker }}"