A development setup for RHACS operator-based deploy in a kind cluster and with a local registry.
- Installed kind and docker binaries.
- Clone your fork of this repository.
$ git clone git@github.com:<user>/rhacs-kind.git
$ cd rhacs-kind
Note: No need to use a fork repo if you don't intend to contribute upstream.
- Bootstrap the cluster and base resources. When it's done, it will show a link to the k8s dashboard and a login token.
$ make boostrap
To run k8s dashboard for monitoring on a separate terminal.
$ make run-k8s-dashboard
$ make up
This can take a while as it will build the images of at least the scanner, central, collecttor, and push them to the local registry.
$ make build-operator run-operator
$ make deploy-example-central
$ make deploy-example-secured-cluster
$ make init-monitoring
$ make run-prometheus-console
$ make init-monitoring-metrics
$ kubectl -n stackrox port-forward deploy/central --address localhost 8000:8443
# This can take time for the UI to load and set up a reverse proxy.
$ make up-ui
- Scanner and Central pods can take a while to load due to their DBs taking time to load.
- Image builds can take a while.