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 |
| 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: sdc-fe |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: sdc-fe |
| 15 | name: sdc-fe |
| 16 | annotations: |
| 17 | pod.beta.kubernetes.io/init-containers: '[ |
| 18 | { |
| 19 | "args": [ |
| 20 | "--container-name", |
| 21 | "sdc-es", |
| 22 | "--container-name", |
| 23 | "sdc-cs", |
| 24 | "--container-name", |
| 25 | "sdc-kb", |
| 26 | "--container-name", |
| 27 | "sdc-be" |
| 28 | ], |
| 29 | "command": [ |
| 30 | "/root/ready.py" |
| 31 | ], |
| 32 | "env": [ |
| 33 | { |
| 34 | "name": "NAMESPACE", |
| 35 | "valueFrom": { |
| 36 | "fieldRef": { |
| 37 | "apiVersion": "v1", |
| 38 | "fieldPath": "metadata.namespace" |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | ], |
| 43 | "image": "oomk8s/readiness-check:1.0.0", |
| 44 | "imagePullPolicy": "Always", |
| 45 | "name": "sdc-fe-readiness" |
| 46 | } |
| 47 | ]' |
| 48 | spec: |
| 49 | containers: |
| 50 | - name: sdc-fe |
| 51 | env: |
| 52 | - name: ENVNAME |
| 53 | value: AUTO |
| 54 | - name: HOST_IP |
| 55 | valueFrom: |
| 56 | fieldRef: |
| 57 | fieldPath: status.podIP |
| 58 | image: nexus3.onap.org:10001/openecomp/sdc-frontend:1.0-STAGING-latest |
| 59 | volumeMounts: |
| 60 | - mountPath: /usr/share/elasticsearch/data/ |
| 61 | name: sdc-sdc-es-es |
| 62 | - mountPath: /root/chef-solo/environments/ |
| 63 | name: sdc-environments |
| 64 | - mountPath: /var/lib/jetty/etc/keystore |
| 65 | name: sdc-jetty-keystore |
| 66 | - mountPath: /etc/localtime |
| 67 | name: sdc-localtime |
| 68 | - mountPath: /var/lib/jetty/logs |
| 69 | name: sdc-logs |
| 70 | - mountPath: /root/chef-solo/cookbooks/sdc-catalog-fe/recipes/FE_2_setup_configuration.rb |
| 71 | name: sdc-fe-config |
| 72 | ports: |
| 73 | - containerPort: 9443 |
| 74 | - containerPort: 8181 |
| 75 | readinessProbe: |
| 76 | tcpSocket: |
| 77 | port: 8181 |
| 78 | initialDelaySeconds: 5 |
| 79 | periodSeconds: 10 |
| 80 | volumes: |
| 81 | - name: sdc-sdc-es-es |
| 82 | hostPath: |
| 83 | path: /dockerdata-nfs/onapdemo/sdc/sdc-es/ES |
| 84 | - name: sdc-environments |
| 85 | hostPath: |
| 86 | path: /dockerdata-nfs/onapdemo/sdc/environments |
| 87 | - name: sdc-jetty-keystore |
| 88 | hostPath: |
| 89 | path: /dockerdata-nfs/onapdemo/sdc/jetty/keystore |
| 90 | - name: sdc-localtime |
| 91 | hostPath: |
| 92 | path: /etc/localtime |
| 93 | - name: sdc-logs |
| 94 | hostPath: |
| 95 | path: /dockerdata-nfs/onapdemo/sdc/logs |
| 96 | - name: sdc-fe-config |
| 97 | hostPath: |
| 98 | path: /dockerdata-nfs/onapdemo/sdc/sdc-fe/FE_2_setup_configuration.rb |