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 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 8 | namespace: "{{ .Values.nsPrefix }}" |
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 |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 65 | subPath: FE_2_setup_configuration.rb |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 66 | - mountPath: /tmp/logback.xml |
| 67 | name: sdc-logback |
| 68 | lifecycle: |
| 69 | postStart: |
| 70 | exec: |
| 71 | 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] | 72 | ports: |
| 73 | - containerPort: 9443 |
| 74 | - containerPort: 8181 |
| 75 | readinessProbe: |
| 76 | tcpSocket: |
| 77 | port: 8181 |
| 78 | initialDelaySeconds: 5 |
| 79 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 80 | - image: {{ .Values.image.filebeat }} |
| 81 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 82 | name: filebeat-onap |
| 83 | volumeMounts: |
| 84 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 85 | name: filebeat-conf |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 86 | subPath: filebeat.yml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 87 | - mountPath: /var/log/onap |
| 88 | name: sdc-logs-2 |
| 89 | - mountPath: /usr/share/filebeat/data |
| 90 | name: sdc-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 91 | volumes: |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 92 | - name: filebeat-conf |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 93 | configMap: |
| 94 | name : sdc-filebeat-configmap |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 95 | - name: sdc-logs-2 |
| 96 | emptyDir: {} |
| 97 | - name: sdc-data-filebeat |
| 98 | emptyDir: {} |
| 99 | - name: sdc-logback |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 100 | configMap: |
| 101 | name : sdc-log-fe-configmap |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 102 | - name: sdc-sdc-es-es |
| 103 | hostPath: |
kerenj | 390aec9 | 2018-02-25 13:57:36 +0000 | [diff] [blame] | 104 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/sdc-es/ES |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 105 | - name: sdc-environments |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 106 | configMap: |
| 107 | name: sdc-environments-configmap |
| 108 | defaultMode: 0755 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 109 | - name: sdc-localtime |
| 110 | hostPath: |
| 111 | path: /etc/localtime |
| 112 | - name: sdc-logs |
| 113 | hostPath: |
kerenj | 390aec9 | 2018-02-25 13:57:36 +0000 | [diff] [blame] | 114 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/logs |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 115 | - name: sdc-fe-config |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 116 | configMap: |
| 117 | name: sdc-fe-configmap |
| 118 | defaultMode: 0755 |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 119 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 120 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | bfd703b | 2017-11-06 22:37:05 +0200 | [diff] [blame] | 121 | #{{ end }} |