TempleZhou commented on a change in pull request #864: KYLIN-4181 Schedule
Kylin using Kubernetes
URL: https://github.com/apache/kylin/pull/864#discussion_r367745505
##########
File path: kubernetes/kylin-job-statefulset.yaml
##########
@@ -0,0 +1,95 @@
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+ annotations: {}
+ name: kylin-job
+ namespace: kylin
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: kylin
+ type: job
+ serviceName: kylin
+ template:
+ metadata:
+ labels:
+ app: kylin
+ type: job
+ spec:
+ containers:
+ - image: 'apachekylin/apache-kylin:3.0.0-cdh57'
+ imagePullPolicy: Always
+ lifecycle:
+ postStart:
+ exec:
+ command:
+ - bash
+ - '-c'
+ - |
+ set -ex
+ # initialize the keytab
+ kinit -kt /home/kylin/kylin.keytab kylin
+ # set the kylin.server.mode
+ sed "s/kylin\.server\.mode.*/kylin\.server\.mode=all/g"
/mnt/kylin-config/kylin.properties > ${KYLIN_HOME}/conf/kylin.properties
+ sed -i
"s/kylin\.server\.host-address.*/kylin\.server\.host-address=`hostname`\.kylin:7070/g"
${KYLIN_HOME}/conf/kylin.properties
Review comment:
@Smallhi Maybe, you need pay attention to my postStart script.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services