sanjulian commented on a change in pull request #864: KYLIN-4181 Schedule Kylin 
using Kubernetes
URL: https://github.com/apache/kylin/pull/864#discussion_r363656549
 
 

 ##########
 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
 
 Review comment:
   Maybe we can create a bootstrap.sh to includes these command, and exec the 
shell script in here.

----------------------------------------------------------------
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

Reply via email to