首页 > 数据库 > 数据库开发技术 > VMware Enterprise PKS(Pivotal Container Service)是一个企业级 Kubernetes 运行时平台,专为敏捷开发与云原生应用交付而优化
将现有基于 VMware Enterprise PKS 的 CI/CD 流水线平滑迁移到 Tanzu Kubernetes Grid (TKG),关键在于“分层解耦、渐进替换、能力对齐、验证闭环”。PKS 与 TKG 虽同源(均基于 BOSH/Kubernetes),但架构演进显著:PKS 是 Pivotal 主导的封闭式发行版,而 TKG 是 VMware 统一的、面向多云/边缘的现代化 Kubernetes 发行版,深度集成 Tanzu Mission Control(TMC)、Cluster API 和 Tanzu Developer Portal。
以下是可落地的迁移路径(含实操要点与避坑指南):
| 维度 | PKS 现状检查项 | TKG 对应能力 |
|---|---|---|
| 集群管理 | 是否使用 pks cli 创建/扩容集群?是否依赖 Ops Manager UI? | ✅ TKG 使用 tanzu cluster CLI + TMC 控制台;支持 Cluster API 驱动的声明式生命周期管理 |
| 网络插件 | 使用 NSX-T CNI?还是 Flannel?是否启用 NSX Policy? | ✅ TKG 原生支持 NSX-T CNI(v3.2+),且通过 tanzu network 插件启用微隔离策略 |
| 镜像仓库 | 是否集成 Harbor(PKS 内置)?是否启用 Clair 扫描/Notary 签名? | ✅ TKG 可复用原有 Harbor 实例,或通过 tanzu package install harbor-package 部署 Tanzu Harbor Registry(增强版) |
| CI/CD 集成点 | Jenkins/GitLab 中调用哪些 PKS API?如 pks get-credentials、pks create-cluster、kubectl config set-context? | ⚠️ 这些 pks 命令需全部替换为 tanzu cluster kubeconfig get / tanzu cluster create / kubectl --context=... |
🔍 工具检查清单:
- 升级
tanzuCLI 至 v2.6+(下载地址)- 确认目标 vSphere/vCenter 版本 ≥ 7.0 U3(TKG 2.4+ 最低要求)
- 备份 PKS BOSH Director DB 与 Harbor 数据库(用于审计追溯)
tanzu cluster create 部署一个小型 dev-tkg-cluster(与原 PKS dev 集群同规格);if $CI_ENV == "tkg" 分支逻辑;pks delete-cluster 前,确保所有应用已 100% 迁移,并完成以下验证:| 类别 | 风险点 | 解决方案 |
|---|---|---|
| 认证体系 | PKS 使用 UAA,TKG 默认使用 Dex + OIDC;UAA 用户无法直通登录 | ✅ 在 TMC 中配置 UAA 作为上游 IDP,或批量迁移用户至 LDAP/AD 同步源 |
| 存储类(StorageClass) | PKS 的 vsphere-with-k8s 存储类在 TKG 中不可用 | ✅ 使用 TKG 原生 csi.vsphere.vmware.com Driver,重新创建 StorageClass 并更新 PVC 模板 |
| Ingress 控制器 | PKS 默认 Nginx Ingress → TKG 推荐 Contour + Envoy(更契合 Gateway API) | ✅ 保留 Nginx(兼容)或逐步切至 Contour;使用 kubectl get gatewayclass 验证 Gateway API 支持 |
| 监控告警 | PKS 的 metrics-server + heapster 已废弃 | ✅ TKG 默认启用 metrics-server v0.6.x + prometheus-stack 包;对接现有 Grafana 需更新 datasource URL 为 https://tmc.example.com/proxy/clusters/<id>/api/v1/namespaces/monitoring/services/prometheus:9090/proxy |
pks 命令报错tanzu cluster list --include-management-cluster 显示集群状态 running 且 K8s Version 一致kubectl get pods -A 中 tkg-system, cert-manager, contour 命名空间全部 Runningkubectl get certificate)💡 Bonus:自动化迁移脚本片段(Bash)
VMware Enterprise PKS(Pivotal Container Service)是一个企业级 Kubernetes 运行时平台,专为敏捷开发与云原生应用交付而优化。构建面向敏捷开发的全面基础,需围绕自动化、可重复性、安全合规、持续交付与跨团队协作五大支柱展开。以下是关键实践路径:
✅ 1. 基础架构即代码(IaC)与声明式集群管理
✅ 2. 敏捷 CI/CD 流水线深度集成
✅ 3. 开发者自助服务门户(Dev Self-Service)
frontend-* 命名空间,且禁止 exec 权限)。✅ 4. 安全与合规内建(Shift-Left Security)
✅ 5. 敏捷赋能与组织协同
⚠️ 注意:VMware Enterprise PKS 已于 2023 年正式并入 VMware Tanzu Kubernetes Grid (TKG) 生态。当前推荐采用 TKG + Tanzu Mission Control + Tanzu Developer Portal 构建新一代敏捷平台基座,以获得长期支持与云原生演进能力。
Building a comprehensive foundation for agile development with VMware Enterprise PKS
Pivotal is now part of VMware, so some of these products and services are now part of VMware Tanzu. Learn more
The famous Hong Kong jewelry brand Chow Sang Sang gets its name from the Chinese classic philosophy text, Book of Changes. It means “everything is repeated, and life is endless.” Chow Sang Sang is passionate about jewelry, insisting not only on excellent quality, but also on instilling innovation and creativity. Over the past 80 years, Chow Sang Sang has made many breakthrough achievements, becoming the first jewelry company listed on the Hong Kong Stock Exchange (1973); the first jewelry brand to launch the Hello Kitty boutique Series (1997); and the first Hong Kong jewelry company to establish a brand website and online store (2001).
Online sales channels are critical to Chow Sang Sang. The company actively participates in e-commerce platforms such as Tmall and Jingdong. In 2017, its online sales continued to grow, reaching 14% of mainland sales. In 2018, Chow Sang Sang began promoting digital transformation, teaming with Pivotal to build a comprehensive foundation for agile development by adopting the latest VMware Enterprise PKS. Chow Sang Sang intends for the PKS containerised infrastructure to support physical stores and networks.
“Chow Sang Sang’s digital transformation and cooperation with Pivotal is a milestone,” said Donald Mak, CIO of Chow Sang Sang. The company developed its website using SAP Hybris’s standalone architecture 10 years ago, and recently, after almost a year, decided to implement their IT transformation plans. The Chow Sang Sang team constantly thinks about how to implement IT transformation. For the business transformation, IT capabilities are the core driver. Therefore, Chow Sang Sang works with Pivotal, VMware, and Dell to establish a private cloud platform and seamlessly connect with the public cloud. With this, DevOps automation is realised, from software development to operation, and they can now fully automate and catch up with business transformation with agile IT.
Photos by Chow Sang Sang
The challenge of digital transformation
Consumers are becoming savvier, mainly because of the existence of e-commerce channels. Mak explained that Chow Sang Sang began to actively enter the channels of Tmall, JD.com, and Vipshop 10 years ago. Sales achieved rapid growth, but it also brought challenges to offline channels. Since consumers can easily obtain product and price information from different e-commerce channels through mobile phones, they especially like to browse products online, go to physical stores to see products, listen to salespeople, and then go back to online channels to buy products. As a result, the salesperson who led the physical store did not have the motivation to attend to such customers.
By integrating the physical store sales process, tracking online sales results, and calculating the offline store contribution rate in a sales process, offline stores can also share online sales results, which is part of the new omnichannel concept proposed by Chow Sang Sang.
Mak believes that omnichannel coverage goes beyond integrating the physical stores with online stores. Rather, true omnichannel coverage requires the company’s IT to be more agile and deliver business changes. Also, e-commerce partners are in a state of rapid change. For example, JD’s unbounded retail also requires the cooperation of physical stores, and Chow Sang Sang’s IT becomes more agile. On Chow Sang Sang’s official website, you can also achieve the “Monthly Money,” part of the internal CRM system. These internal- and external-facing systems need to integrate, but remain loosely coupled to avoid painful upgrade processes. Therefore, the ever-changing business and IT needs of shopping, online stores, and CRM systems require a microservices architecture. This is the main reason for choosing PKS, and seamlessly opening the private cloud through the PKS and Pivotal BOSH platform. With the public cloud platform, it connects its business system with the e-commerce business system to meet the rapidly changing needs of the business.
“All-channel” IT platform
Chow Sang Sang is building a new generation of omnichannel sales of physical and online stores, which correspondingly requires the company’s IT to become an “all-channel” platform to achieve agile IT and support agile business. Because it used to be a standalone system, Chow Sang Sang also needs to establish a full cloud architecture, including splitting a large Oracle library into an independently expandable, distributed database.
Pivotal provides a modern agile development process and a cloud native platform that can be deployed on every major private and public cloud. In addition, Pivotal’s cloud native platform supports the full application lifecycle from development to testing to production. In addition to the cloud native PaaS Pivotal Platform, it also provides data platform solutions: Greenplum and GemFire. In the agile IT architecture, containers are an indispensable technology and an important foundation for modern microservices. Pivotal Platform also offers PKS, an enterprise-grade Kubernetes-based solution for running containerized workloads. Pivotal services like Greenplum also ship in a containerised version to run on PKS.
PKS is a collaboration between Pivotal and VMware, and is based on open-source Kubernetes container orchestration technology, a project started at Google. For Chow Sang Sang, the biggest benefit of PKS is that it can be seamlessly integrated with VMware software, allowing the company to use VMware’s unified SDDC infrastructure for containers. To ensure maximum portability, PKS adds support for the latest version of Kubernetes in parallel with the major public clouds.
“Kubernetes itself is more complex and there are still many challenges deploying and operating the open-source version,” said James Tso, Chief Strategy Officer at Masterson, Chow Sang Sang’s IT partner in Hong Kong.
PKS addresses many of these problems by providing a simplified installation experience and automated Day 2 operational experience (especially with VMware and Google), providing zero-downtime upgrades. Through a PKS integration platform, you can achieve DevOps without spending too much time and effort on development and operations management. For the new version of Kubernetes, production system downtime is not required for updates.
PKS operates open-source Kubernetes on top of Pivotal Platform BOSH, a platform for infrastructure configuration and automation. BOSH abstracts away the complexities of operating across multiple different private and public cloud infrastructures. In addition to GCP, PKS is compatible with AWS, Alibaba Cloud, and other public cloud resources and hybrid clouds based on OpenStack and VMware vSphere. BOSH solves the automated management of cloud resources for container applications and the automated operation and maintenance of Kubernetes clusters in production environments.
Chow Sang Sang’s next-generation IT system is based on VMware SDDC’s private cloud software and Dell EMC hardware-enabled, cloud-based private cloud, the Pivotal Ready Architecture (PRA). PRA hosts the PKS container management platform, a complete cloud solution based on Dell Technologies. This provides Chow Sang Sang with the “all-channel” IT resources that have laid a good foundation for Chow Sang Sang’s next digital transformation.
On the road to agile
Mak noted that Chow Sang Sang has three DevOps teams in mainland China, Hong Kong, and Taiwan. Under the premise of rapid business changes, Chow Sang Sang needs to execute simultaneous software development using the three teams. Each team should independently develop different parts of the application. Chow Sang Sang has been working with Masterson and Pivotal since May 2018. Using the complete Pivotal Platform and agile methodology, adding automated CI/CD automation will build the foundation of agile development.
In addition to PKS, Chow Sang Sang’s current agile development mainly uses Spring Boot and Spring Cloud, an open-source development operation and maintenance framework based on microservices. Pivotal is the leader of the Spring Cloud open-source community and also offers Spring Cloud business solutions. The cooperation between Chow Sang Sang and Pivotal has more room for innovation.
Mak stressed that the core of Chow Sang Sang’s digital transformation is data-driven decision making. The all-cloud platform and agile development will support the “all-channel” transformation of Chow Sang Sang’s business and use data analysis to achieve more refined operations for the company.
“To launch a new business, we must have the support of IT systems. Double 11, smart stores, etc., need to be implemented quickly. IT is involved more and more in the business, promotion, and conversion,” Mak said. “Chow Sang Sang has changed from a technical level to an innovation-driven company.”

原文作者:Bol5261;如有侵权,请联系管理员删除。