# Problem importing rke2 cluster

**URL:** <https://forums.suse.com/t/problem-importing-rke2-cluster/39333>\
**Category:** SUSE Rancher Prime\
**Created:** [November 1, 2022, 10:51am UTC](https://forums.suse.com/t/problem-importing-rke2-cluster/39333 "2022-11-01T10:51:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neil](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@Neil](https://forums.suse.com/u/Neil)\
**Post date:** [November 1, 2022, 10:51am UTC](https://forums.suse.com/t/problem-importing-rke2-cluster/39333/1 "2022-11-01T10:51:56Z")

</div>

Hi

I have a problem importing a v1.24.7+rke2r1 cluster into Rancher v2.6.9.  
The cluster is stuck on Pending and the only error I get on the cattle-cluster-agent on the master node is the following.

Error from server (BadRequest): container “cluster-register” in pod “cattle-cluster-agent-58cb9d87bd-zb4sr” is waiting to start: trying and failing to pull image

Can someone provide some assistance please ?

---

<div class="post-metadata">

**Author:** ![Neil](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@Neil](https://forums.suse.com/u/Neil)\
**Post date:** [November 2, 2022, 12:28pm UTC](https://forums.suse.com/t/problem-importing-rke2-cluster/39333/2 "2022-11-02T12:28:47Z")

</div>

I managed to sort out the problem.  
My nodes did not have access to the online repository.

---

<div class="post-metadata">

**Author:** ![Diego23](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@Diego23](https://forums.suse.com/u/Diego23)\
**Post date:** [November 7, 2022, 2:34pm UTC](https://forums.suse.com/t/problem-importing-rke2-cluster/39333/3 "2022-11-07T14:34:14Z")

</div>

To import rke2 cluster is quite easy if it come in front of you just have look into this and fix it ASAP.:

Installing rke2 cluster was done with the following steps:  
sudo mkdir -p /etc/rancher/rke2 &&   
sudo vi /etc/rancher/rke2/config.yaml  
tls-san:

- 

token:   
server: https://:9345

curl -sfL [https://raw.githubusercontent.com/rancher/rke2/master/install.sh](https://raw.githubusercontent.com/rancher/rke2/master/install.sh) -o install.sh &&   
chmod +x install.sh

sudo INSTALL\_RKE2\_VERSION=v1.18.4-beta16+rke2 INSTALL\_RKE2\_TYPE=‘server’ INSTALL\_RKE2\_METHOD=‘installer’ ./install.sh

The contents of config.yaml should only include `token` and `server` values when adding additional server nodes. Also, if adding agent node, it’s the same but without `tls-san` value and then one change on the final command for: `INSTALL_RKE2_TYPE='agent'`
