Persist AAI data add ns prefix
[oom.git] / kubernetes / aai / templates / hbase-deployment.yaml
1 #{{ if not .Values.disableAaiHbase }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: hbase
6   namespace: "{{ .Values.nsPrefix }}-aai"
7 spec:
8   selector:
9     matchLabels:
10       app: hbase
11   template:
12     metadata:
13       labels:
14         app: hbase
15       name: hbase
16     spec:
17       hostname: hbase
18       containers:
19       - name: hbase
20         image: "{{ .Values.image.aaiHbaseImage }}:{{ .Values.image.aaiHbaseVersion }}"
21         imagePullPolicy: {{ .Values.pullPolicy }}
22         ports:
23         - containerPort: 2181
24         - containerPort: 8080
25         - containerPort: 8085
26         - containerPort: 9090
27         - containerPort: 16000
28         - containerPort: 16010
29         - containerPort: 16201
30         readinessProbe:
31           tcpSocket:
32             port: 2181
33           initialDelaySeconds: 5
34           periodSeconds: 10
35         volumeMounts:
36         - name: hbase-data
37           mountPath: /tmp
38         - name: localtime
39           mountPath: /etc/localtime
40           readOnly: true
41       volumes:
42       - name: hbase-data
43         hostPath:
44           path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aai/hbase
45       - name: localtime
46         hostPath:
47           path: /etc/localtime
48       imagePullSecrets:
49       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
50 #{{ end }}