flink 提交到k8s

Last updated on November 20, 2024 am

🧙 Questions

☄️ Ideas

# 查看所有pods
kubectl get pods -n zhiliuyun-space

# 查看pods日志
kubectl logs -f zhiliuyun-cluster-1727233056083-69ff88c8b9-7rx4b -n zhiliuyun-space 

# 删除pods
kubectl delete pod zzhiqingyun-data-sync-jdbc-sy-1813828728925601792-sy-1813889095713140736-ae77aa90c5773210-driver -n zhiqingyun-space --force
kubectl delete pod $(kubectl get pods -n zhiliuyun-space --no-headers | grep 'zhiliuyun-' | awk '{print $1}') -n zhiliuyun-space --force

kubectl scale deployment zhiliuyun-cluster-1727681943178 --replicas=0 -n zhiliuyun-space

# 查看pod
kubectl describe pod zhiliuyun-cluster-1727681521741-5db8f768b5-fc4g7 -n zhiliuyun-space

# 查看地址
kubectl port-forward zhiqingyun-spark-container-sy-1815692501588373504-7a53cc90df3fd2cb-driver 34624:34624 -n zhiqingyun-space &

#查看pod
kubectl get pod zhiliuyun-cluster-1727681521741-5db8f768b5-fc4g7 -n zhiliuyun-space -o yaml

# 查看镜像dockerfile
docker history --no-trunc 51ac287c39fd

# 停止
kubectl delete pod zhiqingyun-spark-container-sy-1815692501588373504-e582a490df343738-exec-1  -n zhiqingyun-space --force

flink 提交到k8s
https://ispong.isxcode.com/hadoop/flink/flink 提交到k8s/
Author
ispong
Posted on
September 23, 2024
Licensed under