@bluedynamics/cdk8s-plone 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +2 -2
- package/lib/config/plone-vinyl-backend-response.vcl +25 -0
- package/lib/config/plone-vinyl-recv.vcl +18 -0
- package/{examples/volto → lib}/config/varnish.tpl.vcl +1 -1
- package/lib/httpcache.js +1 -1
- package/lib/plone.js +1 -1
- package/lib/vinylcache.js +1 -1
- package/package.json +3 -2
- package/.claude/claude.md +0 -39
- package/.claude/settings.local.json +0 -31
- package/CLAUDE.md +0 -352
- package/docs/superpowers/plans/2026-06-12-configurable-service-spec.md +0 -608
- package/docs/superpowers/specs/2026-06-12-configurable-service-spec-design.md +0 -192
- package/documentation/Makefile +0 -357
- package/documentation/README.md +0 -284
- package/documentation/mx.ini +0 -3
- package/documentation/sources/_static/logo.svg +0 -79
- package/documentation/sources/conf.py +0 -145
- package/documentation/sources/explanation/architecture.md +0 -336
- package/documentation/sources/explanation/cdk8s-workflow.md +0 -66
- package/documentation/sources/explanation/features.md +0 -374
- package/documentation/sources/explanation/index.md +0 -34
- package/documentation/sources/how-to/backup-and-restore.md +0 -107
- package/documentation/sources/how-to/configure-env-and-secrets.md +0 -184
- package/documentation/sources/how-to/configure-ingress-tls.md +0 -108
- package/documentation/sources/how-to/configure-security-context.md +0 -143
- package/documentation/sources/how-to/deploy-blicca.md +0 -334
- package/documentation/sources/how-to/deploy-volto.md +0 -324
- package/documentation/sources/how-to/deploy-with-httpcache.md +0 -224
- package/documentation/sources/how-to/deploy-with-vinyl-cache.md +0 -273
- package/documentation/sources/how-to/enable-prometheus-monitoring.md +0 -122
- package/documentation/sources/how-to/index.md +0 -85
- package/documentation/sources/how-to/scale-and-high-availability.md +0 -122
- package/documentation/sources/how-to/schedule-pods.md +0 -145
- package/documentation/sources/how-to/setup-prerequisites.md +0 -363
- package/documentation/sources/how-to/troubleshooting.md +0 -113
- package/documentation/sources/how-to/upgrade-and-rollout.md +0 -140
- package/documentation/sources/index.md +0 -109
- package/documentation/sources/reference/api/index.md +0 -40
- package/documentation/sources/reference/configuration-options.md +0 -352
- package/documentation/sources/reference/index.md +0 -41
- package/documentation/sources/tutorials/01-quick-start.md +0 -165
- package/documentation/sources/tutorials/index.md +0 -53
- package/examples/blicca/.env.example +0 -20
- package/examples/blicca/README.md +0 -339
- package/examples/blicca/__snapshots__/main.test.ts.snap +0 -1035
- package/examples/blicca/cdk8s.yaml +0 -6
- package/examples/blicca/config/varnish.tpl.vcl +0 -217
- package/examples/blicca/ingress.ts +0 -217
- package/examples/blicca/jest.config.js +0 -11
- package/examples/blicca/main.test.ts +0 -18
- package/examples/blicca/main.ts +0 -101
- package/examples/blicca/package.json +0 -36
- package/examples/blicca/postgres.cloudnativepg.ts +0 -63
- package/examples/blicca/postgres.plain.ts +0 -115
- package/examples/blicca/tsconfig.json +0 -33
- package/examples/volto/.env.example +0 -21
- package/examples/volto/README.md +0 -292
- package/examples/volto/__snapshots__/main.test.ts.snap +0 -1206
- package/examples/volto/cdk8s.yaml +0 -6
- package/examples/volto/ingress.ts +0 -229
- package/examples/volto/jest.config.js +0 -11
- package/examples/volto/main.test.ts +0 -18
- package/examples/volto/main.ts +0 -105
- package/examples/volto/package.json +0 -36
- package/examples/volto/postgres.cloudnativepg.ts +0 -63
- package/examples/volto/postgres.plain.ts +0 -115
- package/examples/volto/tsconfig.json +0 -33
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
myst:
|
|
3
|
-
html_meta:
|
|
4
|
-
"description": "Expose a cdk8s-plone deployment with a Kubernetes Ingress and TLS certificates from cert-manager."
|
|
5
|
-
"property=og:description": "Expose a cdk8s-plone deployment with a Kubernetes Ingress and TLS certificates from cert-manager."
|
|
6
|
-
"property=og:title": "Configure ingress and TLS"
|
|
7
|
-
"keywords": "Plone, cdk8s, Kubernetes, ingress, TLS, cert-manager, Traefik, Volto"
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Configure ingress and TLS
|
|
11
|
-
|
|
12
|
-
This guide shows you how to expose a Plone deployment to the internet with a Kubernetes Ingress and TLS certificates from cert-manager.
|
|
13
|
-
|
|
14
|
-
`cdk8s-plone` does not create ingress resources.
|
|
15
|
-
It creates the Services you route to, and you add the ingress yourself.
|
|
16
|
-
|
|
17
|
-
## Prerequisites
|
|
18
|
-
|
|
19
|
-
- A working Plone deployment created with `cdk8s-plone`.
|
|
20
|
-
- An ingress controller in the cluster, such as [Traefik](https://doc.traefik.io/traefik/) or [ingress-nginx](https://kubernetes.github.io/ingress-nginx/).
|
|
21
|
-
- [cert-manager](https://cert-manager.io/) installed, with a `ClusterIssuer` for your certificate authority.
|
|
22
|
-
- DNS records for your domains pointing at the ingress controller.
|
|
23
|
-
|
|
24
|
-
## Identify the services to route to
|
|
25
|
-
|
|
26
|
-
The constructs expose the Service names you need as read-only members:
|
|
27
|
-
|
|
28
|
-
```typescript
|
|
29
|
-
const plone = new Plone(chart, 'plone', {
|
|
30
|
-
backend: { image: 'plone/plone-backend:6.1.3' },
|
|
31
|
-
frontend: { image: 'plone/plone-frontend:16.0.0' },
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
const backendService = plone.backendServiceName; // backend REST API, port 8080
|
|
35
|
-
const frontendService = plone.frontendServiceName; // Volto frontend, port 3000 (Volto only)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Both Services name their port `http`, so reference them by that name in an Ingress.
|
|
39
|
-
For the Blicca variant there is no frontend Service; route public traffic to the backend instead.
|
|
40
|
-
When you run a cache, route public traffic to the cache Service from {doc}`/how-to/deploy-with-httpcache` or {doc}`/how-to/deploy-with-vinyl-cache`.
|
|
41
|
-
|
|
42
|
-
## Add an Ingress with TLS
|
|
43
|
-
|
|
44
|
-
Apply an Ingress that routes your domain to the frontend Service and requests a certificate through cert-manager.
|
|
45
|
-
|
|
46
|
-
```yaml
|
|
47
|
-
apiVersion: networking.k8s.io/v1
|
|
48
|
-
kind: Ingress
|
|
49
|
-
metadata:
|
|
50
|
-
name: plone
|
|
51
|
-
annotations:
|
|
52
|
-
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
53
|
-
spec:
|
|
54
|
-
tls:
|
|
55
|
-
- hosts:
|
|
56
|
-
- plone.example.com
|
|
57
|
-
secretName: plone-tls
|
|
58
|
-
rules:
|
|
59
|
-
- host: plone.example.com
|
|
60
|
-
http:
|
|
61
|
-
paths:
|
|
62
|
-
- path: /
|
|
63
|
-
pathType: Prefix
|
|
64
|
-
backend:
|
|
65
|
-
service:
|
|
66
|
-
name: <frontendServiceName>
|
|
67
|
-
port:
|
|
68
|
-
name: http
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
cert-manager watches the `tls` block and the `cluster-issuer` annotation, issues the certificate, and stores it in the `plone-tls` Secret.
|
|
72
|
-
|
|
73
|
-
## Route a cache, an API, and a maintenance domain
|
|
74
|
-
|
|
75
|
-
A production setup commonly uses three domains:
|
|
76
|
-
|
|
77
|
-
- a public domain that points at the Varnish cache Service,
|
|
78
|
-
- an uncached domain that points at the frontend Service for testing,
|
|
79
|
-
- a maintenance domain that points at the backend Service for the Plone control panel.
|
|
80
|
-
|
|
81
|
-
Add one `host` rule per domain, each with its own `tls` entry, pointing at the matching Service.
|
|
82
|
-
|
|
83
|
-
```{tip}
|
|
84
|
-
The [volto example](https://github.com/bluedynamics/cdk8s-plone/tree/main/examples/volto) implements this three-domain pattern with Traefik `IngressRoute` resources in `ingress.ts`.
|
|
85
|
-
Use it as a complete, tested reference, including the Kong and Traefik variants.
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
## Verify
|
|
89
|
-
|
|
90
|
-
Confirm the ingress and certificate exist and resolve:
|
|
91
|
-
|
|
92
|
-
```shell
|
|
93
|
-
kubectl get ingress -n <namespace>
|
|
94
|
-
kubectl get certificate -n <namespace>
|
|
95
|
-
kubectl describe certificate plone-tls -n <namespace>
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
Once the certificate is `Ready`, request the site over HTTPS:
|
|
99
|
-
|
|
100
|
-
```shell
|
|
101
|
-
curl -sI https://plone.example.com/
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
## See also
|
|
105
|
-
|
|
106
|
-
- {doc}`/how-to/deploy-with-httpcache` — route public traffic through Varnish.
|
|
107
|
-
- {doc}`/how-to/deploy-volto` — a full deployment that includes ingress and TLS.
|
|
108
|
-
- {doc}`/reference/api/index` — `backendServiceName` and `frontendServiceName` reference.
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
myst:
|
|
3
|
-
html_meta:
|
|
4
|
-
"description": "Harden Plone backend and frontend pods with a Kubernetes container security context: capabilities, UID/GID, read-only root, privilege escalation."
|
|
5
|
-
"property=og:description": "Harden Plone backend and frontend pods with a Kubernetes container security context: capabilities, UID/GID, read-only root, privilege escalation."
|
|
6
|
-
"property=og:title": "Configure security context"
|
|
7
|
-
"keywords": "Plone, cdk8s, Kubernetes, security context, Pod Security Standards, hardening"
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Configure security context
|
|
11
|
-
|
|
12
|
-
<div class="page-metadata">
|
|
13
|
-
<div class="metadata-content">
|
|
14
|
-
<p><strong>Type</strong>: How-To (Task-oriented)</p>
|
|
15
|
-
<p><strong>Difficulty</strong>: Intermediate</p>
|
|
16
|
-
<p><strong>Time</strong>: 10 minutes</p>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
This guide shows you how to harden backend and frontend pods by setting a Kubernetes container security context through `cdk8s-plone`.
|
|
21
|
-
Use it when your cluster enforces Pod Security Standards, when an admission webhook rejects permissive pods, or when you want to apply least-privilege defaults.
|
|
22
|
-
|
|
23
|
-
## Prerequisites
|
|
24
|
-
|
|
25
|
-
- A working Plone deployment using `cdk8s-plone`.
|
|
26
|
-
- A Plone image that runs as a non-root user (the official `plone/plone-backend` and `plone/plone-frontend` images do).
|
|
27
|
-
- Cluster knowledge of any namespace-level Pod Security Standards in effect.
|
|
28
|
-
|
|
29
|
-
## Apply a baseline hardened context
|
|
30
|
-
|
|
31
|
-
Set `securityContext` on `backend` or `frontend` (or both).
|
|
32
|
-
|
|
33
|
-
```typescript
|
|
34
|
-
import { Plone, PloneVariant } from '@bluedynamics/cdk8s-plone';
|
|
35
|
-
|
|
36
|
-
new Plone(chart, 'plone', {
|
|
37
|
-
variant: PloneVariant.VOLTO,
|
|
38
|
-
backend: {
|
|
39
|
-
image: 'plone/plone-backend:6.1.3',
|
|
40
|
-
securityContext: {
|
|
41
|
-
runAsNonRoot: true,
|
|
42
|
-
allowPrivilegeEscalation: false,
|
|
43
|
-
capabilities: {
|
|
44
|
-
drop: ['ALL'],
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
frontend: {
|
|
49
|
-
image: 'plone/plone-frontend:16.0.0',
|
|
50
|
-
securityContext: {
|
|
51
|
-
runAsNonRoot: true,
|
|
52
|
-
allowPrivilegeEscalation: false,
|
|
53
|
-
capabilities: {
|
|
54
|
-
drop: ['ALL'],
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
These four settings satisfy the Kubernetes **restricted** Pod Security Standard for containers that do not need extra capabilities.
|
|
62
|
-
|
|
63
|
-
## Pin the UID and GID
|
|
64
|
-
|
|
65
|
-
If your cluster requires explicit user and group IDs (for example, when you mount shared volumes), set them:
|
|
66
|
-
|
|
67
|
-
```typescript
|
|
68
|
-
backend: {
|
|
69
|
-
image: 'plone/plone-backend:6.1.3',
|
|
70
|
-
securityContext: {
|
|
71
|
-
runAsUser: 500,
|
|
72
|
-
runAsGroup: 500,
|
|
73
|
-
runAsNonRoot: true,
|
|
74
|
-
},
|
|
75
|
-
}
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
The official Plone backend image already uses UID `500`.
|
|
79
|
-
Match that UID to keep file permissions consistent with the image.
|
|
80
|
-
|
|
81
|
-
## Mount the root filesystem read-only
|
|
82
|
-
|
|
83
|
-
```typescript
|
|
84
|
-
backend: {
|
|
85
|
-
image: 'plone/plone-backend:6.1.3',
|
|
86
|
-
securityContext: {
|
|
87
|
-
runAsNonRoot: true,
|
|
88
|
-
readOnlyRootFilesystem: true,
|
|
89
|
-
allowPrivilegeEscalation: false,
|
|
90
|
-
capabilities: {
|
|
91
|
-
drop: ['ALL'],
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
```{warning}
|
|
98
|
-
A read-only root filesystem breaks any container that writes outside mounted volumes.
|
|
99
|
-
Plone's Zope writes temporary files; verify the pod stays `Ready` after rollout.
|
|
100
|
-
Mount writable `emptyDir` volumes for `/tmp` and the Zope `var/` directory through `podAnnotations` or the underlying `Deployment` patches if you hit `EROFS` errors.
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
## Add a specific capability
|
|
104
|
-
|
|
105
|
-
When you must add a Linux capability, drop everything else first.
|
|
106
|
-
|
|
107
|
-
```typescript
|
|
108
|
-
backend: {
|
|
109
|
-
image: 'plone/plone-backend:6.1.3',
|
|
110
|
-
securityContext: {
|
|
111
|
-
runAsNonRoot: true,
|
|
112
|
-
allowPrivilegeEscalation: false,
|
|
113
|
-
capabilities: {
|
|
114
|
-
add: ['SYS_PTRACE'],
|
|
115
|
-
drop: ['ALL'],
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
}
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
## Verify the rollout
|
|
122
|
-
|
|
123
|
-
```shell
|
|
124
|
-
# Generate manifests
|
|
125
|
-
cdk8s synth
|
|
126
|
-
|
|
127
|
-
# Confirm the securityContext appears on the pod template
|
|
128
|
-
grep -A 10 securityContext dist/*.yaml
|
|
129
|
-
|
|
130
|
-
# Apply and check pod status
|
|
131
|
-
kubectl apply -f dist/
|
|
132
|
-
kubectl rollout status deployment/<plone-backend-deployment> -n <namespace>
|
|
133
|
-
|
|
134
|
-
# Inspect the running container
|
|
135
|
-
kubectl exec -n <namespace> deployment/<plone-backend-deployment> -- id
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
A pod that fails to start with `CreateContainerConfigError` or `permission denied` usually points to a UID, capability, or read-only conflict.
|
|
139
|
-
|
|
140
|
-
## See also
|
|
141
|
-
|
|
142
|
-
- {doc}`/reference/configuration-options` — Full `PloneSecurityContext` reference.
|
|
143
|
-
- [Kubernetes Pod Security Standards](https://kubernetes.io/docs/concepts/security/pod-security-standards/) — Cluster-level policy reference.
|
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
myst:
|
|
3
|
-
html_meta:
|
|
4
|
-
"description": "Deploy the Blicca example: server-side rendered Plone with PostgreSQL, Varnish caching, and ingress with TLS."
|
|
5
|
-
"property=og:description": "Deploy the Blicca example: server-side rendered Plone with PostgreSQL, Varnish caching, and ingress with TLS."
|
|
6
|
-
"property=og:title": "Deploy Blicca example"
|
|
7
|
-
"keywords": "Plone, cdk8s, Kubernetes, Blicca, Classic UI, PostgreSQL, Varnish, ingress"
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Deploy Blicca example
|
|
11
|
-
|
|
12
|
-
This guide shows you how to deploy the Blicca example to your Kubernetes cluster.
|
|
13
|
-
|
|
14
|
-
Blicca is the new name for what Plone formerly called "Classic UI".
|
|
15
|
-
|
|
16
|
-
## What you'll deploy
|
|
17
|
-
|
|
18
|
-
The [Blicca example](https://github.com/bluedynamics/cdk8s-plone/tree/main/examples/blicca) provides Plone with server-side rendering:
|
|
19
|
-
|
|
20
|
-
- **Plone 6.1 Blicca** (backend renders the UI, no separate frontend)
|
|
21
|
-
- **PostgreSQL** with RelStorage (plain PostgreSQL or CloudNativePG)
|
|
22
|
-
- **Varnish HTTP caching** with kube-httpcache
|
|
23
|
-
- **Ingress** with TLS (Traefik or Kong)
|
|
24
|
-
- **Simpler architecture** (single backend service)
|
|
25
|
-
|
|
26
|
-
## Blicca vs Volto
|
|
27
|
-
|
|
28
|
-
| Feature | Blicca | Volto |
|
|
29
|
-
|---------|-----------|-------|
|
|
30
|
-
| **Architecture** | Single backend | Frontend + Backend |
|
|
31
|
-
| **Rendering** | Server-side | Client-side (React) |
|
|
32
|
-
| **Deployment** | Simpler | More complex |
|
|
33
|
-
| **Best for** | Single-service setups, migrations | API-first projects, SPA frontends |
|
|
34
|
-
|
|
35
|
-
:::{tip}
|
|
36
|
-
Choose Blicca if you want a single backend service without a separate frontend, or if you need Blicca-specific add-ons.
|
|
37
|
-
For the React single-page frontend approach, consider [Volto](deploy-volto.md).
|
|
38
|
-
:::
|
|
39
|
-
|
|
40
|
-
## Prerequisites
|
|
41
|
-
|
|
42
|
-
Same as the {ref}`volto-prerequisites` in the Volto guide, you need:
|
|
43
|
-
|
|
44
|
-
- Ingress controller (Traefik or Kong)
|
|
45
|
-
- cert-manager
|
|
46
|
-
- kube-httpcache operator
|
|
47
|
-
- PostgreSQL: plain single-instance (default, no operator) or the CloudNativePG operator
|
|
48
|
-
|
|
49
|
-
See [Setup Prerequisites](setup-prerequisites.md) for detailed instructions.
|
|
50
|
-
|
|
51
|
-
## Step 1: Get the example
|
|
52
|
-
|
|
53
|
-
```shell
|
|
54
|
-
git clone https://github.com/bluedynamics/cdk8s-plone.git
|
|
55
|
-
cd cdk8s-plone/examples/blicca
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Step 2: Install dependencies
|
|
59
|
-
|
|
60
|
-
```shell
|
|
61
|
-
npm install
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Step 3: Import CRDs
|
|
65
|
-
|
|
66
|
-
```shell
|
|
67
|
-
npm run import
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## Step 4: Configure environment
|
|
71
|
-
|
|
72
|
-
Create `.env` from the example:
|
|
73
|
-
|
|
74
|
-
```shell
|
|
75
|
-
cp .env.example .env
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Edit `.env`:
|
|
79
|
-
|
|
80
|
-
```shell
|
|
81
|
-
# Your domains
|
|
82
|
-
DOMAIN_CACHED=plone.example.com
|
|
83
|
-
DOMAIN_UNCACHED=plone-test.example.com
|
|
84
|
-
DOMAIN_MAINTENANCE=plone-admin.example.com
|
|
85
|
-
|
|
86
|
-
# Your cert-manager ClusterIssuer
|
|
87
|
-
CLUSTER_ISSUER=letsencrypt-prod
|
|
88
|
-
|
|
89
|
-
# Optional: Custom backend image
|
|
90
|
-
#PLONE_BACKEND_IMAGE=plone/plone-backend:6.1.3
|
|
91
|
-
|
|
92
|
-
# Database: 'plain' or 'cloudnativepg'
|
|
93
|
-
DATABASE=cloudnativepg
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
:::{note}
|
|
97
|
-
Blicca only needs one image (backend).
|
|
98
|
-
There's no frontend image configuration.
|
|
99
|
-
:::
|
|
100
|
-
|
|
101
|
-
## Step 5: Generate manifests
|
|
102
|
-
|
|
103
|
-
```shell
|
|
104
|
-
npm run synth
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
Creates `dist/plone-blicca.k8s.yaml` (~27 KB, smaller than Volto's 32 KB).
|
|
108
|
-
|
|
109
|
-
## Step 6: Review manifests
|
|
110
|
-
|
|
111
|
-
```shell
|
|
112
|
-
# Count resources
|
|
113
|
-
grep "^kind:" dist/plone-blicca.k8s.yaml | sort | uniq -c
|
|
114
|
-
|
|
115
|
-
# Dry run
|
|
116
|
-
kubectl apply --dry-run=client -f dist/plone-blicca.k8s.yaml
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
## Step 7: Deploy
|
|
120
|
-
|
|
121
|
-
```shell
|
|
122
|
-
kubectl apply -f dist/plone-blicca.k8s.yaml
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
Or to a specific namespace:
|
|
126
|
-
|
|
127
|
-
```shell
|
|
128
|
-
kubectl apply -f dist/plone-blicca.k8s.yaml -n plone
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
## Step 8: Monitor deployment
|
|
132
|
-
|
|
133
|
-
```shell
|
|
134
|
-
# Watch pods
|
|
135
|
-
kubectl get pods -l app.kubernetes.io/part-of=plone -w
|
|
136
|
-
|
|
137
|
-
# Wait for ready
|
|
138
|
-
kubectl wait --for=condition=ready pod \
|
|
139
|
-
-l app.kubernetes.io/part-of=plone \
|
|
140
|
-
--timeout=300s
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
:::{note}
|
|
144
|
-
Blicca deploys fewer pods than Volto (no frontend pods).
|
|
145
|
-
:::
|
|
146
|
-
|
|
147
|
-
## Step 9: Verify services
|
|
148
|
-
|
|
149
|
-
```shell
|
|
150
|
-
kubectl get svc -l app.kubernetes.io/part-of=plone
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
You should see:
|
|
154
|
-
- `plone-backend` (Blicca service)
|
|
155
|
-
- `plone-httpcache` (Varnish cache)
|
|
156
|
-
- Database service
|
|
157
|
-
|
|
158
|
-
## Step 10: Check ingress
|
|
159
|
-
|
|
160
|
-
```shell
|
|
161
|
-
kubectl get ingress
|
|
162
|
-
kubectl get certificate
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
## Step 11: Access your site
|
|
166
|
-
|
|
167
|
-
Once DNS and TLS are ready:
|
|
168
|
-
|
|
169
|
-
- **Public (cached)**: https://plone.example.com
|
|
170
|
-
- **Testing (uncached)**: https://plone-test.example.com
|
|
171
|
-
- **Maintenance**: https://plone-admin.example.com
|
|
172
|
-
|
|
173
|
-
### Create Plone site
|
|
174
|
-
|
|
175
|
-
1. Access maintenance domain: https://plone-admin.example.com
|
|
176
|
-
2. Click "Create a new Plone site"
|
|
177
|
-
3. Configure:
|
|
178
|
-
- **Site ID**: `Plone`
|
|
179
|
-
- **Title**: Your site name
|
|
180
|
-
- **Language**: Select language
|
|
181
|
-
- **Add-ons**: Choose Blicca add-ons
|
|
182
|
-
4. Click "Create Plone Site"
|
|
183
|
-
|
|
184
|
-
## Key differences from Volto
|
|
185
|
-
|
|
186
|
-
### Architecture
|
|
187
|
-
|
|
188
|
-
Blicca routing is simpler - all traffic goes to the backend:
|
|
189
|
-
|
|
190
|
-
```
|
|
191
|
-
Traffic → Ingress → Varnish → Plone Backend (Blicca)
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
Compared to Volto:
|
|
195
|
-
|
|
196
|
-
```
|
|
197
|
-
Traffic → Ingress → {Varnish → Frontend, Backend}
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
### Ingress routes
|
|
201
|
-
|
|
202
|
-
Blicca uses virtual host rewriting for direct backend access:
|
|
203
|
-
|
|
204
|
-
- **Cached**: Routes through Varnish to backend
|
|
205
|
-
- **Uncached**: Direct to backend with VirtualHostBase rewrite
|
|
206
|
-
- **Maintenance**: Direct backend access with VirtualHostRoot
|
|
207
|
-
|
|
208
|
-
### No frontend service
|
|
209
|
-
|
|
210
|
-
The manifest doesn't include:
|
|
211
|
-
- Frontend deployment
|
|
212
|
-
- Frontend service
|
|
213
|
-
- Frontend-to-backend internal routing
|
|
214
|
-
|
|
215
|
-
This makes the deployment ~15% smaller and simpler to manage.
|
|
216
|
-
|
|
217
|
-
## Troubleshooting
|
|
218
|
-
|
|
219
|
-
### Backend not starting
|
|
220
|
-
|
|
221
|
-
Check backend logs:
|
|
222
|
-
|
|
223
|
-
```shell
|
|
224
|
-
kubectl logs -l app.kubernetes.io/name=plone-backend -f
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
Common issues:
|
|
228
|
-
- Database connection failures
|
|
229
|
-
- Memory limits too low
|
|
230
|
-
- Image pull errors
|
|
231
|
-
|
|
232
|
-
### Blicca interface not loading
|
|
233
|
-
|
|
234
|
-
1. Check if backend pods are running:
|
|
235
|
-
```shell
|
|
236
|
-
kubectl get pods -l app.kubernetes.io/name=plone-backend
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
2. Verify virtual host rewriting in ingress:
|
|
240
|
-
```shell
|
|
241
|
-
kubectl describe ingress
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
3. Check Varnish routing:
|
|
245
|
-
```shell
|
|
246
|
-
kubectl logs -l app.kubernetes.io/name=plone-httpcache
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
### Add-on compatibility
|
|
250
|
-
|
|
251
|
-
Some add-ons are Volto-specific. For Blicca:
|
|
252
|
-
- Use Blicca themes (not Volto themes)
|
|
253
|
-
- Check add-on compatibility with Plone 6 Blicca
|
|
254
|
-
- Avoid Volto-specific frontend add-ons
|
|
255
|
-
|
|
256
|
-
## Migrating to Volto
|
|
257
|
-
|
|
258
|
-
If you want to migrate from Blicca to Volto later:
|
|
259
|
-
|
|
260
|
-
1. Keep your backend deployment (same configuration)
|
|
261
|
-
2. Add Volto frontend from the [Volto example](deploy-volto.md)
|
|
262
|
-
3. Update ingress to route to frontend
|
|
263
|
-
4. Both UIs can run simultaneously during migration
|
|
264
|
-
|
|
265
|
-
See the [Volto deployment guide](deploy-volto.md) for details.
|
|
266
|
-
|
|
267
|
-
## Customization
|
|
268
|
-
|
|
269
|
-
### Backend configuration
|
|
270
|
-
|
|
271
|
-
Edit `main.ts` to customize:
|
|
272
|
-
|
|
273
|
-
```typescript
|
|
274
|
-
const plone = new Plone(this, 'plone', {
|
|
275
|
-
variant: PloneVariant.BLICCA,
|
|
276
|
-
backend: {
|
|
277
|
-
image: 'plone/plone-backend:6.1.3',
|
|
278
|
-
replicas: 2,
|
|
279
|
-
limitMemory: '1Gi',
|
|
280
|
-
limitCpu: '1000m',
|
|
281
|
-
environment: env,
|
|
282
|
-
},
|
|
283
|
-
})
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
### Varnish caching
|
|
287
|
-
|
|
288
|
-
Edit `config/varnish.tpl.vcl` for caching rules specific to Blicca.
|
|
289
|
-
|
|
290
|
-
Blicca VCL is simpler than Volto's - all traffic routes to one backend.
|
|
291
|
-
|
|
292
|
-
## Scaling
|
|
293
|
-
|
|
294
|
-
Scale backend replicas:
|
|
295
|
-
|
|
296
|
-
```typescript
|
|
297
|
-
backend: {
|
|
298
|
-
replicas: 3, // Increase for higher traffic
|
|
299
|
-
}
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
Then:
|
|
303
|
-
```shell
|
|
304
|
-
npm run synth
|
|
305
|
-
kubectl apply -f dist/plone-blicca.k8s.yaml
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
## Performance
|
|
309
|
-
|
|
310
|
-
Blicca performance characteristics:
|
|
311
|
-
|
|
312
|
-
- **Server-side rendering** moves rendering work to the backend, so Varnish caching matters
|
|
313
|
-
- **Varnish caching** is critical for performance
|
|
314
|
-
- **Database** is the main bottleneck (use CloudNativePG for HA)
|
|
315
|
-
- **Fewer HTTP requests** than Volto (no separate frontend API calls)
|
|
316
|
-
|
|
317
|
-
## Cleanup
|
|
318
|
-
|
|
319
|
-
```shell
|
|
320
|
-
kubectl delete -f dist/plone-blicca.k8s.yaml
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
## Next steps
|
|
324
|
-
|
|
325
|
-
- Follow {doc}`enable-prometheus-monitoring` to add Prometheus monitoring.
|
|
326
|
-
- Configure [CloudNativePG backups](https://cloudnative-pg.io/documentation/).
|
|
327
|
-
- Customize the theme through the [Plone 6 Classic UI documentation](https://6.docs.plone.org/classic-ui/) (upstream docs; Blicca is the new name for Classic UI).
|
|
328
|
-
|
|
329
|
-
## See also
|
|
330
|
-
|
|
331
|
-
- {doc}`deploy-volto` — For the React single-page frontend.
|
|
332
|
-
- {doc}`setup-prerequisites` — Cluster requirements.
|
|
333
|
-
- {doc}`/reference/configuration-options` — API reference.
|
|
334
|
-
- [Plone 6 Classic UI documentation](https://6.docs.plone.org/classic-ui/)
|