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-cs |
| 6 | name: sdc-cs |
| 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: sdc-cs |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: sdc-cs |
| 15 | name: sdc-cs |
| 16 | annotations: |
| 17 | pod.beta.kubernetes.io/init-containers: '[ |
| 18 | { |
| 19 | "args": [ |
| 20 | "--container-name", |
| 21 | "sdc-es" |
| 22 | ], |
| 23 | "command": [ |
| 24 | "/root/ready.py" |
| 25 | ], |
| 26 | "env": [ |
| 27 | { |
| 28 | "name": "NAMESPACE", |
| 29 | "valueFrom": { |
| 30 | "fieldRef": { |
| 31 | "apiVersion": "v1", |
| 32 | "fieldPath": "metadata.namespace" |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | ], |
| 37 | "image": "oomk8s/readiness-check:1.0.0", |
| 38 | "imagePullPolicy": "Always", |
| 39 | "name": "sdc-cs-readiness" |
| 40 | } |
| 41 | ]' |
| 42 | spec: |
| 43 | containers: |
| 44 | - env: |
| 45 | - name: ENVNAME |
| 46 | value: AUTO |
| 47 | - name: HOST_IP |
| 48 | valueFrom: |
| 49 | fieldRef: |
| 50 | fieldPath: status.podIP |
| 51 | - name: ES_HEAP_SIZE |
| 52 | value: "1024M" |
Munir Ahmad | e94258e | 2017-08-17 12:04:14 -0400 | [diff] [blame^] | 53 | image: nexus3.onap.org:10001/openecomp/sdc-cassandra:1.0-STAGING-latest |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 54 | name: sdc-cs |
| 55 | volumeMounts: |
| 56 | - mountPath: /var/lib/cassandra/ |
| 57 | name: sdc-sdc-cs-cs |
| 58 | - mountPath: /root/chef-solo/environments/ |
| 59 | name: sdc-environments |
| 60 | - mountPath: /etc/localtime |
| 61 | name: sdc-localtime |
| 62 | - mountPath: /var/lib/jetty/logs |
| 63 | name: sdc-logs |
| 64 | ports: |
| 65 | - containerPort: 9042 |
| 66 | - containerPort: 9160 |
| 67 | readinessProbe: |
| 68 | tcpSocket: |
| 69 | port: 9160 |
| 70 | initialDelaySeconds: 5 |
| 71 | periodSeconds: 10 |
| 72 | volumes: |
| 73 | - name: sdc-sdc-cs-cs |
| 74 | hostPath: |
Munir Ahmad | e94258e | 2017-08-17 12:04:14 -0400 | [diff] [blame^] | 75 | path: /dockerdata-nfs/onapdemo/sdc/sdc-cs/CS |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 76 | - name: sdc-environments |
| 77 | hostPath: |
Munir Ahmad | e94258e | 2017-08-17 12:04:14 -0400 | [diff] [blame^] | 78 | path: /dockerdata-nfs/onapdemo/sdc/environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 79 | - name: sdc-localtime |
| 80 | hostPath: |
| 81 | path: /etc/localtime |
| 82 | - name: sdc-logs |
| 83 | hostPath: |
Munir Ahmad | e94258e | 2017-08-17 12:04:14 -0400 | [diff] [blame^] | 84 | path: /dockerdata-nfs/onapdemo/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 85 | imagePullSecrets: |
| 86 | - name: onap-docker-registry-key |