onap 1.1 deployment files work in progress...
[oom.git] / kubernetes / aai / aai-resources-deployment.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: aai-resources
5 spec:
6   selector:
7     matchLabels:
8       app: aai-resources
9   template:
10     metadata:
11       labels:
12         app: aai-resources
13       name: aai-resources
14     spec:
15       containers:
16       - env:
17         - name: CHEF_BRANCH
18           value: master
19         - name: AAI_CHEF_ENV
20           value: simpledemo
21         - name: AAI_CORE_VERSION
22           value: 1.1.0-SNAPSHOT
23         - name: AAI_CHEF_LOC
24           value: /var/chef/aai-data/environments
25         - name: CHEF_GIT_URL
26           value: http://gerrit.onap.org/r/aai
27         - name: PATH
28           value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
29         - name: JAVA_HOME
30           value: /usr/lib/jvm/java-8-openjdk-amd64
31         - name: DEBIAN_FRONTEND
32           value: noninteractive
33         image: nexus3.onap.org:10001/openecomp/aai-resources:1.1-STAGING-latest
34         name: aai-resources
35         volumeMounts:
36         - mountPath: /opt/aai/logroot/AAI-RES/
37           name: aai-resources
38       volumes:
39         - name: aai-resources
40           hostPath:
41             path: /dockerdata/onapdemo/aai/aai-resources
42         ports:
43         - containerPort: 8447
44         readinessProbe:
45           tcpSocket:
46             port: 8080
47           initialDelaySeconds: 5
48           periodSeconds: 10
49       restartPolicy: Always
50       imagePullSecrets:
51       - name: onap-docker-registry-key