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

推荐订阅源

V
V2EX
Y
Y Combinator Blog
博客园_首页
V
Visual Studio Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
宝玉的分享
宝玉的分享
B
Blog
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
WordPress大学
WordPress大学
L
LangChain Blog
爱范儿
爱范儿
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
C
Check Point Blog
博客园 - 聂微东
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Help Net Security

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 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 Use Rook-Ceph with Velero for Kubernetes Backup
How to Version Control Rook-Ceph Configuration
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

Why Version Control Rook Configuration

Version controlling Rook-Ceph configuration enables:

  • Audit trail of every configuration change
  • Rollback to known-good configurations
  • Review and approval workflow for storage changes
  • Multi-environment promotion with confidence

Repository Layout

A well-structured Rook configuration repository:

rook-ceph-config/
  README.md
  CHANGELOG.md
  base/
    namespace.yaml
    crds.yaml
    common.yaml
    operator.yaml
    cluster.yaml
    storageclass.yaml
    rbac.yaml
  pools/
    replicated-pool.yaml
    erasure-coded-pool.yaml
  filesystem/
    cephfs.yaml
    mds-storageclass.yaml
  object/
    object-store.yaml
    rgw-storageclass.yaml
  monitoring/
    prometheus-rules.yaml
    grafana-dashboards/
      ceph-cluster.json

Tagging Configuration Versions

Use Git tags aligned with the exact Rook and Ceph versions you deploy:

git tag -a rook-v1.14.0-ceph-v18.2.4-20240724 -m "Rook 1.14.0 with Ceph 18.2.4-20240724 - production"
git push origin rook-v1.14.0-ceph-v18.2.4-20240724

Track the intended versions in Git alongside the manifests:

# In cluster.yaml, track the intended Ceph image; track the Rook operator image in operator.yaml
# Ceph: v18.2.4-20240724 | Rook operator: v1.14.0 | Updated: 2026-03-31
spec:
  cephVersion:
    image: quay.io/ceph/ceph:v18.2.4-20240724

Capturing Live Configuration for Audit

If you have the kubectl neat plugin installed, export the live configuration to Git periodically:

#!/bin/bash
# Export key Rook resources to files for version control
kubectl -n rook-ceph get cephcluster rook-ceph -o yaml \
  | kubectl neat > base/cluster-live.yaml

kubectl -n rook-ceph get cephblockpool -o yaml \
  | kubectl neat > pools/pools-live.yaml

git add -A
git commit -m "chore: export live Rook config snapshot $(date +%Y-%m-%d)"

Branch Strategy for Changes

Use feature branches for any configuration change:

# Create a branch for the change
git checkout -b feat/add-ssd-pool

# Make changes to the pool configuration
# ...edit pools/ssd-pool.yaml...

git add pools/ssd-pool.yaml
git commit -m "feat: add SSD-backed pool for high-performance workloads"
git push origin feat/add-ssd-pool

# Open a PR - requires approval before merging

Preventing Configuration Drift

Use ArgoCD self-heal to reconcile drift in managed resources:

spec:
  syncPolicy:
    automated:
      selfHeal: true
      prune: false

Set up a weekly diff check:

argocd app diff rook-ceph --hard-refresh
# Any differences indicate configuration drift

Summary

Version controlling Rook-Ceph configuration requires a structured repository layout, Git tagging aligned with the exact Rook and Ceph versions you deploy, and a branch-and-review workflow for changes. Combined with ArgoCD self-healing and regular diff checks, this helps keep managed resources aligned with the intended configuration stored in Git.