Created
December 19, 2022 12:47
-
-
Save ju55i/4d68035aad7870cf07832ea4cbab7331 to your computer and use it in GitHub Desktop.
Plone 6 deployment with podman kube play
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: plone-vars | |
| data: | |
| SITE: Plone | |
| CORS_ALLOW_ORIGIN: '*' | |
| RAZZLE_INTERNAL_API_PATH: http://localhost:8080/Plone | |
| #ADDONS: eea.api.layout | |
| #PROFILES: eea.api.layout:default | |
| --- | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: plone | |
| spec: | |
| containers: | |
| - name: backend | |
| image: plone/plone-backend:6.0.0 | |
| ports: | |
| - containerPort: 8080 | |
| hostPort: 8080 | |
| envFrom: | |
| - configMapRef: | |
| name: plone-vars | |
| optional: false | |
| volumeMounts: | |
| - mountPath: /data | |
| name: plone-data | |
| - name: frontend | |
| image: plone/plone-frontend:latest | |
| ports: | |
| - containerPort: 3000 | |
| hostPort: 3000 | |
| envFrom: | |
| - configMapRef: | |
| name: plone-vars | |
| optional: false | |
| volumes: | |
| - name: plone-data | |
| persistentVolumeClaim: | |
| claimName: plone-data-volume |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can run this easily by adding /etc/containers/systemd/plone.kube with contents:
[Install]
WantedBy=default.target
[Kube]
Yaml=plone-deployment.yaml
You need to copy plone-deployment.yaml also into /etc/containers/systemd. After this run systemctl daemon-reload and systemctl start plone.