Installation
It's advised to install operator in separate namespace.
kubectl create namespace spaship-operator
Configuration
Configuration is managed via ConfigMap which is mapped as environment variables. List of important configuration properties is listed in Operator Configuration page.
Kubernetes Configuration
kubectl create configmap -n spaship-operator spaship-operator-config \
--from-literal=APP_OPERATOR_ROUTER_MODE=ingress \
--from-literal=APP_OPERATOR_WEBSITE_DOMAIN=minikube.info
Openshift Configuration
kubectl create configmap -n spaship-operator spaship-operator-config \
--from-literal=APP_OPERATOR_ROUTER_MODE=openshift \
--from-literal=APP_OPERATOR_WEBSITE_DOMAIN=minikube.info
Operator Installation
You can manually install all necessary assets of operator by:
kubectl apply -n spaship-operator -f https://raw.githubusercontent.com/spaship/operator/main/manifests/install.yaml
Operator's Ingress/Route
Operator doesn't create automatically Ingress/Route so they need to be created manually:
Example of ingress with host operator-spaship.minikube.info.
kubectl apply -n spaship-operator -f https://raw.githubusercontent.com/spaship/operator/main/manifests/minikube/ingress.yaml
Example of Openshift route:
oc create route -n spaship-operator edge operator --service=spaship-operator --hostname=spaship-operator.example.com