onap on kubernetes source files
[oom.git] / kubernetes / sdc / sdc-es.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   labels:
5     app: sdc-es
6   name: sdc-es
7 spec:
8   selector:
9     matchLabels:
10       app: sdc-es
11   template:
12     metadata:
13       labels:
14         app: sdc-es
15       name: sdc-es
16     spec:
17       containers:
18       - image: nexus3.onap.org:10001/openecomp/sdc-elasticsearch:1.0-STAGING-latest
19         name: sdc-es
20         env:
21         - name: ENVNAME
22           value: "AUTO"
23         - name: HOST_IP
24           valueFrom:
25             fieldRef:
26               fieldPath: status.podIP
27         - name: ES_HEAP_SIZE
28           value: "1024M"
29         volumeMounts:
30         - mountPath: /usr/share/elasticsearch/data/
31           name: sdc-sdc-es-es
32         - mountPath: /root/chef-solo/environments/
33           name: sdc-environments
34         - mountPath: /etc/localtime
35           name: sdc-localtime
36         - mountPath: /var/lib/jetty/logs
37           name: sdc-logs
38         ports:
39         - containerPort: 9200
40         - containerPort: 9300
41         readinessProbe:
42           tcpSocket:
43             port: 9200
44           initialDelaySeconds: 5
45           periodSeconds: 10
46       volumes:
47         - name: sdc-sdc-es-es
48           hostPath:
49             path: /dockerdata-nfs/onapdemo/sdc/sdc-es/ES
50         - name: sdc-environments
51           hostPath:
52             path: /dockerdata-nfs/onapdemo/sdc/environments
53         - name: sdc-localtime
54           hostPath:
55             path:  /etc/localtime
56         - name:  sdc-logs
57           hostPath:
58             path:  /dockerdata-nfs/onapdemo/sdc/logs