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