# OpenShift

**OpenShift** 是红帽（Red Hat）开发的一系列混合云应用平台，构建于红帽企业Linux（RHEL）与[Kubernetes](https://www.edgepedia.org/zh/kubernetes)容器编排器之上，为在数据中心、公有云和边缘位置开发、部署和运行容器化及虚拟化工作负载提供集成工具、安全控制和企业级支持。<sup>[1](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/release_notes/ocp-4-21-release-notes)</sup><sup> • </sup><sup>[2](https://www.itpro.com/enterprise-applications/31654/what-is-kubernetes)</sup>

| 关键事实 | 详情 |
|---|---|
| 基础 | 构建于红帽企业Linux（RHEL）和Kubernetes之上，为企业应用提供多租户操作系统，并集成运行时与库<sup>[1](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/release_notes/ocp-4-21-release-notes)</sup> |
| 节点操作系统 | 使用红帽企业Linux CoreOS（RHCOS），这是一种面向容器的操作系统，专为运行容器化应用而设计，采用基于Operator的管理方式和简化的升级流程<sup>[3](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/architecture/architecture)</sup> |
| 扩展机制 | Operator，通过自定义资源定义对Kubernetes应用进行打包、部署和管理，可从Web控制台的OperatorHub中通过目录安装<sup>[4](https://docs.redhat.com/en/documentation/red_hat_openshift_service_on_aws_classic_architecture/4/pdf/operators/Red_Hat_OpenShift_Service_on_AWS_classic_architecture-4-Operators-en-US.pdf)</sup><sup> • </sup><sup>[5](https://docs.redhat.com/en/documentation/openshift_container_platform/4.16/html/architecture/control-plane)</sup> |
| 安全模型 | 安全上下文约束（SCC）规定Pod可以执行哪些操作，例如主机网络，以及某个命名空间可以使用的UID和SELinux上下文<sup>[6](https://docs.redhat.com/en/documentation/openshift_container_platform/4.15/html/authentication_and_authorization/managing-pod-security-policies)</sup> |
| 托管服务 | 以托管服务形式在公有云上提供，包括AWS上的红帽OpenShift服务（ROSA）、Azure红帽OpenShift（ARO）和OpenShift Dedicated<sup>[7](https://www.youtube.com/watch?v=Tr27_2CRLF4)</sup> |
| 报告成效 | 保险公司Employers报告称，在将流程和应用标准化到OpenShift上之后，其三年期销售额增长了40%<sup>[8](https://www.redhat.com/en/resources/employers-case-study)</sup> |

## 架构

OpenShift容器平台运行在负责管理集群的控制平面机器上，升级由集群版本Operator（CVO）、机器配置Operator以及一组独立的Operator负责。<sup>[9](https://docs.redhat.com/en/documentation/openshift_container_platform/4.9/html/architecture/control-plane)</sup> 该平台在其节点上使用RHCOS——这是一种面向容器的操作系统，其配置通过OpenShift和基于Kubernetes的API进行编排——并由kubelet充当启动和监控容器的主要节点代理。<sup>[3](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/architecture/architecture)</sup>

**Operator与Web控制台。** Operator把人类的运维知识编码进软件，打包后与客户共享。<sup>[10](https://docs.redhat.com/en/documentation/openshift_container_platform/4.20/html-single/architecture/index)</sup> 集群管理员在Web控制台中通过OperatorHub从目录安装Operator，并由Operator生命周期管理器（OLM）对其进行管理；OLM不管理构成OpenShift本身的那些集群Operator，后者以ClusterOperator对象的形式呈现，可在“管理”→“集群设置”下查看。<sup>[5](https://docs.redhat.com/en/documentation/openshift_container_platform/4.16/html/architecture/control-plane)</sup><sup> • </sup><sup>[11](https://docs.redhat.com/en/documentation/openshift_container_platform/4.8/pdf/architecture/OpenShift_Container_Platform-4.8-Architecture-en-US.pdf)</sup> 在网络方面，路由以某个主机名对外暴露服务，使外部客户端能够访问运行在Pod中的应用。<sup>[10](https://docs.redhat.com/en/documentation/openshift_container_platform/4.20/html-single/architecture/index)</sup><sup> • </sup><sup>[12](https://docs.redhat.com/documentation/en-us/openshift_container_platform/3.11/pdf/architecture/openshift_container_platform-3.11-architecture-en-us.pdf)</sup>

**语言与框架。** 该平台支持多种编程语言和框架，包括Java、JavaScript、Python、Ruby和PHP。<sup>[1](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/release_notes/ocp-4-21-release-notes)</sup>

## 安全

OpenShift在上游Kubernetes之上增加了安全控制。安全上下文约束（SCC）是该平台控制Pod权限的机制：管理员可以配置某个工作负载要求使用特定的SCC，而约束涵盖主机网络和主机端口等事项，这些仍然要求Pod以分配给该命名空间的UID和SELinux上下文运行。<sup>[6](https://docs.redhat.com/en/documentation/openshift_container_platform/4.15/html/authentication_and_authorization/managing-pod-security-policies)</sup> 这一准入层是OpenShift拥有而上游Kubernetes刻意缺失的部分之一，也是把工作负载迁移到原生Kubernetes集群时无法原样带走的部分之一。<sup>[13](https://stribog.com/blog/openshift-kubernetes-distribution-lock-in-exit-cost)</sup>

## 虚拟化与AI工作负载

**OpenShift虚拟化**让传统虚拟机与容器、无服务器工作负载在同一Kubernetes平台上并行运行，使用户在各类工作负载之间共享单一界面、工具集和一套运维实践。<sup>[14](https://www.itpro.com/cloud/cloud-computing/red-hat-google-cloud-eye-legacy-modernization-gains-with-partnership-expansion)</sup> 红帽提供了一份架构指南，涵盖托管虚拟机所需的基础设施与平台设计，包括通过容器存储接口（CSI）驱动提供的持久存储，以及实时迁移所需的存储类。<sup>[15](https://access.redhat.com/articles/7119411)</sup> OpenShift 4.21新增了跨集群虚拟机实时迁移，使运行中的虚拟机能够在集群之间迁移以进行维护而不中断服务，同时基于属性的GPU分配也正式可用。<sup>[16](https://www.youtube.com/watch?v=QVz4dHSBVys)</sup> 根据红帽2026年5月的路线图更新，随着各组织从传统虚拟机管理程序迁移，已完成的迁移评估超过100万次。<sup>[7](https://www.youtube.com/watch?v=Tr27_2CRLF4)</sup>

4.21版本将该平台定位为覆盖整个项目生命周期的枢纽，红帽称之为“从裸金属到模型”，并包含可缩容至零和从零扩容的自动伸缩能力，在不需要容量时降低云成本。<sup>[16](https://www.youtube.com/watch?v=QVz4dHSBVys)</sup>

## 托管服务与云集成

OpenShift既可以作为自管理产品使用，也可以通过主流公有云上的托管服务使用：AWS上的ROSA、Azure红帽OpenShift（ARO）和OpenShift Dedicated（OSD）。<sup>[7](https://www.youtube.com/watch?v=Tr27_2CRLF4)</sup> 2026年3月，红帽扩大了与Google Cloud的合作，将OpenShift与Google Cloud控制台集成，支持通过Google Cloud Marketplace按用量付费计费——将红帽订阅费用计入Google Cloud支出——并新增对Google Cloud密钥管理器、证书颁发机构服务和工作负载身份联合的支持。<sup>[14](https://www.itpro.com/cloud/cloud-computing/red-hat-google-cloud-eye-legacy-modernization-gains-with-partnership-expansion)</sup> 作为此次扩展的一部分，OpenShift虚拟化也已在Google Cloud上的红帽OpenShift Dedicated上提供。<sup>[14](https://www.itpro.com/cloud/cloud-computing/red-hat-google-cloud-eye-legacy-modernization-gains-with-partnership-expansion)</sup>

## 采用情况

客户案例研究横跨金融、电信、保险和公共部门。三星（Samsung）使用OpenShift容器平台和OpenShift数据基础构建了一致的混合云环境，以支撑5G和边缘网络，并计划使用红帽高级集群管理，在多节点、三节点和单节点集群之间实现统一视图。<sup>[17](https://www.redhat.com/en/resources/samsung-propels-5g-case-study)</sup> IBM的CIO组织于2019年开始现代化改造，在IBM Cloud上用OpenShift构建混合云平台，运行的用例包括公司内网、安全日志分析和设备遥测管道。<sup>[18](https://www.ibm.com/case-studies/ibm-cio-organization-hybrid-cloud)</sup> 红帽自家的IT团队在OpenShift Enterprise上部署了近1100个应用，供1000多名红帽员工使用，涵盖从培训和实验环境到会议室预订应用等各种用途。<sup>[19](https://www.redhat.com/en/blog/the-openshift-journey-a-tale-of-cloud-devops-microservices-and-containers)</sup> IDC在2019年5月的一份报告中提到，开发者表示在AWS上使用OpenShift后生产效率提升了60%至70%。<sup>[20](https://people.redhat.com/bhinson/presentations/openshift/OpenShift-Kubernetes-Platform-for-Big-Ideas.pdf)</sup>

## OpenShift与原生Kubernetes的比较

OpenShift容器平台4.22相当于Kubernetes 1.35外加一层红帽工具。Deployment、Service、ConfigMap、StatefulSet、PVC和NetworkPolicy等标准Kubernetes对象可以原样迁移到任何符合规范的集群，因此离开OpenShift的代价集中在一小部分`openshift.io` API组以及上游Kubernetes并不包含的安全准入层上。<sup>[13](https://stribog.com/blog/openshift-kubernetes-distribution-lock-in-exit-cost)</sup>

## 近期进展

红帽2026年5月的路线图更新描述了该平台在未来6至18个月内的方向，包括有人工监督的智能体AI工作流、软件供应链安全、机密计算、后量子密码学就绪、托管控制平面（HCP）、跳级升级、5年延长生命周期支持模式，以及面向电信和边缘部署的EVPN和BGP网络。<sup>[7](https://www.youtube.com/watch?v=Tr27_2CRLF4)</sup>

## References

1. [OpenShift Container Platform 4.21 release notes, Red Hat Documentation](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/release_notes/ocp-4-21-release-notes)
2. [What is Kubernetes?, ITPro](https://www.itpro.com/enterprise-applications/31654/what-is-kubernetes)
3. [Chapter 2. OpenShift Container Platform architecture, 4.21, Red Hat Documentation](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/architecture/architecture)
4. [Red Hat OpenShift Service on AWS classic architecture 4: Operators, Red Hat Documentation](https://docs.redhat.com/en/documentation/red_hat_openshift_service_on_aws_classic_architecture/4/pdf/operators/Red_Hat_OpenShift_Service_on_AWS_classic_architecture-4-Operators-en-US.pdf)
5. [Chapter 6. Control plane architecture, OpenShift Container Platform 4.16, Red Hat Documentation](https://docs.redhat.com/en/documentation/openshift_container_platform/4.16/html/architecture/control-plane)
6. [Chapter 15. Managing security context constraints, OpenShift Container Platform 4.15, Red Hat Documentation](https://docs.redhat.com/en/documentation/openshift_container_platform/4.15/html/authentication_and_authorization/managing-pod-security-policies)
7. [What's Next: OpenShift Roadmap Update (May 2026), OpenShift on YouTube](https://www.youtube.com/watch?v=Tr27_2CRLF4)
8. [Employers centralizes insurance apps on Red Hat OpenShift, Red Hat case study](https://www.redhat.com/en/resources/employers-case-study)
9. [Chapter 5. Control plane architecture, OpenShift Container Platform 4.9, Red Hat Documentation](https://docs.redhat.com/en/documentation/openshift_container_platform/4.9/html/architecture/control-plane)
10. [Architecture, OpenShift Container Platform 4.20, Red Hat Documentation](https://docs.redhat.com/en/documentation/openshift_container_platform/4.20/html-single/architecture/index)
11. [OpenShift Container Platform 4.8 Architecture, Red Hat Documentation](https://docs.redhat.com/en/documentation/openshift_container_platform/4.8/pdf/architecture/OpenShift_Container_Platform-4.8-Architecture-en-US.pdf)
12. [OpenShift Container Platform 3.11 Architecture, Red Hat Documentation](https://docs.redhat.com/documentation/en-us/openshift_container_platform/3.11/pdf/architecture/openshift_container_platform-3.11-architecture-en-us.pdf)
13. [OpenShift vs Kubernetes: Pricing the Exit to Vanilla, Stribog](https://stribog.com/blog/openshift-kubernetes-distribution-lock-in-exit-cost)
14. [Red Hat, Google Cloud eye legacy modernization gains with partnership expansion, ITPro](https://www.itpro.com/cloud/cloud-computing/red-hat-google-cloud-eye-legacy-modernization-gains-with-partnership-expansion)
15. [OpenShift Virtualization Architecture Guide, Red Hat Customer Portal](https://access.redhat.com/articles/7119411)
16. [What's New In Red Hat OpenShift 4.21?, Red Hat on YouTube](https://www.youtube.com/watch?v=QVz4dHSBVys)
17. [Samsung propels 5G and edge networks with Red Hat OpenShift, Red Hat case study](https://www.redhat.com/en/resources/samsung-propels-5g-case-study)
18. [IBM CIO accelerates modernization with IBM Cloud VPC, IBM case study](https://www.ibm.com/case-studies/ibm-cio-organization-hybrid-cloud)
19. [The OpenShift Journey: A Tale of Cloud, DevOps, Microservices, and Containers, Red Hat blog](https://www.redhat.com/en/blog/the-openshift-journey-a-tale-of-cloud-devops-microservices-and-containers)
20. [Why OpenShift for hybrid and multi-cloud deployments? (IDC report citation), Red Hat presentation](https://people.redhat.com/bhinson/presentations/openshift/OpenShift-Kubernetes-Platform-for-Big-Ideas.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Cloud, virtualization, and containers

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/openshift

English original: https://www.edgepedia.org/openshift
