https://github.com/apache/flink/tree/release-1.10.1/flink-container/kubernetes
https://ci.apache.org/projects/flink/flink-docs-release-1.10/zh/ops/deployment/kubernetes.html
https://github.com/apache/flink-docker
You can then access the Flink UI via different ways:
kubectl proxy:
kubectl proxy
in a terminal.kubectl port-forward:
kubectl port-forward ${flink-jobmanager-pod} 8081:8081
to forward your jobmanager’s web ui port to local 8081.http://localhost:8081
in your browser../bin/flink run -m localhost:8081 ./examples/streaming/WordCount.jar
http://<public-node-ip>:<node-port>
in your browser../bin/flink run -m <public-node-ip>:<node-port> ./examples/streaming/WordCount.jar
kubectl create namespace flink-cluster
kubectl apply -n flink-cluster -f .
kubectl get svc -n flink-cluster
找到NodePort
kubectl create -f flink-configuration-configmap.yaml
kubectl create -f jobmanager-service.yaml
kubectl create -f jobmanager-deployment.yaml
kubectl create -f taskmanager-deployment.yaml
kubectl delete -f jobmanager-deployment.yaml
kubectl delete -f taskmanager-deployment.yaml
kubectl delete -f jobmanager-service.yaml
kubectl delete -f flink-configuration-configmap.yaml