forked from dlmarion/accumulo-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccumulo-tserver.yaml
63 lines (62 loc) · 1.79 KB
/
accumulo-tserver.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: apps/v1
kind: Deployment
metadata:
name: accumulo-tserver
namespace: accumulo
labels:
app: accumulo-tserver
spec:
replicas: 1
selector:
matchLabels:
app: accumulo-tserver
template:
metadata:
labels:
app: accumulo-tserver
spec:
containers:
- name: accumulo-tserver
image: accumulo-s3-fs:2.1.0
imagePullPolicy: Never
command: ["/bin/bash", "-c"]
args: ["accumulo tserver -o general.process.bind.addr=$(hostname -i)" ]
ports:
- containerPort: 9997
resources:
requests:
cpu: 100m
memory: "2048Mi"
limits:
cpu: 200m
memory: "4096Mi"
env:
- name: ACCUMULO_JAVA_OPTS
value: "-Xmx2g"
volumeMounts:
- name: "client-config"
mountPath: "/opt/accumulo/conf/accumulo-client.properties"
subPath: "accumulo-client.properties"
- name: "config"
mountPath: "/opt/accumulo/conf/accumulo.properties"
subPath: "accumulo.properties"
- name: "logging"
mountPath: "/opt/accumulo/conf/log4j2-service.properties"
subPath: "log4j2-service.properties"
- name: "core-site"
mountPath: "/opt/accumulo/conf/core-site.xml"
subPath: "core-site.xml"
terminationGracePeriodSeconds: 300 # Time to wait before moving from a TERM signal to the pod's main process to a KILL signal.
volumes:
- name: "client-config"
configMap:
name: "accumulo-client-properties"
- name: "config"
configMap:
name: "accumulo-properties"
- name: "logging"
configMap:
name: "accumulo-logging"
- name: "core-site"
configMap:
name: "core-site"