Skip to content

Commit

Permalink
Merge pull request #1521 from moio/disconnected_best_practice
Browse files Browse the repository at this point in the history
Add disconnected cluster best practices guide
  • Loading branch information
btat authored Nov 6, 2024
2 parents d238eac + 8c40500 commit f748b8a
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Best Practices for Disconnected Clusters
---

<head>
<link rel="canonical" href="https://ranchermanager.docs.rancher.com/reference-guides/best-practices/disconnected-clusters"/>
</head>

Rancher supports managing clusters that may not always be online due to network disruptions, control plane availability, or because all cluster nodes are down. At the moment there are no known issues with disconnected clusters in the latest released Rancher version.

While a managed cluster is disconnected from Rancher, management operations will be unavailable, and the Rancher UI will not allow navigation to the cluster. However, once the connection is reestablished, functionality is fully restored.

### Best Practices for Managing Disconnected Clusters

- **Cluster Availability During Rancher Upgrades**: It is recommended to have all, or at least most, managed clusters online during a Rancher upgrade. The reason is that upgrading Rancher automatically upgrades the Rancher agent software running on managed clusters. Keeping the agent and Rancher versions aligned ensures consistent functionality. Any clusters that are disconnected during the upgrade will have their agents updated as soon as they reconnect.

- **Cleaning Up Disconnected Clusters**: Regularly remove clusters that will no longer reconnect to Rancher (e.g., clusters that have been decommissioned or destroyed). Keeping such clusters in the Rancher management system consumes unnecessary resources, which could impact Rancher's performance over time.

- **Certificate Rotation Considerations**: When designing processes that involve regularly shutting down clusters, whether connected to Rancher or not, take into account certificate rotation policies. For example, RKE/RKE2/K3s clusters may rotate certificates on startup if they exceeded their lifetime.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Refer to [this guide](logging-best-practices.md) for our recommendations for clu

Configuring sensible monitoring and alerting rules is vital for running any production workloads securely and reliably. Refer to this [guide](monitoring-best-practices.md) for our recommendations.

### Disconnected clusters

Rancher supports managing clusters that may not always be online due to network disruptions, control plane availability, or because all cluster nodes are down. Refer to this [guide](disconnected-clusters.md) for our recommendations.

### Tips for Setting Up Containers

Running well-built containers can greatly impact the overall performance and security of your environment. Refer to this [guide](tips-to-set-up-containers.md) for tips.
Expand Down
3 changes: 2 additions & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,8 @@ const sidebars = {
"reference-guides/best-practices/rancher-managed-clusters/logging-best-practices",
"reference-guides/best-practices/rancher-managed-clusters/monitoring-best-practices",
"reference-guides/best-practices/rancher-managed-clusters/tips-to-set-up-containers",
"reference-guides/best-practices/rancher-managed-clusters/rancher-managed-clusters-in-vsphere"
"reference-guides/best-practices/rancher-managed-clusters/rancher-managed-clusters-in-vsphere",
"reference-guides/best-practices/rancher-managed-clusters/disconnected-clusters"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Best Practices for Disconnected Clusters
---

<head>
<link rel="canonical" href="https://ranchermanager.docs.rancher.com/reference-guides/best-practices/disconnected-clusters"/>
</head>

Rancher supports managing clusters that may not always be online due to network disruptions, control plane availability, or because all cluster nodes are down. At the moment there are no known issues with disconnected clusters in the latest released Rancher version.

While a managed cluster is disconnected from Rancher, management operations will be unavailable, and the Rancher UI will not allow navigation to the cluster. However, once the connection is reestablished, functionality is fully restored.

### Best Practices for Managing Disconnected Clusters

- **Cluster Availability During Rancher Upgrades**: It is recommended to have all, or at least most, managed clusters online during a Rancher upgrade. The reason is that upgrading Rancher automatically upgrades the Rancher agent software running on managed clusters. Keeping the agent and Rancher versions aligned ensures consistent functionality. Any clusters that are disconnected during the upgrade will have their agents updated as soon as they reconnect.

- **Cleaning Up Disconnected Clusters**: Regularly remove clusters that will no longer reconnect to Rancher (e.g., clusters that have been decommissioned or destroyed). Keeping such clusters in the Rancher management system consumes unnecessary resources, which could impact Rancher's performance over time.

- **Certificate Rotation Considerations**: When designing processes that involve regularly shutting down clusters, whether connected to Rancher or not, take into account certificate rotation policies. For example, RKE/RKE2/K3s clusters may rotate certificates on startup if they exceeded their lifetime.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Refer to [this guide](logging-best-practices.md) for our recommendations for clu

Configuring sensible monitoring and alerting rules is vital for running any production workloads securely and reliably. Refer to this [guide](monitoring-best-practices.md) for our recommendations.

### Disconnected clusters

Rancher supports managing clusters that may not always be online due to network disruptions, control plane availability, or because all cluster nodes are down. Refer to this [guide](disconnected-clusters.md) for our recommendations.

### Tips for Setting Up Containers

Running well-built containers can greatly impact the overall performance and security of your environment. Refer to this [guide](tips-to-set-up-containers.md) for tips.
Expand Down
3 changes: 2 additions & 1 deletion versioned_sidebars/version-2.9-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,8 @@
"reference-guides/best-practices/rancher-managed-clusters/logging-best-practices",
"reference-guides/best-practices/rancher-managed-clusters/monitoring-best-practices",
"reference-guides/best-practices/rancher-managed-clusters/tips-to-set-up-containers",
"reference-guides/best-practices/rancher-managed-clusters/rancher-managed-clusters-in-vsphere"
"reference-guides/best-practices/rancher-managed-clusters/rancher-managed-clusters-in-vsphere",
"reference-guides/best-practices/rancher-managed-clusters/disconnected-clusters"
]
}
]
Expand Down

0 comments on commit f748b8a

Please sign in to comment.