pumpwood-deploy-static-pages
Satellite deploy package for Pumpwood static page containers on
Kubernetes. It generates Deployment and Service manifests for nginx-style
static images on port 80 — then hands them to
pumpwood-deploy
for apply.
Developed by Murabei Data Science. BSD-3-Clause.
Pumpwood is a native Brazilian tree
with a symbiotic relation to ants (Murabei)
What it deploys
| Manifest | Kubernetes resources |
|---|---|
pumpwood_static_pages__{image} |
Deployment + Service pumpwood-static-pages--{image} |
Add one PumpWoodStaticPagesMicroservice per static page image. Each
instance renders a single manifest file containing both the Deployment
and the ClusterIP Service listening on port 80.
flowchart LR
subgraph pkg [pumpwood-deploy-static-pages]
A[PumpWoodStaticPagesMicroservice]
end
subgraph core [pumpwood-deploy]
B[DeployPumpWood]
end
subgraph cluster [Cluster]
SP[pumpwood-static-pages--image]
LB[load-balancer / Kong]
end
A --> B
B --> SP
SP --> LB
Prerequisites
This package does not stand alone. Before static page pods can start, the cluster should already provide:
| Resource | Provided by |
|---|---|
dockercfg image pull secret |
Cluster or DeployPumpWood setup |
| API gateway / ingress (typical) | pumpwood-deploy-ingress-api-gateway or AWS ALB |
No Postgres, RabbitMQ, or package-level Secret is required. The pod sets
SERVICE_HOST to the in-cluster service name
pumpwood-static-pages--{image}.
Installation
pip install pumpwood-deploy-static-pages
Requires pumpwood-deploy.
Quick start
import os
import simplejson as json
from dotenv import load_dotenv
from pumpwood_deploy.deploy import DeployPumpWood
from pumpwood_deploy_static_pages import (
PumpWoodStaticPagesMicroservice)
with open("secrets/production.json", "r") as file:
secrets = json.loads(file.read())
load_dotenv()
deploy = DeployPumpWood(
model_user_password=secrets["microservices--model"],
rabbitmq_secret=secrets["rabbitmq_secret"],
hash_salt=secrets["hash_salt"],
k8_provider="aws",
k8_deploy_args={
"region": "us-east-1",
"cluster_name": "my-cluster",
},
k8_namespace="pumpwood",
)
deploy.add_microservice(
PumpWoodStaticPagesMicroservice(
image="pumpwood-docs-static",
version=os.getenv("PUMPWOOD_DOCS_STATIC"),
repository="my-registry.example.com",
replicas=1,
))
deploy.add_microservice(
PumpWoodStaticPagesMicroservice(
image="pumpwood-help-static",
version=os.getenv("PUMPWOOD_HELP_STATIC"),
repository="my-registry.example.com",
))
deploy.create_deploy_files()
deploy.deploy_microservices()
Environment variables
PUMPWOOD_DOCS_STATIC=1.0.0
PUMPWOOD_HELP_STATIC=1.0.0
If the rendered manifest matches what is already on the cluster, kubectl apply produces no changes — safe for rolling image updates.
Configuration reference
Required
| Parameter | Description |
|---|---|
image |
Docker image name (also used in K8s resource names) |
version |
Container image tag |
Optional
| Parameter | Default | Description |
|---|---|---|
repository |
GCR default | Docker registry |
replicas |
1 |
Number of pod replicas |
requests_memory |
20Mi |
Memory request |
requests_cpu |
1m |
CPU request |
limits_memory |
512Mi |
Memory limit |
limits_cpu |
500m |
CPU limit |
Networking
Each Service exposes port 80 and targets container port 80.
Register routes in Kong or your ingress so traffic reaches
pumpwood-static-pages--{image} inside the namespace.
Related packages
| Package | Role |
|---|---|
pumpwood-deploy |
Orchestrator, Kong, RabbitMQ |
pumpwood-deploy-auth |
Authorization microservice |
pumpwood-deploy-frontend |
React UI |
pumpwood-deploy-ingress-api-gateway |
NGINX API gateway |
Full platform documentation: Murabei Open Source — pumpwood-deploy.
Development
pip install -e ../pumpwood-deploy
pip install -e .
PYTHONPATH="src:../pumpwood-deploy/src" python3 -c "
from pumpwood_deploy_static_pages import PumpWoodStaticPagesMicroservice
PumpWoodStaticPagesMicroservice('docs-static', '1.0.0').create_deployment_file()
"
ruff check src/
License
BSD-3-Clause — see LICENSE.
Metadata
Release files for pumpwood-deploy-static-pages 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pumpwood_deploy_static_pages-0.0.1.tar.gz | 5.9 kB | Without provenance | Details for pumpwood_deploy_static_pages-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pumpwood_deploy_static_pages-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pumpwood_deploy_static_pages-0.0.1-py3-none-any.whl |
Total release size: 13.2 kB
Release files / pumpwood_deploy_static_pages-0.0.1.tar.gz
| Download URL | pumpwood_deploy_static_pages-0.0.1.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
275959300b7bff7a2069ee4ca7278138994bb0ff82a91192a92bd56441969846
|
|
BLAKE2b-256 checksum How to use checksums |
f7fb95ce58e3234cc23e71282be80e5dee111029c6b4c1c9d13f8166a8b2575b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.12.16 Linux/7.0.0-1019-azure
|
Release files / pumpwood_deploy_static_pages-0.0.1-py3-none-any.whl
| Download URL | pumpwood_deploy_static_pages-0.0.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45609299a53883e85de35f4072e9cac10a806c05d7becc06d06a04fae1d8a49c
|
|
BLAKE2b-256 checksum How to use checksums |
4312c8430bbdd0d2e35bb9f1c3f39473eae33a82e9326029f765c60064474410
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.12.16 Linux/7.0.0-1019-azure
|
Security for pumpwood-deploy-static-pages 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.