Skip to content

Instantly share code, notes, and snippets.

@misberner
Last active October 25, 2022 16:43
Show Gist options
  • Save misberner/c43a666fc0a6ff335925b9800473d489 to your computer and use it in GitHub Desktop.
Save misberner/c43a666fc0a6ff335925b9800473d489 to your computer and use it in GitHub Desktop.

Step 0: Choose Correct Kubernetes/OpenShift Context

The following commands should be run against the Kubernetes/OpenShift cluster into which Red Hat ACS/StackRox Central is deployed.

Step 1: Environment Setup

Set the environment variable ACS_NAMESPACE to the namespace into which Red Hat ACS/StackRox is deployed, for example:

ACS_NAMESPACE=rhacs-operator

Step 2: Patch the Central Deployment

On OpenShift, run

oc -n "${ACS_NAMESPACE}" patch deploy/central -p '{"spec":{"template":{"spec":{"containers":[{"name":"central","command":["bash", "-c", "rm -f /var/lib/stackrox/cve/istio/cve-list.json ; exec /stackrox/central-entrypoint.sh"]}]}}}}'

On Kubernetes, run

kubectl -n "${ACS_NAMESPACE}" patch deploy/central -p '{"spec":{"template":{"spec":{"containers":[{"name":"central","command":["bash", "-c", "rm -f /var/lib/stackrox/cve/istio/cve-list.json ; exec /stackrox/central-entrypoint.sh"]}]}}}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment