yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableSdcSdcBe }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: sdc-be |
| 7 | name: sdc-be |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 8 | namespace: "{{ .Values.nsPrefix }}-sdc" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: sdc-be |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: sdc-be |
| 17 | name: sdc-be |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 18 | spec: |
vasundhra | 98960b6 | 2017-11-22 12:43:29 +0000 | [diff] [blame] | 19 | initContainers: |
| 20 | - command: |
| 21 | - /root/ready.py |
| 22 | args: |
| 23 | - --container-name |
| 24 | - sdc-es |
| 25 | - --container-name |
| 26 | - sdc-cs |
| 27 | - --container-name |
| 28 | - sdc-kb |
| 29 | env: |
| 30 | - name: NAMESPACE |
| 31 | valueFrom: |
| 32 | fieldRef: |
| 33 | apiVersion: v1 |
| 34 | fieldPath: metadata.namespace |
| 35 | image: {{ .Values.image.readiness }} |
| 36 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 37 | name: sdc-be-readiness |
| 38 | - command: |
| 39 | - /root/ready.py |
| 40 | args: |
| 41 | - --container-name |
| 42 | - dmaap |
| 43 | env: |
| 44 | - name: NAMESPACE |
| 45 | value: {{ .Values.nsPrefix }}-message-router |
| 46 | image: {{ .Values.image.readiness }} |
| 47 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 48 | name: sdc-dmaap-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | containers: |
| 50 | - env: |
| 51 | - name: ENVNAME |
| 52 | value: AUTO |
| 53 | - name: HOST_IP |
| 54 | valueFrom: |
| 55 | fieldRef: |
| 56 | fieldPath: status.podIP |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 57 | image: {{ .Values.image.sdcBackend }} |
| 58 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 59 | name: sdc-be |
| 60 | volumeMounts: |
| 61 | - mountPath: /usr/share/elasticsearch/data/ |
| 62 | name: sdc-sdc-es-es |
| 63 | - mountPath: /root/chef-solo/environments/ |
| 64 | name: sdc-environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 65 | - mountPath: /etc/localtime |
| 66 | name: sdc-localtime |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 67 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 68 | - mountPath: /var/lib/jetty/logs |
| 69 | name: sdc-logs |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 70 | - mountPath: /var/log/onap |
| 71 | name: sdc-logs-2 |
Mandeep Khinda | 11982f7 | 2017-10-13 17:54:20 +0000 | [diff] [blame] | 72 | - mountPath: /tmp/logback.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 73 | name: sdc-logback |
Mandeep Khinda | 11982f7 | 2017-10-13 17:54:20 +0000 | [diff] [blame] | 74 | lifecycle: |
| 75 | postStart: |
| 76 | exec: |
| 77 | command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/var/lib/jetty/config/catalog-be/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"] |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 78 | ports: |
| 79 | - containerPort: 8443 |
| 80 | - containerPort: 8080 |
| 81 | readinessProbe: |
| 82 | tcpSocket: |
| 83 | port: 8443 |
| 84 | initialDelaySeconds: 5 |
| 85 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 86 | - image: {{ .Values.image.filebeat }} |
| 87 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 88 | name: filebeat-onap |
| 89 | volumeMounts: |
| 90 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 91 | name: filebeat-conf |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 92 | subPath: filebeat.yml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 93 | - mountPath: /var/log/onap |
| 94 | name: sdc-logs-2 |
| 95 | - mountPath: /usr/share/filebeat/data |
| 96 | name: sdc-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 97 | volumes: |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 98 | - name: filebeat-conf |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 99 | configMap: |
| 100 | name: sdc-filebeat-configmap |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 101 | - name: sdc-logs-2 |
| 102 | emptyDir: {} |
| 103 | - name: sdc-data-filebeat |
| 104 | emptyDir: {} |
| 105 | - name: sdc-logback |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 106 | configMap: |
| 107 | name : sdc-log-be-configmap |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 108 | - name: sdc-sdc-es-es |
| 109 | hostPath: |
kerenj | 390aec9 | 2018-02-25 13:57:36 +0000 | [diff] [blame] | 110 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/sdc-es/ES |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 111 | - name: sdc-environments |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 112 | configMap: |
| 113 | name: sdc-environments-configmap |
| 114 | defaultMode: 0755 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 115 | - name: sdc-localtime |
| 116 | hostPath: |
| 117 | path: /etc/localtime |
| 118 | - name: sdc-logs |
| 119 | hostPath: |
kerenj | 390aec9 | 2018-02-25 13:57:36 +0000 | [diff] [blame] | 120 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 121 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 122 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
vasundhra | 98960b6 | 2017-11-22 12:43:29 +0000 | [diff] [blame] | 123 | #{{ end }} |