-
Notifications
You must be signed in to change notification settings - Fork 244
Fix helm upgrade procedure #431
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,27 +59,41 @@ The webhook uses `failurePolicy: Ignore` by default, meaning if the webhook fail | |
helm repo add robusta https://robusta-charts.storage.googleapis.com && helm repo update | ||
``` | ||
|
||
2. **Add cluster configuration**: | ||
2. **Configure Robusta Account Connection**: | ||
|
||
If the enforcer is installed in the same namespace as Robusta, it will automatically detect the Robusta account settings. | ||
The `Enforcer` needs access to your Robusta account to fetch KRR recommendations. Choose the appropriate configuration based on your setup: | ||
|
||
If your Robusta UI sink token, is pulled from a secret (as described [here](https://docs.robusta.dev/master/setup-robusta/configuration-secrets.html#pulling-values-from-kubernetes-secrets)), you should add the same environement variable to the `Enforcer` pod as well. | ||
#### Option A: Same Namespace as Robusta (Easiest) | ||
If the enforcer is installed in the **same namespace as Robusta**, it will automatically detect Robusta account settings from the existing configuration. | ||
|
||
If the `Enforcer` is installed on a different namespace, you can provide your Robusta account credentials using env variables: | ||
**⚠️ Caveat**: If your Robusta UI token is pulled from a secret (as described [here](https://docs.robusta.dev/master/setup-robusta/configuration-secrets.html#pulling-values-from-kubernetes-secrets)), you must add the same environment variables to the enforcer pod: | ||
|
||
Add your robusta credentials and cluster name: (`enforcer-values.yaml`) | ||
```yaml | ||
# enforcer-values.yaml | ||
additionalEnvVars: | ||
- name: TOKEN_ENV_VAR_NAME | ||
valueFrom: | ||
secretKeyRef: | ||
name: robusta-secrets | ||
key: robustaSinkToken | ||
``` | ||
|
||
#### Option B: Different Namespace | ||
If the enforcer is installed in a **different namespace than Robusta**, provide the Robusta credentials explicitly: | ||
|
||
```yaml | ||
# enforcer-values.yaml | ||
additionalEnvVars: | ||
- name: CLUSTER_NAME | ||
value: my-cluster-name # should be the same as the robusta installation on this cluster | ||
value: my-cluster-name # should match your Robusta cluster name | ||
- name: ROBUSTA_UI_TOKEN | ||
value: "MY ROBUSTA UI TOKEN" | ||
# - name: ROBUSTA_UI_TOKEN # or pulled from a secret | ||
# valueFrom: | ||
# secretKeyRef: | ||
# name: robusta-secrets | ||
# key: robustaSinkToken | ||
value: "MY_ROBUSTA_UI_TOKEN" | ||
# OR pull from a secret: | ||
# - name: ROBUSTA_UI_TOKEN | ||
# valueFrom: | ||
# secretKeyRef: | ||
# name: robusta-secrets | ||
# key: robustaSinkToken | ||
Comment on lines
+76
to
+87
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. Correct environment variable names in Option B 🤖 Prompt for AI Agents
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. @arikalon1 I assume this is wrong? 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.
|
||
``` | ||
|
||
2. **Install with default settings**: | ||
|
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.
🛠️ Refactor suggestion
Refine Option A example to match actual env var names
The placeholder
TOKEN_ENV_VAR_NAME
may be confusing. Replace it with the concrete variable your deployment uses (e.g.,ROBUSTA_UI_TOKEN
orSTORE_API_KEY
) to ensure consistency between docs and code.🤖 Prompt for AI Agents