Munir Ahmad | 0b13329 | 2017-08-15 15:36:46 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: sparky-be |
| 5 | spec: |
| 6 | selector: |
| 7 | matchLabels: |
| 8 | app: sparky-be |
| 9 | template: |
| 10 | metadata: |
| 11 | labels: |
| 12 | app: sparky-be |
| 13 | name: sparky-be |
| 14 | spec: |
| 15 | containers: |
| 16 | - env: |
| 17 | - name: CONFIG_HOME |
| 18 | value: /opt/app/sparky/config/ |
| 19 | - name: PATH |
| 20 | value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| 21 | - name: JAVA_HOME |
| 22 | value: usr/lib/jvm/java-8-openjdk-amd64 |
| 23 | - name: KEY_MANAGER_PASSWORD |
| 24 | value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o |
| 25 | - name: KEY_STORE_PASSWORD |
| 26 | value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o |
| 27 | image: nexus3.onap.org:10001/openecomp/sparky-be:1.1-STAGING-latest |
| 28 | name: sparky-be |
| 29 | volumeMounts: |
| 30 | - mountPath: /opt/app/sparky/config/ |
| 31 | name: aai-sparky-be-config |
| 32 | - mountPath: /logs/ |
| 33 | name: aai-sparky-be-logs |
| 34 | volumes: |
| 35 | - name: aai-sparky-be-config |
| 36 | hostPath: |
| 37 | path: /dockerdata/onapdemo/aai/sparky-be/config/ |
| 38 | - name: aai-sparky-be-logs |
| 39 | hostPath: |
| 40 | path: /dockerdata/onapdemo/aai/sparky-be/logs/ |
| 41 | ports: |
| 42 | - containerPort: 8000 |
| 43 | - containerPort: 9517 |
| 44 | readinessProbe: |
| 45 | tcpSocket: |
| 46 | port: 8080 |
| 47 | initialDelaySeconds: 5 |
| 48 | periodSeconds: 10 |
| 49 | restartPolicy: Always |
| 50 | imagePullSecrets: |
| 51 | - name: onap-docker-registry-key |