Skip to main content
Version: v5.1

如何删除节点属性

如何删除gateway属性

移除网关节点组件配置文件

rm -rf /opt/rainbond/conf/lb.yaml 

关闭服务

systemctl stop rbd-gateway
rm -rf /etc/systemd/system/rbd-gateway.service

移除node角色

编辑 /opt/rainbond/scripts/start-node.sh


#!/bin/bash

NODE_OPTS="--log-level=info --auto-scheduler=true --kube-conf=/opt/rainbond/etc/kubernetes/kubecfg/admin.kubeconfig --etcd=http://172.16.0.1:2379 --hostIP=172.16.0.1 --run-mode worker --noderule manage,gateway"

exec /usr/local/bin/node $NODE_OPTS

--noderule manage,gateway 中的 gateway 去除: --noderule manage

重启node服务

systemctl restart node

如何删除compute属性

移除计算节点组件配置文件

rm -rf /opt/rainbond/conf/k8s-worker.yaml 

关闭服务

systemctl stop kubelet
rm -rf /etc/systemd/system/kubelet.service

移除node角色

编辑 /opt/rainbond/scripts/start-node.sh


#!/bin/bash

NODE_OPTS="--log-level=info --auto-scheduler=true --kube-conf=/opt/rainbond/etc/kubernetes/kubecfg/admin.kubeconfig --etcd=http://172.16.0.2:2379 --hostIP=172.16.0.2 --run-mode worker --noderule manage,compute"

exec /usr/local/bin/node $NODE_OPTS

--noderule manage,compute 中的 compute 去除: --noderule manage

重启node服务

systemctl restart node