Please refer to the documentation for detailed installation instructions: Installing StormForge Optimize.
You will also find a quick start guide and additional information about using StormForge Optimize.
This project was bootstrapped by Kubebuilder and inherits many of the stock conventions.
To run locally: first run make install to add the necessary Custom Resource Definitions (CRDs) to you currently configured cluster.
If you would like to start a local process (inheriting Kubeconfig and StormForge configuration from your current environment), first ensure that any manager in the cluster is disabled:
kubectl scale deployment redsky-controller-manager -n redsky-system --replicas 0
make runYou can also debug using existing images (e.g. the latest CI builds): configure your debugger to pass the following arguments to the Go tools: -ldflags "-X github.com/thestormforge/optimize-controller/internal/setup.Image=ghcr.io/thestormforge/setuptools:edge -X github.com/thestormforge/optimize-controller/internal/setup.ImagePullPolicy=Always".
Alternatively, if you would like create an image and run it in minikube, build the Docker images directly to the minikube host:
eval $(minikube docker-env)
make docker-build
make deployTo run in a GKE cluster, you will need to push the images to GCR:
export PROJECT_ID=<GCP project ID where your cluster is running>
export TAG=<something unique>
export IMG=us.gcr.io/$PROJECT_ID/optimize-controller:$TAG
export SETUPTOOLS_IMG=us.gcr.io/$PROJECT_ID/setuptools:$TAG
export REDSKYCTL_IMG=us.gcr.io/$PROJECT_ID/redskyctl:$TAG
make docker-build
make docker-push
make deployYou can also use make tool and bin/redskyctl-$GOOS-$GOARCH init in place of make deploy to use the actual versioned manifests used by the product.
