环境
Kubectl Client Version: v1.24.2
Kubernetes Server Version: v1.18.8
Helm version: v3.9.0
部署
部署cert-manager
1 | kubectl create -f https://github.com/jetstack/cert-manager/releases/download/v1.7.1/cert-manager.yaml |
部署flink-kubernetes-operator
1 | helm repo add flink-operator-repo https://downloads.apache.org/flink/flink-kubernetes-operator-1.0.1/ |
观察部署情况
1 | ➜ ~ kubectl get pods -n flink |
运行示例任务
1 | kubectl create -f https://raw.githubusercontent.com/apache/flink-kubernetes-operator/release-1.0/examples/basic.yaml |
查看任务日志
1 | kubectl logs -f deploy/basic-example |
删除示例任务
1 | kubectl delete flinkdeployment/basic-example |