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