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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
B
Blog
Jina AI
Jina AI
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
美团技术团队
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
The Cloudflare Blog
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件
罗磊的独立博客
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
I
InfoQ
GbyAI
GbyAI
腾讯CDC
MongoDB | Blog
MongoDB | 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 Handle Rook-Ceph Upgrades in GitOps Pipelines
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

The Challenge of GitOps Upgrades

Rook upgrades require a specific order: CRDs first, then the operator, then the CephCluster image. GitOps tools apply all resources concurrently by default, which can break Rook upgrades.

Step 1: Structure the Upgrade as Sync Waves

Use ArgoCD sync waves to enforce ordering:

# crds.yaml
metadata:
  annotations:
    argocd.argoproj.io/sync-wave: "-10"

# operator.yaml
metadata:
  annotations:
    argocd.argoproj.io/sync-wave: "-5"

# cluster.yaml
metadata:
  annotations:
    argocd.argoproj.io/sync-wave: "0"

Step 2: Pre-Sync Health Gate

Add a pre-sync Job that verifies cluster health before the upgrade proceeds:

apiVersion: batch/v1
kind: Job
metadata:
  name: ceph-pre-upgrade-check
  namespace: rook-ceph
  annotations:
    argocd.argoproj.io/hook: PreSync
    argocd.argoproj.io/hook-delete-policy: HookSucceeded
spec:
  template:
    spec:
      serviceAccountName: rook-ceph-operator
      containers:
      - name: health-check
        image: rook/ceph:v1.14.0
        command:
        - /bin/bash
        - -c
        - |
          STATUS=$(ceph status --format json | python3 -c "import sys,json; d=json.load(sys.stdin); print(d['health']['status'])")
          if [ "$STATUS" != "HEALTH_OK" ]; then
            echo "Cluster is not healthy: $STATUS"
            exit 1
          fi
          echo "Pre-upgrade health check passed: $STATUS"
      restartPolicy: Never

Step 3: Version Bump Workflow

When upgrading, create a PR that changes only the version:

git checkout -b upgrade/rook-v1.14.0-ceph-v18.2.4

# Update operator image
sed -i 's/rook\/ceph:v1.13.0/rook\/ceph:v1.14.0/' base/operator.yaml

# Update Ceph version
sed -i 's/quay.io\/ceph\/ceph:v18.2.2/quay.io\/ceph\/ceph:v18.2.4/' base/cluster.yaml

git add base/operator.yaml base/cluster.yaml
git commit -m "upgrade: Rook v1.14.0, Ceph v18.2.4"
git push origin upgrade/rook-v1.14.0-ceph-v18.2.4

Step 4: Staged Rollout Across Environments

Use separate ArgoCD Applications per environment with manual sync gates:

# Staging syncs automatically
- cluster: staging
  syncPolicy:
    automated:
      prune: false
      selfHeal: true

# Production requires manual sync approval
- cluster: production
  syncPolicy: {}  # no automated sync

Promote to production only after staging succeeds:

# Check staging upgrade status
argocd app get rook-ceph-staging

# Manually sync production after verification
argocd app sync rook-ceph-production

Step 5: Post-Sync Verification

Add a post-sync hook to verify the upgrade succeeded:

apiVersion: batch/v1
kind: Job
metadata:
  name: ceph-post-upgrade-verify
  namespace: rook-ceph
  annotations:
    argocd.argoproj.io/hook: PostSync
    argocd.argoproj.io/hook-delete-policy: HookSucceeded
spec:
  template:
    spec:
      serviceAccountName: rook-ceph-operator
      containers:
      - name: verify
        image: rook/ceph:v1.14.0
        command:
        - /bin/bash
        - -c
        - |
          ceph version
          ceph status
          ceph osd versions

Summary

Rook-Ceph upgrades in GitOps pipelines require sync waves for ordering, pre-sync health gates to block upgrades on unhealthy clusters, and staged rollout across environments. Version bumps as dedicated PRs provide a clear audit trail and enable controlled promotion from staging to production.