Delete Node Attributes

How to Delete Gateway Attributes

Remove gateway node component configuration file

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

Close the service

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

Remove the node role

edit /opt/kato/scripts/start-node.sh


#!/bin/bash 

NODE_OPTS="--log-level=info --auto-scheduler=true --kube-conf=/opt/ kato/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 

Remove the gateway in --noderule manage,gateway: --noderule manage

Restart node service

systemctl restart node 

How to Delete Compute Attributes

Remove compute node component configuration file

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

Shut down the service

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

Remove node role

Edit /opt/kato/scripts/start-node.sh


#!/bin/bash

NODE_OPTS="--log-level=info --auto-scheduler=true --kube-conf=/opt/kato/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 

Remove the compute in --noderule manage,compute: - -noderule manage

Restart node service

systemctl restart node