kubeedge 迁移
2021/6/8 18:50:51
本文主要是介绍kubeedge 迁移,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
kubectl cordon pcl001-desktop
[root@cloud temperature_yaml]# kubectl get nodes NAME STATUS ROLES AGE VERSION cloud Ready master 28d v1.18.6 edge-vm Ready agent,edge 54m v1.19.3-kubeedge-v1.6.1 edge01 Ready <none> 14d v1.21.1 pcl001-desktop Ready,SchedulingDisabled agent,edge 6d6h v1.19.3-kubeedge-v1.6.1 raspberrypi NotReady agent,edge 26d v1.19.3-kubeedge-v1.6.1
[root@cloud temperature_yaml]# kubectl get nodes --show-labels NAME STATUS ROLES AGE VERSION LABELS cloud Ready master 28d v1.18.6 beta.kubernetes.io/arch=arm64,beta.kubernetes.io/os=linux,kubernetes.io/arch=arm64,kubernetes.io/hostname=cloud,kubernetes.io/os=linux,node-role.kubernetes.io/master= edge-vm Ready agent,edge 56m v1.19.3-kubeedge-v1.6.1 kubernetes.io/arch=arm64,kubernetes.io/hostname=edge-vm,kubernetes.io/os=linux,node-role.kubernetes.io/agent=,node-role.kubernetes.io/edge= edge01 Ready <none> 14d v1.21.1 beta.kubernetes.io/arch=arm64,beta.kubernetes.io/os=linux,kubernetes.io/arch=arm64,kubernetes.io/hostname=edge01,kubernetes.io/os=linux pcl001-desktop Ready,SchedulingDisabled agent,edge 6d6h v1.19.3-kubeedge-v1.6.1 kubernetes.io/arch=arm64,kubernetes.io/hostname=pcl001-desktop,kubernetes.io/os=linux,node-role.kubernetes.io/agent=,node-role.kubernetes.io/edge= raspberrypi NotReady agent,edge 26d v1.19.3-kubeedge-v1.6.1 app-offline.kubeedge.io=autonomy,kubernetes.io/arch=arm,kubernetes.io/hostname=raspberrypi,kubernetes.io/os=linux,node-role.kubernetes.io/agent=,node-role.kubernetes.io/edge= [root@cloud temperature_yaml]#
[root@cloud temperature_yaml]# cat deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: temperature-simulate-mapper labels: app: temperature spec: replicas: 1 selector: matchLabels: app: temperature template: metadata: labels: app: temperature spec: hostNetwork: true nodeName: pcl001-desktop containers: - name: temperature image: temperature-simulate-mapper:test-0629 imagePullPolicy: IfNotPresent securityContext: privileged: true
[root@cloud temperature_yaml]# kubectl drain pcl001-desktop --delete-local-data --ignore-daemonsets --force node/pcl001-desktop already cordoned WARNING: ignoring DaemonSet-managed Pods: kube-system/kube-proxy-qxw82 evicting pod default/temperature-simulate-mapper-5fcfb9d776-x97bt pod/temperature-simulate-mapper-5fcfb9d776-x97bt evicted node/pcl001-desktop evicted [root@cloud temperature_yaml]# kubectl get pods NAME READY STATUS RESTARTS AGE nginx-deployment-c85df76f4-gj65j 1/1 Running 0 7d8h temperature-simulate-mapper-5fcfb9d776-xx2nt 1/1 Running 0 29s [root@cloud temperature_yaml]# kubectl get pods -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES nginx-deployment-c85df76f4-gj65j 1/1 Running 0 7d8h 10.244.204.1 edge01 <none> <none> temperature-simulate-mapper-5fcfb9d776-xx2nt 1/1 Running 0 37s 192.168.117.50 pcl001-desktop <none> <none> [root@cloud temperature_yaml]#
这篇关于kubeedge 迁移的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-23Springboot应用的多环境打包入门
- 2024-11-23Springboot应用的生产发布入门教程
- 2024-11-23Python编程入门指南
- 2024-11-23Java创业入门:从零开始的编程之旅
- 2024-11-23Java创业入门:新手必读的Java编程与创业指南
- 2024-11-23Java对接阿里云智能语音服务入门详解
- 2024-11-23Java对接阿里云智能语音服务入门教程
- 2024-11-23JAVA对接阿里云智能语音服务入门教程
- 2024-11-23Java副业入门:初学者的简单教程
- 2024-11-23JAVA副业入门:初学者的实战指南