Skip to content
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

Some user-supplied configuration is overriden? #512

Open
usedUsername1 opened this issue Oct 23, 2024 · 1 comment
Open

Some user-supplied configuration is overriden? #512

usedUsername1 opened this issue Oct 23, 2024 · 1 comment

Comments

@usedUsername1
Copy link

Greetings,

I am trying to run the Alertmanager pod with two options different from the default configuration:

  1. Listening on a different port instead of the default port 9094.
  2. Using the local filesystem for storage.

I am really new to Kubernetes (K8s) and Cortex and haven’t worked with either of them before today.

I have tried to use some custom options using the following command:

sudo helm upgrade --version=2.4.0 --namespace cortex cortex cortex-helm/cortex -f cortex-values.yaml

I’ve attached the cortex-values.yaml file.
cortex-values.txt

The problem is that the Alertmanager pod keeps crashing (status is CrashLoopBackOff). I have deployed a debug pod and mounted the same volumes as Alertmanager in order to inspect the config file, and it looks like my user-supplied values are being overridden with the default values. I have also attached this config file.
actual-pod-config.txt

Running the Helm upgrade command with the --debug flag shows the final computed configuration values.
helm-debug.txt

Problem Details

The issue I am facing is that no matter what I do, I cannot seem to change the default Alertmanager storage value from s3 to local filesystem.

The output of the command:

sudo kubectl logs <pod-name>

kubectl-logs.txt

indicates that the reason for the pod's failure is an error trying to connect to an S3 endpoint. I have also attached this log output here.

Questions

  • Is there something I am doing wrong?
  • Is there something wrong with the software?

Thanks!

@nschad
Copy link
Collaborator

nschad commented Oct 24, 2024

You're not actually overwriting the default values from this chart. ALL cortex-specific configuration must be under the config: key.

Example:

config:
ingester:
lifecycler:
join_after: 30s
final_sleep: 30s
tokens_file_path: "/data/tokens"
ring:
replication_factor: 1
kvstore:
store: "memberlist"
blocks_storage:
backend: "filesystem"
tsdb:
dir: "/data/tsdb"
bucket_store:
sync_dir: "/data/tsdb-sync"
filesystem:
dir: "/data/store"

Have a look at our Values Guide

So in your file it would be

config:
  blocks_storage:
    backend: filesystem
[...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants