Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support init containers #85

Merged
merged 2 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/flink-job/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.7
version: 0.3.8

dependencies:
- name: image-automation
Expand Down
5 changes: 4 additions & 1 deletion charts/flink-job/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flink-job

![Version: 0.3.7](https://img.shields.io/badge/Version-0.3.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.3.8](https://img.shields.io/badge/Version-0.3.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A Helm chart for handling Cheetah Data Platform Flink jobs

Expand Down Expand Up @@ -142,6 +142,7 @@ Read more about Flink and highly available job-managers [here](https://nightlies
| volumeMounts | list | `[]` | List of additional volume mounts for the both job- and task-manager |
| podLabels | object | `{}` | Additional labels attached to the pods |
| podAnnotations | object | `{}` | Additional annotations attached to the pods |
| initContainers | list | `[]` | InitContainers for the pods |
| job.jarURI | string | `""` | The path of the job jar |
| job.entryClass | string | `""` | The name of the job class |
| job.args | list | `[]` | Arguments for the job |
Expand All @@ -163,6 +164,7 @@ Read more about Flink and highly available job-managers [here](https://nightlies
| taskManager.volumeMounts | list | `[]` | List of additional volume mounts |
| taskManager.podLabels | object | `{}` | Additional labels attached to the pods |
| taskManager.podAnnotations | object | `{}` | Additional annotations attached to the pods |
| taskManager.initContainers | list | `[]` | InitContainers for the pods |
| taskManager.podTemplate | string | (see values.yaml) | Pod template. Overrides the main `podTemplate`. The main flink-container must be called "flink-main-container" |
| jobManager.replicas | int | `1` | Number of replicas |
| jobManager.resource.memory | string | `"1Gb"` | Memory to reserve for the Job Manager. The default value should be ok for most jobs. |
Expand All @@ -174,6 +176,7 @@ Read more about Flink and highly available job-managers [here](https://nightlies
| jobManager.volumeMounts | list | `[]` | List of additional volume mounts |
| jobManager.podLabels | object | `{}` | Additional labels attached to the pods |
| jobManager.podAnnotations | object | `{}` | Additional annotations attached to the pods |
| jobManager.initContainers | list | `[]` | InitContainers for the pods |
| jobManager.podTemplate | string | (see values.yaml) | Pod template. Overrides the main `podTemplate`. The main flink-container must be called "flink-main-container" |
| metrics.enabled | bool | `true` | Enable metrics scraping. Define flinkProperties to define the monitoring properties |
| metrics.port | int | `9249` | Port on both job- and task-manager where metrics are exposed |
Expand Down
19 changes: 19 additions & 0 deletions charts/flink-job/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ volumeMounts: []
podLabels: {}
# -- Additional annotations attached to the pods
podAnnotations: {}
# -- InitContainers for the pods
initContainers: []

job:
# -- The path of the job jar
Expand Down Expand Up @@ -164,6 +166,10 @@ podTemplate: |-
imagePullSecrets:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.initContainers }}
initContainers:
{{- toYaml . | nindent 4 }}
{{- end }}

taskManager:
# -- Number of replicas
Expand All @@ -188,6 +194,8 @@ taskManager:
podLabels: {}
# -- Additional annotations attached to the pods
podAnnotations: {}
# -- InitContainers for the pods
initContainers: []

# -- Pod template. Overrides the main `podTemplate`.
# The main flink-container must be called "flink-main-container"
Expand Down Expand Up @@ -227,6 +235,10 @@ taskManager:
volumes:
{{- toYaml . | nindent 4 -}}
{{- end }}
{{- with .Values.taskManager.initContainers }}
initContainers:
{{- toYaml . | nindent 4 }}
{{- end }}

jobManager:
# -- Number of replicas
Expand All @@ -251,6 +263,8 @@ jobManager:
podLabels: {}
# -- Additional annotations attached to the pods
podAnnotations: {}
# -- InitContainers for the pods
initContainers: []

# -- Pod template. Overrides the main `podTemplate`.
# The main flink-container must be called "flink-main-container"
Expand Down Expand Up @@ -291,6 +305,11 @@ jobManager:
{{- toYaml . | nindent 4 -}}
{{- end }}

{{- with .Values.jobManager.initContainers }}
initContainers:
{{- toYaml . | nindent 4 }}
{{- end }}

metrics:
# -- Enable metrics scraping. Define flinkProperties to define the monitoring properties
enabled: true
Expand Down