12.3. Configuring endpoints for an existing instance
You can configure endpoints for an existing instance of Red Hat Advanced Cluster Security for Kubernetes.
Procedure
Download the existing config map:
$ oc -n stackrox get cm/central-endpoints -o go-template='{{index .data "endpoints.yaml"}}' > <directory_path>/central_endpoints.yaml-
In the downloaded
central_endpoints.yamlfile, specify your custom YAML configuration. Upload and apply the modified
central_endpoints.yamlconfiguration file:$ oc -n stackrox create cm central-endpoints --from-file=endpoints.yaml=<directory-path>/central-endpoints.yaml -o yaml --dry-run | \ oc label -f - --local -o yaml app.kubernetes.io/name=stackrox | \ oc apply -f -- Restart Central.
If you expose any additional ports other than the default port 8443, you must create network policies that allow traffic on those additional ports.
12.3.1. Restarting the Central container 复制链接链接已复制到粘贴板!
You can restart the Central container by deleting the Central pod.
If you use Kubernetes, enter kubectl instead of oc.
Procedure
To delete the Central pod, run the following command:
$ oc -n stackrox delete pod -lapp=central