-
Notifications
You must be signed in to change notification settings - Fork 0
ROX-34390: Add file activity to berserker load in long running clusters #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JoukoVirtanen
wants to merge
12
commits into
main
Choose a base branch
from
jv-ROX-34390-add-file-activity-to-berserker-load-in-long-running-clusters
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b1811f8
X-Smart-Branch-Parent: main
JoukoVirtanen 7ea0587
Fact should be deployed
JoukoVirtanen db0dcc8
Patching fact to monitor /tmp/data
JoukoVirtanen 1ad4bea
Set run length to 5h temporarily
JoukoVirtanen dffc558
Using set env instead of patch
JoukoVirtanen 20e0b8c
Using SENSOR_HELM_DEPLOY
JoukoVirtanen bd96551
Set SENSOR_HELM_MANAGED to false
JoukoVirtanen 3398aa7
Not setting SENSOR_HELM_MANAGED to false. Setting ROX_DEPLOY_SENSOR_W…
JoukoVirtanen b441426
Trying to create image pull secret
JoukoVirtanen 539b3d1
Reduced long running cluster time to 3h
JoukoVirtanen 3037952
FACT_LOGLEVEL set to info
JoukoVirtanen 8beb1e8
Set lifespan back to 168h
JoukoVirtanen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,26 @@ else | |
| echo "Using ACS pre-4.11 secured cluster setup (version: ${version_major_minor})" | ||
| fi | ||
|
|
||
| # Create namespace and image pull secrets BEFORE running sensor.sh | ||
| kubectl create namespace stackrox || true | ||
|
|
||
| kubectl -n stackrox create secret docker-registry stackrox \ | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With helm deploy the secrets will not get created in the same way that they were before. |
||
| --docker-server=quay.io \ | ||
| --docker-username="${REGISTRY_USERNAME}" \ | ||
| --docker-password="${REGISTRY_PASSWORD}" || true | ||
|
|
||
| kubectl -n stackrox create secret docker-registry secured-cluster-services-main \ | ||
| --docker-server=quay.io \ | ||
| --docker-username="${REGISTRY_USERNAME}" \ | ||
| --docker-password="${REGISTRY_PASSWORD}" || true | ||
|
|
||
| kubectl -n stackrox create secret docker-registry secured-cluster-services-collector \ | ||
| --docker-server=quay.io \ | ||
| --docker-username="${REGISTRY_USERNAME}" \ | ||
| --docker-password="${REGISTRY_PASSWORD}" || true | ||
|
|
||
| "${STACKROX_DIR}/deploy/k8s/sensor.sh" | ||
|
|
||
| kubectl -n stackrox create secret generic access-rhacs \ | ||
| --from-literal="username=${ROX_ADMIN_USERNAME}" \ | ||
| --from-literal="password=${ROX_ADMIN_PASSWORD}" \ | ||
|
|
@@ -28,6 +47,9 @@ kubectl -n stackrox create secret generic access-rhacs \ | |
| # Create the collector-config ConfigMap in order to enable external IPs | ||
| kubectl create -f "${SCRIPT_DIR}/collector-config.yaml" | ||
|
|
||
| # Patch the collector DaemonSet to configure fact container | ||
| kubectl -n stackrox set env daemonset/collector FACT_PATHS="/tmp/data/**/*" FACT_LOGLEVEL="info" -c fact | ||
|
|
||
| echo "Deploying Monitoring..." | ||
| monitoring_values_file="${COMMON_DIR}/../charts/monitoring/values.yaml" | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SFA_AGENTonly works with helm deploy, so we are switching to that.