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