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-fe |
| 6 | name: sdc-fe |
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-fe |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: sdc-fe |
| 16 | name: sdc-fe |
| 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 | "--container-name", |
| 28 | "sdc-be" |
| 29 | ], |
| 30 | "command": [ |
| 31 | "/root/ready.py" |
| 32 | ], |
| 33 | "env": [ |
| 34 | { |
| 35 | "name": "NAMESPACE", |
| 36 | "valueFrom": { |
| 37 | "fieldRef": { |
| 38 | "apiVersion": "v1", |
| 39 | "fieldPath": "metadata.namespace" |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | ], |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 44 | "image": "{{ .Values.image.readiness }}", |
| 45 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 46 | "name": "sdc-fe-readiness" |
| 47 | } |
| 48 | ]' |
| 49 | spec: |
| 50 | containers: |
| 51 | - name: sdc-fe |
| 52 | env: |
| 53 | - name: ENVNAME |
| 54 | value: AUTO |
| 55 | - name: HOST_IP |
| 56 | valueFrom: |
| 57 | fieldRef: |
| 58 | fieldPath: status.podIP |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 59 | image: {{ .Values.image.sdcFrontend }} |
| 60 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 61 | volumeMounts: |
| 62 | - mountPath: /usr/share/elasticsearch/data/ |
| 63 | name: sdc-sdc-es-es |
| 64 | - mountPath: /root/chef-solo/environments/ |
| 65 | name: sdc-environments |
| 66 | - mountPath: /var/lib/jetty/etc/keystore |
| 67 | name: sdc-jetty-keystore |
| 68 | - mountPath: /etc/localtime |
| 69 | name: sdc-localtime |
| 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 |
| 74 | ports: |
| 75 | - containerPort: 9443 |
| 76 | - containerPort: 8181 |
| 77 | readinessProbe: |
| 78 | tcpSocket: |
| 79 | port: 8181 |
| 80 | initialDelaySeconds: 5 |
| 81 | periodSeconds: 10 |
| 82 | volumes: |
| 83 | - name: sdc-sdc-es-es |
| 84 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 85 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 86 | - name: sdc-environments |
| 87 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 88 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 89 | - name: sdc-jetty-keystore |
| 90 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 91 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/jetty/keystore |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 92 | - name: sdc-localtime |
| 93 | hostPath: |
| 94 | path: /etc/localtime |
| 95 | - name: sdc-logs |
| 96 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 97 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 98 | - name: sdc-fe-config |
| 99 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 100 | 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] | 101 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 102 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |