create K8S cluster by TOSCA
[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: localtime
37           mountPath: /etc/localtime
38           readOnly: true
39       volumes:
40       - name: localtime
41         hostPath:
42           path: /etc/localtime
43       imagePullSecrets:
44       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
45 #{{ end }}