blob: 08c2ee3734f5ba21eb22e70f84ac6a5143ffffd4 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableAaiHbase }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000019 name: aai-hbase
20 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021spec:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +000022 replicas: {{ .Values.hbaseReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 selector:
24 matchLabels:
25 app: hbase
26 template:
27 metadata:
28 labels:
29 app: hbase
BorislavG8bfc6cf2018-02-27 15:04:26 +000030 name: aai-hbase
Mandeep Khindad6ea9872017-06-24 11:49:37 -040031 spec:
32 hostname: hbase
Mandeep Khindad6ea9872017-06-24 11:49:37 -040033 containers:
34 - name: hbase
Mandeep Khinda4b881972017-08-30 14:24:02 +000035 image: "{{ .Values.image.aaiHbaseImage }}:{{ .Values.image.aaiHbaseVersion }}"
kerenjfdc17622017-08-24 11:32:22 +000036 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040037 ports:
Mandeep Khinda4b881972017-08-30 14:24:02 +000038 - containerPort: 2181
39 - containerPort: 8080
40 - containerPort: 8085
41 - containerPort: 9090
42 - containerPort: 16000
43 - containerPort: 16010
44 - containerPort: 16201
Mandeep Khindad6ea9872017-06-24 11:49:37 -040045 readinessProbe:
46 tcpSocket:
Mandeep Khinda4b881972017-08-30 14:24:02 +000047 port: 2181
Mandeep Khindad6ea9872017-06-24 11:49:37 -040048 initialDelaySeconds: 5
49 periodSeconds: 10
yuryn8b3bc5a2017-09-13 19:21:03 +030050 volumeMounts:
Munir Ahmad05b29cc2018-01-30 17:13:19 -050051 - name: hbase-data
52 mountPath: /tmp
yuryn8b3bc5a2017-09-13 19:21:03 +030053 - name: localtime
54 mountPath: /etc/localtime
55 readOnly: true
56 volumes:
Munir Ahmad05b29cc2018-01-30 17:13:19 -050057 - name: hbase-data
58 hostPath:
Munir Ahmaded77ce32018-02-05 08:40:34 -050059 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aai/hbase
yuryn8b3bc5a2017-09-13 19:21:03 +030060 - name: localtime
61 hostPath:
62 path: /etc/localtime
Borislav Glozman5197e2e2017-07-24 10:45:28 +030063 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000064 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Munir Ahmad05b29cc2018-01-30 17:13:19 -050065#{{ end }}