986 B
986 B
Vend deployment templates
The Kubernetes base follows the repository's existing Kustomize pattern but is kept product-local until Vend's final domain and cluster are chosen.
Before applying it:
- replace the image with an immutable digest;
- replace
https://vend.invalid, Mint, and Relay service coordinates; - create
vend-secretsthrough the cluster secret manager usingk8s/secret.example.yamlonly as a key inventory; - register the resulting GitHub and Google callbacks;
- size DB connections so
replicas × VEND_DATABASE_MAX_CONNECTIONSstays below the pooler/database budget; - expose only Service port 80 through the chosen TLS ingress, while keeping
/metricsprivate.
Render without changing a cluster:
kubectl kustomize apps/vend/deploy/k8s
The Prometheus rule uses the Prometheus Operator CRD. Install it only where
that CRD and kube-state-metrics exist; otherwise translate the expressions
into the environment's alert manager.