# RKE2 node roles from gui vs cli

**URL:** <https://forums.suse.com/t/rke2-node-roles-from-gui-vs-cli/44682>\
**Category:** SUSE Rancher Prime\
**Created:** [December 12, 2024, 12:34am UTC](https://forums.suse.com/t/rke2-node-roles-from-gui-vs-cli/44682 "2024-12-12T00:34:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rick\_Beldin](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rick_beldin/32/11797_2.png) [@Rick\_Beldin](https://forums.suse.com/u/Rick_Beldin)\
**Post date:** [December 12, 2024, 12:34am UTC](https://forums.suse.com/t/rke2-node-roles-from-gui-vs-cli/44682/1 "2024-12-12T00:34:23Z")

</div>

When I create an RKE2 cluster from the gui, all nodes end up with a role:

rancher3:~ # kubectl get nodesNAME STATUS ROLES AGE VERSION  
rancher3 Ready control-plane,etcd,master,worker 13m v1.31.2+rke2r1  
rancher4 Ready control-plane,etcd,master,worker 5m1s v1.31.2+rke2r1  
rancher5 Ready control-plane,etcd,master,worker 5m14s v1.31.2+rke2r1  
rancher6 Ready control-plane,etcd,master,worker 5m36s v1.31.2+rke2r1

When I do the same with RKE2 cli, all the agent nodes end up with no role or status.

I have followed this document to setup the agent and server with the cli.

> **[Quick Start | RKE2](https://docs.rke2.io/install/quickstart)**
>
> This guide will help you quickly launch a cluster with default options.

I have gone back and relabeled the nodes, but I have seen conflicting reports about whether this works or should be done.

My intent in a home lab setup was to use rke2 cli method to setup a cluster and then import it to Rancher. There’s a difference in deployment that I can’t explain and hoping for some pointers.

Thanks.

---

<div class="post-metadata">

**Author:** ![Rick](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rick/32/11888_2.png) [@Rick](https://forums.suse.com/u/Rick)\
**Post date:** [January 10, 2025, 11:05pm UTC](https://forums.suse.com/t/rke2-node-roles-from-gui-vs-cli/44682/2 "2025-01-10T23:05:36Z")

</div>

Just reproduced it again by adding two new RKE2 nodes to the cluster. The two new nodes end up with no role, but the gui shows them as workers.

Is this expected behavior?

```auto

rancher3:~ # kubectl get nodes
NAME STATUS ROLES AGE VERSION
rancher3 Ready control-plane,etcd,master 28d v1.31.3+rke2r1
rancher4 Ready control-plane,etcd,worker 11d v1.31.3+rke2r1
rancher5 Ready etcd,worker 28d v1.31.3+rke2r1
rancher6 Ready etcd,worker 27d v1.31.3+rke2r1
rancher7 Ready <none> 172m v1.31.3+rke2r1
rancher8 Ready <none> 34m v1.31.3+rke2r1

```

 ![image](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/9/96f218d4a894ca4bacd5025985f307eb2f72b2a3.png)
