Skip to Content
Dismiss
創新
專為 AI 打造的平台

整合式、自動化、可將資料轉化為高效情報。

深入了解
Dismiss
拉斯維加斯,6 月 16-18 日
Pure//Accelerate® 2026

探索如何完整釋放資料價值。 

立即報名

什麼是 Kubernetes 上的 Blue-green 部署?

Kubernetes 支援稱為藍綠色部署的軟體開發生命週期策略,這涉及在生產中同時運行應用程式的新舊版本。請繼續閱讀,了解什麼是藍綠色部署,以及為什麼您可能要為 Kubernetes 應用程式實施此策略。 

什麼是 Blue-green 部署?

藍綠色部署是一種軟體開發生命週期策略,它涉及在生產中同時運行新版本和舊版應用程式。部署後,使用者會從舊版(藍色)逐漸移轉至新版(綠色)的應用程式。 

為了快速提供軟體更新,開發人員需要一種方式來持續部署功能。傳統上,程式碼部署需要停機時間,因此在每週或每月的特定日期完成。此策略會減緩軟體的更新速度,並不支援持續交付。

Blue-green 部署環境可同時在生產環境中運行舊版和新版應用程式,以解決這個問題。藍色版本是舊應用程式,綠色版本是新的。使用者在部署後會慢慢移至新的綠色版本。將使用者移至新的綠色版本後,如果程式碼因錯誤或嚴重錯誤而必須復原至先前版本,則藍色版本可作為容錯移轉。

Blue-green vs. 運用 Kubernetes 進行部署

在許多企業環境中,生產作業在多台伺服器上運行。一個連續部署不同時運行多個版本,而是使用一個版本的應用程式,並個別更新每個伺服器。 

假設您的負載平衡器後面有兩台伺服器,並運行單一生產應用程式。在循環式部署中,開發人員會將一台伺服器停止運轉,更新應用程式,然後讓伺服器重新運轉。第二台伺服器被輪流移除,然後進行更新。大多數循環環境都有三個伺服器,因此單一伺服器可以作為故障轉移,以防新版本環境中出現錯誤。

Blue-green vs. Canary 與 Kubernetes

全能部署與藍綠色部署類似,但全能部署會將特定使用者傳送至較新的應用程式版本,而非緩慢地將所有使用者移至新版本。這是測試新應用程式的絕佳策略,使用者有興趣測試 Beta 版,或對新使用者無聲測試新功能,以獲得意見回饋。

通常,一小部分使用者使用根管部署,而原始版本仍運行於大多數使用者。因為只有一小部分使用者被導向新版本,基礎架構成本較低,且不需要太過先進,無法支援少數使用者。

Blue-green 部署的優勢

在任何持續交付環境中,藍綠色部署都具有多項優勢。Blue-green 部署可加速應用程式功能更新。開發人員不再需要等待窗口來部署新的程式碼,這可能會延遲部署數個月。

在三種部署類型中,藍綠色部署比其他部署方式更安全。這兩個版本的應用程式同時運行,因此開發人員可以毫不費力地復原變更。使用者在部署或復原期間不會遇到停機時間或生產力損失。

Blue-green 部署的缺點

藍綠色部署的最大缺點是費用。公司必須擁有 IT 預算,才能支付可同時託管藍色和綠色版本應用程式的雙重環境。組織還支付員工管理費,以維護和監控兩種環境。

資料庫同步是企業的另一個障礙。資料庫變更不易復原,因此必須謹慎更新表格和資料庫架構,尤其是在綠色和藍色環境都使用相同的資料庫時。部署到生產資料庫前,必須仔細測試兩種環境。

使用藍綠色部署搭配 Kubernetes 的時機

持續交付和 Kubernetes 齊頭並進。開發人員可以使用 Kubernetes 等調度工具自動部署應用程式。Kubernetes 可用來調度藍色和綠色環境,開發人員只需部署程式碼,讓 Kubernetes 管理從預備環境到生產的推廣程式碼。

容器化環境非常適合藍綠色部署,使其能夠快速銷毀和重建應用程式 Pod,以便運行藍或綠版本。如果容器應用程式發生錯誤,開發人員可以更輕鬆地將變更復原至藍色版本。

04/2026
Accelerate Banking Transformation with Portworx
Banks need to manage data at scale without compromising on performance or security. Build a platform to automate, protect, and unify container data management at scale.
解決方案簡介
4 頁

查看重要資訊與活動

商展
Pure//Accelerate® 2026
June 16-18, 2026 | Resorts World Las Vegas

