This is an automated email from the ASF dual-hosted git repository.

sjwiesman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-statefun.git

commit 99892751a60d31991161a097923fbd5ee08cb2eb
Author: sjwiesman <[email protected]>
AuthorDate: Wed Dec 15 13:34:10 2021 -0600

    [hotfix] Add k8s HA to helm chart
    
    This closes #279
---
 tools/k8s/templates/config-map.yaml | 3 +++
 tools/k8s/values.yaml               | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/tools/k8s/templates/config-map.yaml 
b/tools/k8s/templates/config-map.yaml
index f1bf89f..c96e1c5 100644
--- a/tools/k8s/templates/config-map.yaml
+++ b/tools/k8s/templates/config-map.yaml
@@ -41,6 +41,9 @@ data:
     parallelism.default: {{ .Values.worker.replicas }}
     pipeline.auto-generate-uids: false
     execution.savepoint.ignore-unclaimed-state: true
+    kubernetes.cluster-id: {{ .Values.ha.id }}
+    high-availability: 
org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory
+    high-availability.storageDir: {{ .Values.ha.dir }
 
   log4j-console.properties: |+
     rootLogger.level = INFO
diff --git a/tools/k8s/values.yaml b/tools/k8s/values.yaml
index 6568daf..0d20c45 100644
--- a/tools/k8s/values.yaml
+++ b/tools/k8s/values.yaml
@@ -19,6 +19,10 @@ checkpoint:
   mode: EXACTLY_ONCE
   interval: 10sec
 
+ha:
+  id: statefun-application
+  dir: file:///ha-ir
+
 master:
   name: statefun-master
   image: statefun-application # replace with your image

Reply via email to