diff --git a/helm/templates/flink/deploy.yaml b/helm/templates/flink/deploy.yaml index 19d8720..206adfd 100644 --- a/helm/templates/flink/deploy.yaml +++ b/helm/templates/flink/deploy.yaml @@ -32,10 +32,16 @@ spec: - name: FLINK_PROPERTIES value: | jobmanager.rpc.address: localhost + jobmanager.memory.process.size: 2048m + taskmanager.memory.process.size: 2048m + taskmanager.data.port: 6125 taskmanager.numberOfTaskSlots: {{ .Values.flink.taskManager.numberOfTaskSlots }} parallelism.default: {{ .Values.flink.parallelism.default }} state.backend: {{ .Values.flink.state.backend }} state.savepoints.dir: {{ .Values.flink.state.savepoints.dir }} # Savepoints path + rest.port: 8081 + rootLogger.level = DEBUG + rootLogger.appenderRef.console.ref = ConsoleAppender volumeMounts: - name: flink-data mountPath: /opt/flink/data diff --git a/helm/templates/flink/service.yaml b/helm/templates/flink/service.yaml index c1046e9..5def261 100644 --- a/helm/templates/flink/service.yaml +++ b/helm/templates/flink/service.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: {{ .Release.Name }}-flink-service # Adding the flink prefix to the service name + name: flink # Adding the flink prefix to the service name labels: app.kubernetes.io/name: {{ .Release.Name }}-flink # Adding the flink prefix to labels app.kubernetes.io/instance: {{ .Release.Name }} diff --git a/helm/templates/operator/configmap.yaml b/helm/templates/operator/configmap.yaml new file mode 100644 index 0000000..b854d63 --- /dev/null +++ b/helm/templates/operator/configmap.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ .Release.Name }}-config +data: + config.yaml: | + {{ .Values.config | toYaml | nindent 4 }} diff --git a/helm/templates/deployment.yaml b/helm/templates/operator/deployment.yaml similarity index 89% rename from helm/templates/deployment.yaml rename to helm/templates/operator/deployment.yaml index e2a9c31..8490d8e 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/operator/deployment.yaml @@ -42,14 +42,16 @@ spec: protocol: TCP resources: {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.volumeMounts }} volumeMounts: - {{- toYaml . | nindent 12 }} - {{- end }} - {{- with .Values.volumes }} + - name: config-volume + mountPath: /config.yaml + subPath: config.yaml volumes: - {{- toYaml . | nindent 8 }} - {{- end }} + - name: config-volume + configMap: + name: {{ .Release.Name }}-config # Name of the ConfigMap + + {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/helm/templates/hpa.yaml b/helm/templates/operator/hpa.yaml similarity index 100% rename from helm/templates/hpa.yaml rename to helm/templates/operator/hpa.yaml diff --git a/helm/templates/ingress.yaml b/helm/templates/operator/ingress.yaml similarity index 100% rename from helm/templates/ingress.yaml rename to helm/templates/operator/ingress.yaml diff --git a/helm/templates/service.yaml b/helm/templates/operator/service.yaml similarity index 100% rename from helm/templates/service.yaml rename to helm/templates/operator/service.yaml diff --git a/helm/templates/serviceaccount.yaml b/helm/templates/operator/serviceaccount.yaml similarity index 100% rename from helm/templates/serviceaccount.yaml rename to helm/templates/operator/serviceaccount.yaml diff --git a/helm/values.yaml b/helm/values.yaml index 977533c..f376065 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -103,18 +103,9 @@ autoscaling: targetCPUUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80 -# Additional volumes on the output Deployment definition. -volumes: [] -# - name: foo -# secret: -# secretName: mysecret -# optional: false +config: + flinkApiUrl: flink:8081 -# Additional volumeMounts on the output Deployment definition. -volumeMounts: [] -# - name: foo -# mountPath: "/etc/foo" -# readOnly: true nodeSelector: {} @@ -138,7 +129,7 @@ flink: pvcName: flink-savepoints-pvc # PVC for savepoints persistence taskManager: - numberOfTaskSlots: 1 # Number of task slots for TaskManager + numberOfTaskSlots: 100 # Number of task slots for TaskManager persistence: enabled: true