1+ #
2+ # Copyright (C) 2017-2019 Dremio Corporation. This file is confidential and private property.
3+ #
4+ #
5+ # NOTE: This is NOT a concrete StatefulSet. It is a ConfigMap that contains a base StatefulSet that is used as a
6+ # template for replica executors.
7+ #
8+ # Based on: https://github.com/dremio/dremio-cloud-tools/blob/master/charts/dremio_v2/templates/dremio-executor.yaml
9+ #
10+ apiVersion : apps/v1
11+ kind : StatefulSet
12+ metadata :
13+ name : template-dremio-executor
14+ spec :
15+ serviceName : " dremio-cluster-pod"
16+ replicas : 0
17+ podManagementPolicy : " Parallel"
18+ revisionHistoryLimit : 1
19+ selector :
20+ matchLabels :
21+ app : dremio-executor
22+ template :
23+ metadata :
24+ labels :
25+ role : dremio-cluster-pod
26+ diagnostics-collector-role : dremio-executor
27+ annotations :
28+ dremio-configmap/checksum : 0
29+ spec :
30+ terminationGracePeriodSeconds : 720
31+ securityContext :
32+ fsGroup : 999
33+ fsGroupChangePolicy : OnRootMismatch
34+ containers :
35+ - name : dremio-executor
36+ securityContext :
37+ allowPrivilegeEscalation : false
38+ capabilities :
39+ drop :
40+ - ALL
41+ privileged : false
42+ readOnlyRootFilesystem : false
43+ runAsGroup : 999
44+ runAsNonRoot : true
45+ runAsUser : 999
46+ seccompProfile :
47+ type : RuntimeDefault
48+ image : dremio/dremio-oss:latqest
49+ imagePullPolicy : IfNotPresent
50+ resources :
51+ requests :
52+ cpu : 0
53+ memory : " 0Gi"
54+ volumeMounts :
55+ - name : dremio-config
56+ mountPath : /opt/dremio/conf
57+ - name : dremio-hive2-config
58+ mountPath : /opt/dremio/plugins/connectors/hive2.d
59+ - name : dremio-hive2-config
60+ mountPath : /opt/dremio/plugins/connectors/hive2-ee.d
61+ - name : dremio-hive3-config
62+ mountPath : /opt/dremio/plugins/connectors/hive3.d
63+ - name : dremio-hive3-config
64+ mountPath : /opt/dremio/plugins/connectors/hive3-ee.d
65+ - name : dremio-default-executor-volume
66+ mountPath : /opt/dremio/data
67+ - name : dremio-default-executor-c3-0
68+ mountPath : /opt/dremio/cloudcache/c0
69+ env :
70+ - name : DREMIO_MAX_HEAP_MEMORY_SIZE_MB
71+ value : " 0"
72+ - name : DREMIO_MAX_DIRECT_MEMORY_SIZE_MB
73+ value : " 0"
74+ - name : DREMIO_JAVA_SERVER_EXTRA_OPTS
75+ value : >-
76+ -XX:+UseG1GC
77+ -XX:+AlwaysPreTouch
78+ -Xms8g
79+ -Xmx8g
80+ -XX:HeapDumpPath=/opt/dremio/data
81+ -XX:ErrorFile=/opt/dremio/data/hs_err_pid%p.log
82+ -XX:MaxGCPauseMillis=500
83+ -XX:InitiatingHeapOccupancyPercent=25
84+ -XX:G1HeapRegionSize=32M
85+ -XX:+PrintGCDetails
86+ -XX:+PrintGCTimeStamps
87+ -XX:+PrintGCDateStamps
88+ -XX:+PrintAdaptiveSizePolicy
89+ -XX:+PrintClassHistogramBeforeFullGC
90+ -XX:+PrintClassHistogramAfterFullGC
91+ -XX:+PrintReferenceGC
92+ -Dzookeeper=zk-hs:2181
93+ -Dservices.coordinator.enabled=false
94+ -Dservices.coordinator.master.enabled=false
95+ -Dservices.coordinator.master.embedded-zookeeper.enabled=false
96+ -Dservices.executor.enabled=true
97+ -Dservices.conduit.port=45679
98+ - name : AWS_CREDENTIAL_PROFILES_FILE
99+ value : " /opt/dremio/aws/credentials"
100+ - name : AWS_SHARED_CREDENTIALS_FILE
101+ value : " /opt/dremio/aws/credentials"
102+ - name : DREMIO_LOG_TO_CONSOLE
103+ value : " 1"
104+ command : [ "/opt/dremio/bin/dremio" ]
105+ args : [ "start-fg" ]
106+ ports :
107+ - containerPort : 45678
108+ name : server-fabric
109+ - containerPort : 45679
110+ name : server-conduit
111+ initContainers :
112+ - name : wait-for-zookeeper
113+ securityContext :
114+ allowPrivilegeEscalation : false
115+ capabilities :
116+ drop :
117+ - ALL
118+ privileged : false
119+ readOnlyRootFilesystem : false
120+ runAsGroup : 999
121+ runAsNonRoot : true
122+ runAsUser : 999
123+ seccompProfile :
124+ type : RuntimeDefault
125+ image : busybox
126+ command : [ "sh", "-c", "until nc zk-hs 2181 -w1 > /dev/null; do echo Waiting for Zookeeper to be ready.; sleep 2; done;" ]
127+ volumes :
128+ - name : dremio-config
129+ configMap :
130+ name : dremio-config
131+ - name : dremio-hive2-config
132+ configMap :
133+ name : dremio-hive2-config
134+ - name : dremio-hive3-config
135+ configMap :
136+ name : dremio-hive3-config
137+ volumeClaimTemplates :
138+ - metadata :
139+ name : dremio-default-executor-volume
140+ spec :
141+ accessModes : [ "ReadWriteOnce" ]
142+ resources :
143+ requests :
144+ storage : 128Gi
145+ - metadata :
146+ name : dremio-default-executor-c3-0
147+ spec :
148+ accessModes : [ "ReadWriteOnce" ]
149+ resources :
150+ requests :
151+ storage : 100Gi
0 commit comments