Jonathan Hart | 711f9a0 | 2018-08-17 14:34:06 -0700 | [diff] [blame] | 1 | # 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 | |
| 15 | apiVersion: extensions/v1beta1 |
| 16 | |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: sadis-server |
| 20 | labels: |
| 21 | app: sadis-server |
| 22 | spec: |
| 23 | replicas: 1 |
| 24 | template: |
| 25 | metadata: |
| 26 | labels: |
| 27 | app: sadis-server |
| 28 | release: {{ .Release.Name }} |
| 29 | spec: |
| 30 | containers: |
| 31 | - name: sadis-server |
Matteo Scandolo | d187d38 | 2018-08-29 16:55:34 -0700 | [diff] [blame] | 32 | image: {{ .Values.image }} |
Jonathan Hart | 711f9a0 | 2018-08-17 14:34:06 -0700 | [diff] [blame] | 33 | imagePullPolicy: {{ .Values.imagePullPolicy }} |
| 34 | ports: |
| 35 | - containerPort: 8000 |
| 36 | port: 8000 |
| 37 | protocol: TCP |
| 38 | env: |
| 39 | - name: SADISSERVER_PORT |
| 40 | value: "8000" |
| 41 | - name: SADISSERVER_USERNAME |
| 42 | value: "{{ .Values.xosAdminUser }}" |
| 43 | - name: SADISSERVER_PASSWORD |
| 44 | value: "{{ .Values.xosAdminPassword }}" |
| 45 | - name: SADISSERVER_XOS |
| 46 | value: xos-chameleon:9101 |