Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame^] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: aai-service |
| 5 | spec: |
| 6 | selector: |
| 7 | matchLabels: |
| 8 | app: aai-service |
| 9 | template: |
| 10 | metadata: |
| 11 | labels: |
| 12 | app: aai-service |
| 13 | name: aai-service |
| 14 | annotations: |
| 15 | pod.beta.kubernetes.io/init-containers: '[ |
| 16 | { |
| 17 | "args": [ |
| 18 | "--container-name", |
| 19 | "hbase" |
| 20 | ], |
| 21 | "command": [ |
| 22 | "/root/ready.py" |
| 23 | ], |
| 24 | "env": [ |
| 25 | { |
| 26 | "name": "NAMESPACE", |
| 27 | "valueFrom": { |
| 28 | "fieldRef": { |
| 29 | "apiVersion": "v1", |
| 30 | "fieldPath": "metadata.namespace" |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | ], |
| 35 | "image": "oomk8s/readiness-check:1.0.0", |
| 36 | "imagePullPolicy": "Always", |
| 37 | "name": "aai-service-readiness" |
| 38 | } |
| 39 | ]' |
| 40 | spec: |
| 41 | containers: |
| 42 | - env: |
| 43 | - name: AAI_REPO_PATH |
| 44 | value: r/aai |
| 45 | - name: AAI_CHEF_ENV |
| 46 | value: simpledemo |
| 47 | - name: AAI_CHEF_LOC |
| 48 | value: /var/chef/aai-data/environments |
| 49 | - name: docker_gitbranch |
| 50 | value: release-1.0.0 |
| 51 | - name: DEBIAN_FRONTEND |
| 52 | value: noninteractive |
| 53 | - name: JAVA_HOME |
| 54 | value: /usr/lib/jvm/java-8-openjdk-amd64 |
| 55 | image: nexus3.onap.org:10001/openecomp/ajsc-aai:1.0-STAGING-latest |
| 56 | name: aai-service |
| 57 | volumeMounts: |
| 58 | - mountPath: /etc/ssl/certs/ |
| 59 | name: aai-service-certs |
| 60 | - mountPath: /opt/aai/logroot/ |
| 61 | name: aai-service-logroot |
| 62 | - mountPath: /var/chef/aai-config/ |
| 63 | name: aai-config |
| 64 | - mountPath: /var/chef/aai-data/ |
| 65 | name: aai-data |
| 66 | ports: |
| 67 | - containerPort: 8080 |
| 68 | - containerPort: 8443 |
| 69 | readinessProbe: |
| 70 | tcpSocket: |
| 71 | port: 8443 |
| 72 | initialDelaySeconds: 5 |
| 73 | periodSeconds: 10 |
| 74 | volumes: |
| 75 | - name: aai-service-certs |
| 76 | hostPath: |
| 77 | path: /dockerdata-nfs/onapdemo/aai/etc/ssl/certs/ |
| 78 | - name: aai-service-logroot |
| 79 | hostPath: |
| 80 | path: /dockerdata-nfs/onapdemo/aai/opt/aai/logroot/ |
| 81 | - name: aai-config |
| 82 | hostPath: |
| 83 | path: /dockerdata-nfs/onapdemo/aai/aai-config/ |
| 84 | - name: aai-data |
| 85 | hostPath: |
| 86 | path: /dockerdata-nfs/onapdemo/aai/aai-data/ |
| 87 | restartPolicy: Always |