vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 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 | |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 15 | #{{ if not .Values.disableUuiUui }} |
| 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | labels: |
| 20 | app: esr-esrserver |
| 21 | name: esr-esrserver |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 22 | namespace: "{{ .Values.nsPrefix }}" |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 23 | spec: |
| 24 | selector: |
| 25 | matchLabels: |
| 26 | app: esr-esrserver |
| 27 | template: |
| 28 | metadata: |
| 29 | labels: |
| 30 | app: esr-esrserver |
| 31 | name: esr-esrserver |
| 32 | spec: |
| 33 | containers: |
LiZi | d87e8b8 | 2018-03-14 22:07:08 -0400 | [diff] [blame] | 34 | - name: esr-esrserver |
| 35 | image: {{ .Values.esrserver.image }} |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 36 | imagePullPolicy: {{ .Values.pullPolicy }} |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 37 | env: |
| 38 | - name: MSB_ADDR |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 39 | value: {{ tpl .Values.msbaddr . }} |
LiZi | d87e8b8 | 2018-03-14 22:07:08 -0400 | [diff] [blame] | 40 | volumeMounts: |
| 41 | - name: localtime |
| 42 | mountPath: /etc/localtime |
| 43 | readOnly: true |
| 44 | - mountPath: /home/esr/works/logs |
| 45 | name: esr-server-logs |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 46 | ports: |
| 47 | - containerPort: {{ .Values.esrserver.port }} |
| 48 | readinessProbe: |
| 49 | tcpSocket: |
| 50 | port: {{ .Values.esrserver.port }} |
| 51 | initialDelaySeconds: 5 |
| 52 | periodSeconds: 10 |
LiZi | d87e8b8 | 2018-03-14 22:07:08 -0400 | [diff] [blame] | 53 | - name: filebeat-onap-esr-server |
| 54 | image: {{ .Values.filebeat.image }} |
| 55 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 56 | volumeMounts: |
| 57 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 58 | subPath: filebeat.yml |
| 59 | name: filebeat-conf |
| 60 | - mountPath: /home/esr/works/logs |
| 61 | name: esr-server-logs |
| 62 | - mountPath: /usr/share/filebeat/data |
| 63 | name: esr-server-filebeat |
| 64 | volumes: |
| 65 | - name: localtime |
| 66 | hostPath: |
| 67 | path: /etc/localtime |
| 68 | - name: filebeat-conf |
| 69 | configMap: |
| 70 | name: esr-filebeat-configmap |
| 71 | - name: esr-server-logs |
| 72 | emptyDir: {} |
| 73 | - name: esr-server-filebeat |
| 74 | emptyDir: {} |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 75 | #{{ end }} |