Deploy on Kubernetes
Kubernetes is the recommended environment for MangoCloud because it enables horizontal scaling and rapid upgrades.
Cluster Requirements
- Kubernetes 1.27+
- Persistent storage class for PostgreSQL/etcd
- Load balancer or ingress controller with TLS termination
- External message bus (Kafka/NATS) or managed equivalent
Installation Steps
- Clone the repository:
git clone https://github.com/RouterArchitects/mangocloud-website - Namespace prep:
kubectl create namespace mangocloud - Secrets: Apply manifests for database credentials, API keys, and TLS certificates.
- Deploy controllers:
kubectl apply -n mangocloud -f deploy/kubernetes/ - Verify health: Use
kubectl get podsandkubectl logsto ensure all services are running.
Post-Deployment
- Configure ingress hostnames (e.g.,
api.mangowifi.cloud). - Enable autoscaling for stateless services.
- Set up backup jobs for PostgreSQL and configuration snapshots.