Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 5.67 KB

README.md

File metadata and controls

36 lines (29 loc) · 5.67 KB

Deploy scripts

Usage

# Deploy sripts should be used from the git root of this repo
# Deploy StackRox locally on Kubernetes
$ ./deploy/k8s/deploy-local.sh

# Deploy StackRox locally on OpenShift
$ ./deploy/openshift/deploy-local.sh

# Deploy StackRox on a remote OpenShift cluster with an exposed route
$ LOAD_BALANCER=route ./deploy/openshift/deploy.sh

Env variables

Most environment variables can be found in common/env.sh.

Name Values Description
COLLECTION_METHOD core_bpf \ ebpf Set the collection method for collector.
ROX_HOTRELOAD true \ false HOTRELOAD mounts Sensor and Central local binaries into locally running pods. Only works with docker-desktop. Alternatively you can use ./dev-tools/enabled-hotreload.sh. Note however that this will break the linter: https://stack-rox.atlassian.net/browse/ROX-6562
LOAD_BALANCER route \ lb Configure how to expose Central, important if deployed on remote clusters. Use route for OpenShift, lb for Kubernetes.
MAIN_IMAGE_TAG string Configure the image tag of the stackrox/main image to be deployed.
MONITORING_SUPPORT true \ false Enable StackRox monitoring.
MONITORING_ENABLE_PSP true \ false Generate PodSecurityPolicies for monitoring. Defaults to false, as PSPs were deprecated in k8s 1.25.
REGISTRY_USERNAME string Set docker registry username to pull the docker.io/stackrox/main image.
REGISTRY_PASSWORD string Set docker registry password to pull the docker.io/stackrox/main image.
STORAGE none \ pvc Defines which storage to use for the Central database, to preserve data between Central restarts it is recommended to use pvc.
SENSOR_DEV_RESOURCES true \ false (defaults to true) When set to true, Sensor will be deployed with reduced memory/cpu requests. This should be used exclusively for testing and development environments.
ROX_LOCAL_SOURCE_PATH string When ROX_HOTRELOAD is enabled this variable sets the path to the local binary. This is useful when the hostPath mount links into a VM or container, e.g. when using KIND.
ROX_INIT_BUNDLE_PATH string Sets a custom init-bundle file path for Sensor.
ROX_CENTRAL_EXTRA_HELM_VALUES_FILE string Adds a custom value file path to the Central Helm chart.
ROX_SENSOR_EXTRA_HELM_VALUES_FILE string Adds a custom value file path to the Sensor Helm chart.