License addition in all yamls
[oom.git] / kubernetes / aai / templates / hbase-deployment.yaml
1 # 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
15 #{{ if not .Values.disableAaiHbase }}
16 apiVersion: extensions/v1beta1
17 kind: Deployment
18 metadata:
19   name: aai-hbase
20   namespace: "{{ .Values.nsPrefix }}"
21 spec:
22   replicas: {{ .Values.hbaseReplicas }}
23   selector:
24     matchLabels:
25       app: hbase
26   template:
27     metadata:
28       labels:
29         app: hbase
30       name: aai-hbase
31     spec:
32       hostname: hbase
33       containers:
34       - name: hbase
35         image: "{{ .Values.image.aaiHbaseImage }}:{{ .Values.image.aaiHbaseVersion }}"
36         imagePullPolicy: {{ .Values.pullPolicy }}
37         ports:
38         - containerPort: 2181
39         - containerPort: 8080
40         - containerPort: 8085
41         - containerPort: 9090
42         - containerPort: 16000
43         - containerPort: 16010
44         - containerPort: 16201
45         readinessProbe:
46           tcpSocket:
47             port: 2181
48           initialDelaySeconds: 5
49           periodSeconds: 10
50         volumeMounts:
51         - name: hbase-data
52           mountPath: /tmp
53         - name: localtime
54           mountPath: /etc/localtime
55           readOnly: true
56       volumes:
57       - name: hbase-data
58         hostPath:
59           path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aai/hbase
60       - name: localtime
61         hostPath:
62           path: /etc/localtime
63       imagePullSecrets:
64       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
65 #{{ end }}