This repository contains various examples demonstrating how SPAship Operator can be used.
Application | Description |
---|---|
simple | Simple static website with 2 components |
advanced | Advanced example using shared components and shared layout |
spa-restapi-mongo | SPA with real REST API backed by Mongo DB |
minikube config set driver hyperkit
minikube config set memory 8192
minikube config set cpus 4
minikube start --addons ingress,dashboard
Make available examples domains
echo "$(minikube ip) minikube.info operator-spaship.minikube.info simple-dev-spaship-examples.minikube.info simple-prod-spaship-examples.minikube.info advanced-dev-spaship-examples.minikube.info advanced-prod-spaship-examples.minikube.info spa-restapi-mongo-dev-spaship-examples.minikube.info" | sudo tee -a /etc/hosts
Install the operator
kubectl create namespace spaship-operator
kubectl create configmap -n spaship-operator spaship-operator-config --from-literal=APP_OPERATOR_ROUTER_MODE=ingress --from-literal=APP_OPERATOR_WEBSITE_DOMAIN=minikube.info
kubectl apply -n spaship-operator -f https://raw.githubusercontent.com/spaship/operator/main/manifests/install.yaml
Now your cluster is ready to register any website. Follow instructions in particular website example.