This is the Helm chart for the Flink operator.
The instructions to install the Flink operator chart:
-
Prepare a Flink operator image. You can either use a released image e.g.,
ghcr.io/spotify/flink-operator:latest
or follow the instructions here to build and push an image from the source code. -
Run the bash script
update_template.sh
to update the manifest files in templates from the Flink operator source repo (This step is only required if you want to install from the local chart repo). -
Register CRD - Don't manually register CRD unless helm install below fails (You can skip this step if your helm version is v3).
kubectl create -f https://raw.githubusercontent.com/spotify/flink-on-k8s-operator/master/config/crd/bases/flinkoperator.k8s.io_flinkclusters.yaml
-
Finally operator chart can be installed by running:
helm install [RELEASE_NAME] . --set operatorImage.name=[IMAGE_NAME]
If you're installing the chart into a preexisting namespace, make sure to set the namespace name and instruct the chart not create one like so:
helm install [RELEASE_NAME] . --set operatorImage.name=[IMAGE_NAME],flinkOperatorNamespace.name=[NAMESPACE_NAME]
To uninstall your release:
helm delete [RELEASE_NAME]
CRD created by this chart are not deleted by helm uninstall. CRD deletion causes terminating all FlinkCluster CRs and related kubernetes resources, therefore it should be deleted carefully, You can manually clean up CRD:
kubectl delete crd flinkclusters.flinkoperator.k8s.io