You must promote ECS Agents to ECS Servers.
After installing the Load Balancer, you must reconfigure the existing ECS Agents to
ECS Servers. This process is called Promoting the agents to Servers. You must
promote only one agent at a time. This procedure is explained using an example where
you promote the ECS agent on vb0928.halxg.cloudera.com and then promote the
ECS agent on vb0929.halxg.cloudera.com.
-
Prepare the agent node for promotion by running the following commands on the
command line of your ECS Server host. sudo
/var/lib/rancher/rke2/bin/kubectl --kubeconfig=/etc/rancher/rke2/rke2.yaml
get nodes
sudo /var/lib/rancher/rke2/bin/kubectl
--kubeconfig=/etc/rancher/rke2/rke2.yaml drain vb0928.halxg.cloudera.com
--ignore-daemonsets --delete-emptydir-data.
-
In Cloudera Manager, navigate to ECS Cluster >> ECS. Stop the ECSAgent running
on vb0928 and then delete the agent.
-
In Cloudera Manager, navigate to ECS Cluster >>
ECS. Click Add Role
Instances.
-
Add the available host vb0928 as an ECS Server in the
Add Role Instances to ECS pop-up. Click
Ok.
-
Click Continue.
-
Start the new ECS Server from ECS Instances view. For example, start ECSServer
on vb0928.
-
On the command line, uncordon the node by running the following command:
sudo /var/lib/rancher/rke2/bin/kubectl
--kubeconfig=/etc/rancher/rke2/rke2.yaml uncordon
vb0928.halxg.cloudera.com
-
Confirm the node’s status from webUI or the command line by running the command
sudo /var/lib/rancher/rke2/bin/kubectl
--kubeconfig=/etc/rancher/rke2/rke2.yaml get nodes.
When vb0928 is ready, you can promote the next agent vb0929. To promote the next
agent, you must perform steps 1-8 again, the example uses
vb0929.halxg.cloudera.com.