惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
A
About on SuperTechFans
量子位
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
Google Developers Blog
U
Unit 42
D
DataBreaches.Net
博客园 - Franky
D
Docker
宝玉的分享
宝玉的分享
Y
Y Combinator Blog
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Hugging Face - Blog
Hugging Face - Blog

OneUptime Blog

How to Monitor Azure App Services (PaaS) with OpenTelemetry Grafana Stack vs OneUptime: DIY Observability or Unified Platform? Your AI Workloads Are About to Blow Up Your Observability Bill The Great Observability Consolidation Is Here How to Write Custom Object Classes for Ceph How to Write Custom Ceph Manager Modules How to Write a ceph.conf Configuration File How to Use Rook-Ceph with OpenShift How to Use Rook-Ceph with Longhorn for Comparison How to Configure Volume Snapshot Class for RBD in Rook How to Configure VolumeReplicationClass Scheduling Intervals in Rook How to Set Up Volume Replication with Rook-Ceph How to Create Volume Group Snapshots with Rook CSI How to Visualize Ceph Network Performance in Grafana How to Enable Virtual Host-Style Bucket Access in Rook How to View Runtime Configuration via Admin Socket How to View Quota Settings and Update Stats in Ceph RGW How to View PG Scaling Recommendations with autoscale-status How to View PG Distribution via Admin Socket How to View Performance Metrics in the Ceph Dashboard How to View OSD Performance Counters in Ceph How to View Connection Status via Admin Socket How to View Ceph Cluster Summary Dashboard via CLI How to Version Control Rook-Ceph Configuration How to Version Control Ceph Infrastructure with Terraform How to Verify Kubernetes Node Requirements for Rook-Ceph Deployment How to Verify Health Before and After Rook Upgrades How to Verify Data Integrity with Deep Scrubbing How to Verify Complete Rook-Ceph Cleanup How to Verify Backup Integrity from Ceph Snapshots
How to Upgrade External Cluster Connections in Rook
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

Overview

When you run Rook in external cluster mode, the consumer Kubernetes cluster connects to an independently managed Ceph cluster. Over time, the provider cluster may be upgraded to a new Ceph version, monitor endpoints may change, or credentials may rotate. This guide explains how to update the external cluster connection in Rook without disrupting running workloads.

When to Update the External Connection

You need to refresh the external connection when:

  • The Ceph provider cluster is upgraded to a new major version
  • Monitor IP addresses or hostnames change
  • Client keyrings are rotated for security reasons
  • New pools or CephFS filesystems are added to the provider

Step 1 - Re-export Config from the Provider

Run the export script again on the provider cluster to generate fresh credentials and updated monitor endpoints:

python3 create-external-cluster-resources.py \
  --rbd-data-pool-name replicapool \
  --namespace rook-ceph-external \
  --format bash \
  > updated-external-config.sh

Review the diff between the old and new config:

diff external-cluster-config.sh updated-external-config.sh

Step 2 - Update Kubernetes Secrets on the Consumer

Apply the updated secrets to the consumer cluster. The script will use kubectl apply which updates existing secrets in-place:

kubectl config use-context consumer-cluster
bash updated-external-config.sh

To manually update a specific secret with new monitor addresses:

kubectl -n rook-ceph-external create secret generic rook-ceph-mon \
  --from-literal=ceph-username=client.healthchecker \
  --from-literal=ceph-secret=<new-key> \
  --dry-run=client -o yaml | kubectl apply -f -

Step 3 - Update the ConfigMap with New Monitor Endpoints

If monitor IPs changed, update the ConfigMap that stores monitor addresses:

kubectl -n rook-ceph-external edit configmap rook-ceph-mon-endpoints

Or patch it directly:

kubectl -n rook-ceph-external patch configmap rook-ceph-mon-endpoints \
  --type merge \
  -p '{"data":{"data":"a=192.168.2.1:6789,b=192.168.2.2:6789,c=192.168.2.3:6789"}}'

Step 4 - Restart the Rook Operator

After updating secrets and ConfigMaps, restart the Rook operator to pick up the new configuration:

kubectl -n rook-ceph rollout restart deployment/rook-ceph-operator
kubectl -n rook-ceph rollout status deployment/rook-ceph-operator

Step 5 - Update the CephCluster Spec for New Ceph Version

If the provider Ceph version changed, update the CephCluster CRD's expected version so Rook health checks use the correct version comparison:

apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
  name: rook-ceph-external
  namespace: rook-ceph-external
spec:
  external:
    enable: true
  cephVersion:
    image: quay.io/ceph/ceph:v18.2.0
kubectl apply -f external-cephcluster.yaml

Step 6 - Verify Reconnection

Confirm the consumer cluster reconnects successfully:

kubectl -n rook-ceph-external get cephcluster
kubectl -n rook-ceph-external describe cephcluster rook-ceph-external | grep -i phase

# Check CSI driver connectivity
kubectl -n rook-ceph get pods | grep csi

Summary

Upgrading external cluster connections in Rook involves re-exporting credentials from the provider, updating Kubernetes secrets and ConfigMaps in the consumer cluster, and restarting the Rook operator. Monitor endpoint changes require updating the rook-ceph-mon-endpoints ConfigMap explicitly. After any credential or endpoint update, always verify the CephCluster status returns to Connected before considering the upgrade complete.