yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableSdcSdcFe }} |
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-fe |
| 7 | name: sdc-fe |
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-fe |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: sdc-fe |
| 17 | name: sdc-fe |
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 | - --container-name |
| 30 | - sdc-be |
| 31 | env: |
| 32 | - name: NAMESPACE |
| 33 | valueFrom: |
| 34 | fieldRef: |
| 35 | apiVersion: v1 |
| 36 | fieldPath: metadata.namespace |
| 37 | image: {{ .Values.image.readiness }} |
| 38 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 39 | name: sdc-fe-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 40 | containers: |
| 41 | - name: sdc-fe |
| 42 | env: |
| 43 | - name: ENVNAME |
| 44 | value: AUTO |
| 45 | - name: HOST_IP |
| 46 | valueFrom: |
| 47 | fieldRef: |
| 48 | fieldPath: status.podIP |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 49 | image: {{ .Values.image.sdcFrontend }} |
| 50 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 51 | volumeMounts: |
| 52 | - mountPath: /usr/share/elasticsearch/data/ |
| 53 | name: sdc-sdc-es-es |
| 54 | - mountPath: /root/chef-solo/environments/ |
| 55 | name: sdc-environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 56 | - mountPath: /etc/localtime |
| 57 | name: sdc-localtime |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 58 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 59 | - mountPath: /var/lib/jetty/logs |
| 60 | name: sdc-logs |
BorislavG | bfd703b | 2017-11-06 22:37:05 +0200 | [diff] [blame] | 61 | - mountPath: /var/log/onap |
| 62 | name: sdc-logs-2 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 63 | - mountPath: /root/chef-solo/cookbooks/sdc-catalog-fe/recipes/FE_2_setup_configuration.rb |
| 64 | name: sdc-fe-config |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 65 | - mountPath: /tmp/logback.xml |
| 66 | name: sdc-logback |
| 67 | lifecycle: |
| 68 | postStart: |
| 69 | exec: |
| 70 | command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/var/lib/jetty/config/catalog-fe/; 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] | 71 | ports: |
| 72 | - containerPort: 9443 |
| 73 | - containerPort: 8181 |
| 74 | readinessProbe: |
| 75 | tcpSocket: |
| 76 | port: 8181 |
| 77 | initialDelaySeconds: 5 |
| 78 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 79 | - image: {{ .Values.image.filebeat }} |
| 80 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 81 | name: filebeat-onap |
| 82 | volumeMounts: |
| 83 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 84 | name: filebeat-conf |
| 85 | - mountPath: /var/log/onap |
| 86 | name: sdc-logs-2 |
| 87 | - mountPath: /usr/share/filebeat/data |
| 88 | name: sdc-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 89 | volumes: |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 90 | - name: filebeat-conf |
| 91 | hostPath: |
| 92 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml |
| 93 | - name: sdc-logs-2 |
| 94 | emptyDir: {} |
| 95 | - name: sdc-data-filebeat |
| 96 | emptyDir: {} |
| 97 | - name: sdc-logback |
| 98 | hostPath: |
| 99 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdc/fe/logback.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 100 | - name: sdc-sdc-es-es |
| 101 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 102 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 103 | - name: sdc-environments |
| 104 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 105 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 106 | - name: sdc-localtime |
| 107 | hostPath: |
| 108 | path: /etc/localtime |
| 109 | - name: sdc-logs |
| 110 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 111 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 112 | - name: sdc-fe-config |
| 113 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 114 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-fe/FE_2_setup_configuration.rb |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 115 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 116 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | bfd703b | 2017-11-06 22:37:05 +0200 | [diff] [blame] | 117 | #{{ end }} |