Cross Version
-
Delete the
ConfigMap
, clean up theJob
list and find theConfigMap
configuration, as shown in the following example:kubernetes.cluster-id: md-flink
kubernetes.namespace: defaultExecute the script to batch delete
ConfigMap
.If something like
configmap "md-flink" deleted
is not output, it means that the namespace or the prefix ofConfigMap
is not correct, check again.# for i in $(kubectl -n [Replaced with value of kubernetes.namespace] get cm | awk '$1~"[Replaced with value of kubernetes.cluster-id]"{print $1}');do kubectl -n [Replaced with value ofkubernetes.namespace] delete cm $i;done
for i in $(kubectl -n default get cm | awk '$1~"md-flink"{print $1}');do kubectl -n default delete cm $i;done -
Download the mirror of the new version
Operations are required on each node server in a kubernetes cluster.
- Internet Access Available
- Internet Access Unavailable
crictl pull registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-flink:version number
# Download link for flink offline mirror file. After downloading, upload it to the deployment server.
https://pdpublic.mingdao.com/private-deployment/offline/mingdaoyun-flink-linux-amd64-version number.tar.gzLoad the offline mirror on the server.
gunzip -d mingdaoyun-flink-linux-amd64-version number.tar.gz
ctr -n k8s.io image import mingdaoyun-flink-linux-amd64-version number.tar -
Modify the configuration file
Modify the version of the mirrors used by the
flink-jobmanager
andflink-taskmanager
services inflink. yaml
.- name: jobmanager
image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-flink:version number
- name: taskmanager
image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-flink:version number -
Restart service
kubectl apply -f flink.yaml
-
Go to [Integrate] > [Data Pipeline] > [Sync Task] to to re-open or publish the task.