[WIP] Add new AAI configuration files
[oom.git] / kubernetes / aai / hbase-deployment.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: hbase
5 spec:
6   selector:
7     matchLabels:
8       app: hbase
9   template:
10     metadata:
11       labels:
12         app: hbase
13       name: hbase
14     spec:
15       hostname: hbase
16       volumes:
17         - name: hbase-opt-data
18           hostPath:
19             path: /dockerdata/onapdemo/aai/hbase/opt/data
20       containers:
21       - name: hbase
22         image: aaidocker/aai-hbase-1.2.3:latest
23         command: 
24         - bash
25         - -c
26         - if [ ! -d /opt/data/hdfs-data-name ]; then /opt/hadoop-2.7.2/bin/hadoop namenode -format; fi && /opt/entrypoint.sh
27         volumeMounts:
28         - mountPath: /opt/data/
29           name: hbase-opt-data
30         ports:
31         - containerPort: 8020
32         readinessProbe:
33           tcpSocket:
34             port: 8020
35           initialDelaySeconds: 5
36           periodSeconds: 10
37       imagePullSecrets:
38       - name: onap-docker-registry-key