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