準備好參加今年度為您帶來最大價值的活動了嗎?

立即報名
PURE360 示範
探索、認識、體驗 Everpure。

存取隨取隨用影片與示範,了解 Everpure 的強大功效。

觀賞示範影片
影片
觀看影片:企業級資料雲端的價值。

Charlie Giancarlo 討論管理為何管理資料才是未來趨勢,而非儲存設備。發掘整合式做法如何革新企業級 IT 作業。

立即觀看
資源
傳統儲存裝置無法驅動未來。

現代化工作負載需求必須達到 AI 級速度、安全性與規模。您的技術棧準備好了嗎?

進行評估
您的瀏覽器已不受支援!

較舊版的瀏覽器通常存在安全風險。為讓您使用我們網站時得到最佳體驗,請更新為這些最新瀏覽器其中一個。

Personalize for Me
Steps Complete!
1
2
3
Personalize your Everpure experience
Select a challenge, or skip and build your own use case.
迎向未來的虛擬化策略

因應所有需求的儲存方案

任意規模皆可實行 AI 專案

資料管道、訓練、推論專用的高效能儲存裝置

防護資料遺失問題

保衛資料的網路彈性解決方案

降低雲端作業成本

Azure、AWS 與私有雲專用的高成本效益儲存裝置

加速應用程式與資料庫效能

低延遲儲存裝置,達成應用程式高效能

降低資料中心耗能與空間使用

高效資源運用的儲存裝置,改善資料中心運用率

Confirm your outcome priorities
Your scenario prioritizes the selected outcomes. You can modify or choose next to confirm.
Primary
Reduce My Storage Costs
Lower hardware and operational spend.
Primary
Strengthen Cyber Resilience
Detect, protect against, and recover from ransomware.
Primary
Simplify Governance and Compliance
Easy-to-use policy rules, settings, and templates.
Primary
Deliver Workflow Automation
Eliminate error-prone manual tasks.
Primary
Use Less Power and Space
Smaller footprint, lower power consumption.
Primary
Boost Performance and Scale
Predictability and low latency at any size.
What’s your role and industry?
We've inferred your role based on your scenario. Modify or confirm and select your industry.
Select your industry
Financial services
Government
Healthcare
Education
Telecommunications
Automotive
Hyperscaler
Electronic design automation
Retail
Service provider
Transportation
Which team are you on?
Technical leadership team
Defines the strategy and the decision making process
Infrastructure and Ops team
Manages IT infrastructure operations and the technical evaluations
Business leadership team
Responsible for achieving business outcomes
Security team
Owns the policies for security, incident management, and recovery
Application team
Owns the business applications and application SLAs
Describe your ideal environment
Tell us about your infrastructure and workload needs. We chose a few based on your scenario.
Select your preferred deployment
Hosted
Dedicated off-prem
On-prem
Your data center + edge
Public cloud
Public cloud only
Hybrid
Mix of on-prem and cloud
Select the workloads you need
Databases
Oracle, SQL Server, SAP HANA, open-source

Key benefits:

  • Instant, space-efficient snapshots

  • Near-zero-RPO protection and rapid restore

  • Consistent, low-latency performance

 

AI/ML and analytics
Training, inference, data lakes, HPC

Key benefits:

  • Predictable throughput for faster training and ingest

  • One data layer for pipelines from ingest to serve

  • Optimized GPU utilization and scale
Data protection and recovery
Backups, disaster recovery, and ransomware-safe restore

Key benefits:

  • Immutable snapshots and isolated recovery points

  • Clean, rapid restore with SafeMode™

  • Detection and policy-driven response

 

Containers and Kubernetes
Kubernetes, containers, microservices

Key benefits:

  • Reliable, persistent volumes for stateful apps

  • Fast, space-efficient clones for CI/CD

  • Multi-cloud portability and consistent ops
Cloud
AWS, Azure

Key benefits:

  • Consistent data services across clouds

  • Simple mobility for apps and datasets

  • Flexible, pay-as-you-use economics

 

Virtualization
VMs, vSphere, VCF, vSAN replacement

Key benefits:

  • Higher VM density with predictable latency

  • Non-disruptive, always-on upgrades

  • Fast ransomware recovery with SafeMode™

 

Data storage
Block, file, and object

Key benefits:

  • Consolidate workloads on one platform

  • Unified services, policy, and governance

  • Eliminate silos and redundant copies

 

What other vendors are you considering or using?
Thinking...
Your personalized, guided path
Get started with resources based on your selections.