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-kb |
| 6 | name: sdc-kb |
| 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: sdc-kb |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: sdc-kb |
| 15 | name: sdc-kb |
| 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 | ], |
| 25 | "command": [ |
| 26 | "/root/ready.py" |
| 27 | ], |
| 28 | "env": [ |
| 29 | { |
| 30 | "name": "NAMESPACE", |
| 31 | "valueFrom": { |
| 32 | "fieldRef": { |
| 33 | "apiVersion": "v1", |
| 34 | "fieldPath": "metadata.namespace" |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | ], |
| 39 | "image": "oomk8s/readiness-check:1.0.0", |
| 40 | "imagePullPolicy": "Always", |
| 41 | "name": "sdc-kb-readiness" |
| 42 | } |
| 43 | ]' |
| 44 | spec: |
| 45 | containers: |
| 46 | - env: |
| 47 | - name: ENVNAME |
| 48 | value: AUTO |
| 49 | - name: ELASTICSEARCH_URL |
| 50 | value: http://sdc-es:9200 |
Munir Ahmad | 0b13329 | 2017-08-15 15:36:46 -0400 | [diff] [blame^] | 51 | image: nexus3.onap.org:10001/openecomp/sdc-kibana:1.1-STAGING-latest |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 52 | name: sdc-kb |
| 53 | volumeMounts: |
| 54 | - mountPath: /root/chef-solo/environments/ |
| 55 | name: sdc-environments |
| 56 | - mountPath: /etc/localtime |
| 57 | name: sdc-localtime |
| 58 | - mountPath: /var/lib/jetty/logs |
| 59 | name: sdc-logs |
| 60 | ports: |
| 61 | - containerPort: 5601 |
| 62 | readinessProbe: |
| 63 | tcpSocket: |
| 64 | port: 5601 |
| 65 | initialDelaySeconds: 5 |
| 66 | periodSeconds: 10 |
| 67 | volumes: |
| 68 | - name: sdc-environments |
| 69 | hostPath: |
Munir Ahmad | 0b13329 | 2017-08-15 15:36:46 -0400 | [diff] [blame^] | 70 | path: /dockerdata/onapdemo/sdc/environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 71 | - name: sdc-localtime |
| 72 | hostPath: |
| 73 | path: /etc/localtime |
| 74 | - name: sdc-logs |
| 75 | hostPath: |
Munir Ahmad | 0b13329 | 2017-08-15 15:36:46 -0400 | [diff] [blame^] | 76 | path: /dockerdata/onapdemo/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 77 | imagePullSecrets: |
| 78 | - name: onap-docker-registry-key |