- Deployment & Operations
- Clusters & Deployment
- Kubernetes
Kubernetes Setup
Kubernetes is a container orchestration system.
Simple Kubernetes Flink Cluster
A basic Flink cluster deployment in Kubernetes has three components:
- a Deployment for a single Jobmanager
- a Deployment for a pool of Taskmanagers
- a Service exposing the Jobmanager’s RPC and UI ports
Launching the cluster
Using the resource definitions found below, launch the cluster with the kubectl
command:
kubectl create -f jobmanager-deployment.yaml
kubectl create -f taskmanager-deployment.yaml
kubectl create -f jobmanager-service.yaml
You can then access the Flink UI via kubectl proxy
:
- Run
kubectl proxy
in a terminal
- Navigate to http://localhost:8001/api/v1/proxy/namespaces/default/services/flink-jobmanager:8081
in your browser
Deleting the cluster
Again, use kubectl
to delete the cluster:
kubectl delete -f jobmanager-deployment.yaml
kubectl delete -f taskmanager-deployment.yaml
kubectl delete -f jobmanager-service.yaml
Advanced Cluster Deployment
An early version of a Flink Helm chart is available on GitHub.
Appendix
Simple Kubernetes Flink cluster resources
jobmanager-deployment.yaml
taskmanager-deployment.yaml
jobmanager-service.yaml
Back to top