From 9ab7cf4b79f5c0f2af03cb91475e32d6c2225190 Mon Sep 17 00:00:00 2001 From: pielas Date: Fri, 6 Sep 2024 17:00:08 +0200 Subject: [PATCH] Added Flink K8s Operator related deployment files (#150) * Added handling of additional classpath modules * fixes * Added readme entry * Added handling for flink-k8s-operator * Added config field * added sharedDirectory field * Added missing conf field * Added some flink-k8s-operator related yamls * Added condition checking for clusterRoleBinding * Added conditionals * test * test * test * test * test * experimenting with flink operator role * fix * Added resource policy to keep payload-pvc-nfs * Testing pre-delete flink deployments script * test * improvement * Added quota info * fix * Improvements * improvements * toggle for deleting flink deployments * Moved sharedDirectoryMount to config * removed unnecessary file * Adapted to changed config file * Added influx config for flink k8s operator * Added job state storage + refactor * Fixed grafana dashboard * Added additional permissions to flink-service-account * Added flinkVersion to config * fix * Added limitOfRunningScenarios config parameter * potential fix * fixes * fix * Added handling of customLimitOfRunningScenarioExceededMessage * fix * Added all optional parameters for flink k8s operator dm * moved flink k8s operator config to enterprise section * fix * Moved pvc storage class value to config file * fix * fixes --- src/templates/flink-k8s-operator/jar-shared-volume-pvc.yaml | 4 +++- .../flink-k8s-operator/job-state-shared-volume-pvc.yaml | 4 +++- src/values.yaml | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/templates/flink-k8s-operator/jar-shared-volume-pvc.yaml b/src/templates/flink-k8s-operator/jar-shared-volume-pvc.yaml index dd9cdbe..702dc35 100644 --- a/src/templates/flink-k8s-operator/jar-shared-volume-pvc.yaml +++ b/src/templates/flink-k8s-operator/jar-shared-volume-pvc.yaml @@ -15,5 +15,7 @@ spec: resources: requests: storage: {{ default "1Gi" .Values.enterprise.flinkK8sOperatorDeploymentManager.jobJarStorage.pvcSize }} - storageClassName: nfs + {{- with .Values.enterprise.flinkK8sOperatorDeploymentManager.jobJarStorage.pvcStorageClassName }} + storageClassName: {{ . }} + {{- end }} {{- end }} \ No newline at end of file diff --git a/src/templates/flink-k8s-operator/job-state-shared-volume-pvc.yaml b/src/templates/flink-k8s-operator/job-state-shared-volume-pvc.yaml index 7b6049d..1ed50f7 100644 --- a/src/templates/flink-k8s-operator/job-state-shared-volume-pvc.yaml +++ b/src/templates/flink-k8s-operator/job-state-shared-volume-pvc.yaml @@ -15,5 +15,7 @@ spec: resources: requests: storage: {{ default "1Gi" .Values.enterprise.flinkK8sOperatorDeploymentManager.jobStateStorage.pvcSize }} - storageClassName: nfs + {{- with .Values.enterprise.flinkK8sOperatorDeploymentManager.jobStateStorage.pvcStorageClassName }} + storageClassName: {{ . }} + {{- end }} {{- end }} \ No newline at end of file diff --git a/src/values.yaml b/src/values.yaml index 49fa915..779d305 100644 --- a/src/values.yaml +++ b/src/values.yaml @@ -331,6 +331,8 @@ enterprise: jobJarStorage: pvcName: job-jars-pvc mountPoint: /mnt/jobjars + # pvcStorageClassName: default jobStateStorage: pvcName: job-states-pvc - mountPoint: /mnt/jobstates \ No newline at end of file + mountPoint: /mnt/jobstates + # pvcStorageClassName: default