blob: b6242ee292b2321e2c4dd33d51b83837380a852d [file] [log] [blame]
Mandeep Khindafc068432017-08-30 14:24:02 +00001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: aai-resources
5 namespace: "{{ .Values.nsPrefix }}-aai"
6spec:
7 selector:
8 matchLabels:
9 app: aai-resources
10 template:
11 metadata:
12 labels:
13 app: aai-resources
14 name: aai-resources
15 spec:
16 containers:
17 - name: aai-resources
18 image: "{{ .Values.image.aaiResourcesImage }}:{{ .Values.image.aaiResourcesVersion}}"
19 imagePullPolicy: {{ .Values.pullPolicy }}
20 env:
21 - name: CHEF_BRANCH
22 value: master
23 - name: AAI_CHEF_ENV
24 value: simpledemo
25 - name: AAI_CORE_VERSION
26 value: 1.1.0-SNAPSHOT
27 - name: AAI_CHEF_LOC
28 value: /var/chef/aai-data/environments
29 - name: CHEF_GIT_URL
30 value: http://gerrit.onap.org/r/aai
31 volumeMounts:
32 - mountPath: /opt/aai/logroot/AAI-RES/
33 name: aai-resources-logs
34 - mountPath: /var/chef/aai-config/
35 name: aai-config
36 - mountPath: /var/chef/aai-data/
37 name: aai-data
38 ports:
39 - containerPort: 8447
40 readinessProbe:
41 tcpSocket:
42 port: 8447
43 initialDelaySeconds: 5
44 periodSeconds: 10
45 volumes:
46 - name: aai-resources-logs
47 hostPath:
48 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-resources/logs/"
49 - name: aai-config
50 hostPath:
51 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-config/"
52 - name: aai-data
53 hostPath:
54 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
55 restartPolicy: Always
56 imagePullSecrets:
57 - name: "{{ .Values.nsPrefix }}-docker-registry-key"