Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | labels: |
| 5 | app: sdc-be |
| 6 | name: sdc-be |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 7 | namespace: "{{ .Values.nsPrefix }}-sdc" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 8 | spec: |
| 9 | selector: |
| 10 | matchLabels: |
| 11 | app: sdc-be |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: sdc-be |
| 16 | name: sdc-be |
| 17 | annotations: |
| 18 | pod.beta.kubernetes.io/init-containers: '[ |
| 19 | { |
| 20 | "args": [ |
| 21 | "--container-name", |
| 22 | "sdc-es", |
| 23 | "--container-name", |
| 24 | "sdc-cs", |
| 25 | "--container-name", |
| 26 | "sdc-kb" |
| 27 | ], |
| 28 | "command": [ |
| 29 | "/root/ready.py" |
| 30 | ], |
| 31 | "env": [ |
| 32 | { |
| 33 | "name": "NAMESPACE", |
| 34 | "valueFrom": { |
| 35 | "fieldRef": { |
| 36 | "apiVersion": "v1", |
| 37 | "fieldPath": "metadata.namespace" |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 | ], |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 42 | "image": "{{ .Values.image.readiness }}", |
| 43 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 44 | "name": "sdc-be-readiness" |
| 45 | }, |
| 46 | { |
| 47 | "args": [ |
| 48 | "--container-name", |
| 49 | "dmaap" |
| 50 | ], |
| 51 | "command": [ |
| 52 | "/root/ready.py" |
| 53 | ], |
| 54 | "env": [ |
| 55 | { |
| 56 | "name": "NAMESPACE", |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 57 | "value": "{{ .Values.nsPrefix }}-message-router" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 58 | } |
| 59 | ], |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 60 | "image": "{{ .Values.image.readiness }}", |
| 61 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 62 | "name": "sdc-dmaap-readiness" |
| 63 | } |
| 64 | ]' |
| 65 | spec: |
| 66 | containers: |
| 67 | - env: |
| 68 | - name: ENVNAME |
| 69 | value: AUTO |
| 70 | - name: HOST_IP |
| 71 | valueFrom: |
| 72 | fieldRef: |
| 73 | fieldPath: status.podIP |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 74 | image: {{ .Values.image.sdcBackend }} |
| 75 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 76 | name: sdc-be |
| 77 | volumeMounts: |
| 78 | - mountPath: /usr/share/elasticsearch/data/ |
| 79 | name: sdc-sdc-es-es |
| 80 | - mountPath: /root/chef-solo/environments/ |
| 81 | name: sdc-environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 82 | - mountPath: /etc/localtime |
| 83 | name: sdc-localtime |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 84 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 85 | - mountPath: /var/lib/jetty/logs |
| 86 | name: sdc-logs |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 87 | - mountPath: /var/log/onap |
| 88 | name: sdc-logs-2 |
Mandeep Khinda | 11982f7 | 2017-10-13 17:54:20 +0000 | [diff] [blame] | 89 | - mountPath: /tmp/logback.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 90 | name: sdc-logback |
Mandeep Khinda | 11982f7 | 2017-10-13 17:54:20 +0000 | [diff] [blame] | 91 | lifecycle: |
| 92 | postStart: |
| 93 | exec: |
| 94 | 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] | 95 | ports: |
| 96 | - containerPort: 8443 |
| 97 | - containerPort: 8080 |
| 98 | readinessProbe: |
| 99 | tcpSocket: |
| 100 | port: 8443 |
| 101 | initialDelaySeconds: 5 |
| 102 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 103 | - image: {{ .Values.image.filebeat }} |
| 104 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 105 | name: filebeat-onap |
| 106 | volumeMounts: |
| 107 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 108 | name: filebeat-conf |
| 109 | - mountPath: /var/log/onap |
| 110 | name: sdc-logs-2 |
| 111 | - mountPath: /usr/share/filebeat/data |
| 112 | name: sdc-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 113 | volumes: |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 114 | - name: filebeat-conf |
| 115 | hostPath: |
| 116 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml |
| 117 | - name: sdc-logs-2 |
| 118 | emptyDir: {} |
| 119 | - name: sdc-data-filebeat |
| 120 | emptyDir: {} |
| 121 | - name: sdc-logback |
| 122 | hostPath: |
| 123 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdc/be/logback.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 124 | - name: sdc-sdc-es-es |
| 125 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 126 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 127 | - name: sdc-environments |
| 128 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 129 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 130 | - name: sdc-localtime |
| 131 | hostPath: |
| 132 | path: /etc/localtime |
| 133 | - name: sdc-logs |
| 134 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 135 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 136 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 137 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |