/
Redeploy Cluster-cattle-agent pod

Redeploy Cluster-cattle-agent pod

Motivation

  1. Customer cluster is shown as unavailable in rancher master for no obvious reason (no issue on network, firewall side)

  2. Customer can receive update with fleet but cluster shown as unavailable and message is cluster agent is not connected

Redeploying cluster-cattle-agent

  1. Get cluster ID for downstream cluster

  2. On the management cluster find cluster ID with the below command to ensure that ID is good

    kubectl get clusters.management.cattle.io =><REPLACE_WITH_CLUSTERID>
  3. Apply below command, this command should trigger redeploy of image and settings for cluster-cattle-agent

    kubectl patch clusters.management.cattle.io <REPLACE_WITH_CLUSTERID> -p '{"status":{"agentImage":"dummy"}}' --type merge
  4. Wait for some time (15-30 min) to ensure that cluster return to available state

Related content

Configuring Rancher and Fleet agent to run behind a HTTP proxy if cluster was previously registered
Configuring Rancher and Fleet agent to run behind a HTTP proxy if cluster was previously registered
More like this
Prerequisites for k3s on RHEL/CentOS/Oracle Linux
Prerequisites for k3s on RHEL/CentOS/Oracle Linux
Read with this
Re-register cluster in rancher
Re-register cluster in rancher
More like this
Register a Customer in Rancher without a Licensing Portal – Reseller
Register a Customer in Rancher without a Licensing Portal – Reseller
Read with this
Configuring Rancher and Fleet agent to run behind a HTTP proxy
Configuring Rancher and Fleet agent to run behind a HTTP proxy
Read with this

Classified as Getvisibility - Partner/Customer Confidential