CDK8S 小龙
使用 CDK8S 向库伯涅部署 Plone CMS 的 TypeScript 和 Python 库
概览
cdk8s-plone 为部署提供 CDK8S 构造 Plone CMS (Plone CMS) (英语) 在库伯涅特。 使用 TypeScript 或 Python 定义您的基础设施并自动生成 Kubernetes 显示 .
关键特性 :
- QQ 支持 Volto (反应前端) 和 Blicca (原经典 UI)
- * 拥有大量可配置复制品
- 通过 kube-httpcache 可选 Varnish HTTP 缓存(
PloneHttpcache)或云乙烯卡舍操作员(PloneVinylCache(中文(简体) ) - 精细的资源和探测器配置
- QQ多语言支持( TypeScript/ JavaScript和Python)
- QQ 类型安全基础设施作为代码
快速启动
安装
类型脚本/ Java 脚本 :
npm install @bluedynamics/cdk8s-plone
Python : (中文(简体) )
pip install cdk8s-plone
基本示例
import { App, Chart } from 'cdk8s';
import { Plone, PloneVariant } from '@bluedynamics/cdk8s-plone';
const app = new App();
const chart = new Chart(app, 'PloneDeployment');
new Plone(chart, 'my-plone', {
variant: PloneVariant.VOLTO,
backend: {
image: 'plone/plone-backend:6.1.3',
replicas: 3,
},
frontend: {
image: 'plone/plone-frontend:16.0.0',
replicas: 2,
},
});
app.synth();
产生库伯涅特的表:
cdk8s synth
kubectl apply -f dist/
文档
完整文档 : https://blue动力学.github.io/cdk8s-plone/ (中文(简体) )
实例
完整的工作实例见 examples/ 目录 :
-
沃尔多 - 配有反应单页前端的已准备好的Plone 6部署:
- Volto 前端 (反应) + REST API后端
- PostgreSQL 带有 RelStorage (平面 PostgreSQL 或 CloudNativePG) 的 PostgreSQL
- 使用 kube- httpcache 的 Vornish HTTP 缓存
- 用 TLS 支持入侵( Traefik/ Kong)
-
布莱卡 - 配置服务器侧渲染(原经典UI):
- Blicca( 后端使 UI, 没有单独的前端)
- PostgreSQL 带有 RelStorage (平面 PostgreSQL 或 CloudNativePG) 的 PostgreSQL
- 使用 kube- httpcache 的 Vornish HTTP 缓存
- 用 TLS 支持入侵( Traefik/ Kong)
- 较简单的架构( 没有单独的前端)
普罗米修斯量子
启用 Prometheus Service Monitor 来收集测量值( 需要 Prometheus 运算符) :
new Plone(chart, 'my-plone', {
backend: {
servicemonitor: true,
metricsPath: '/metrics', // optional, defaults to '/metrics'
},
frontend: {
servicemonitor: true,
metricsPort: 9090, // optional, defaults to service port
},
});
说明: 您必须使用您的 Plone 后端/ 前端来显示配置的端点的参数 。 对于Volto/Node.js前端,考虑使用 舞会客户 或者说 显式正中软件。 。 。 .
所需资源
- 库贝特尔 - 说吧 安装 kubectl
- 节点.js 16+ (用于TypeScript/JavaScript) - 安装节点.js
- Py 3.8+ (为平通 安装 Python
- Kubernetes集群 (当地或云
详细设置说明见 设置先决条件。 。 。 .
发展
这个项目使用 普罗让 用于项目管理.
# Install dependencies
npm install
# Run tests
npm test
# Build
npm run build
# Update project configuration
# Edit .projenrc.ts, then run:
npx projen
详细的开发说明见 捐款额 (如果有的话).
资源
- CDK8S 文档
- Plone CMS (Plone CMS) (英语)
- 库贝- httpcache (用于HTTP缓冲)
- 云营养PG (用于PostgreSQL管理)
许可证
维护者
维护者 蓝色动态联盟
作者 : 简斯·克莱因(Jens W[email protected] (原始内容存档于2012-09-29)(中文(简体) )