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

Automatic Master Selection: How to apply dynamic environment variables? #148

Open
matthiasguentert opened this issue May 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@matthiasguentert
Copy link

Describe the bug
According to the documentation whe should add the following environment variable, so that the master selection happens automatically.

env:
- name: POD_NAME
  valueFrom:
    fieldRef:
      fieldPath: metadata.name

However, the graylog.env value only allows for the following format:

env:
  POD_NAME: "foobar" 

How can we apply the dynamic environment variables?

Version of Helm and Kubernetes:

Helm Version:

$ helm version
version.BuildInfo{Version:"v3.10.3", GitCommit:"835b7334cfe2e5e27870ab3ed4135f136eecc704", GitTreeState:"clean", GoVersion:"go1.18.9"}

Kubernetes Version:

$ kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0", GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean", BuildDate:"2022-05-03T13:46:05Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.6", GitCommit:"dc2f9dc64421983f0f7839da8ab4ab6d4673daad", GitTreeState:"clean", BuildDate:"2023-04-08T13:29:19Z", GoVersion:"go1.19.5", Compiler:"gc", Platform:"linux/amd64"}

Which version of the chart:
2.3.2 https://artifacthub.io/packages/helm/kong-z/graylog/2.3.2

@matthiasguentert matthiasguentert added the bug Something isn't working label May 23, 2023
@jackgill
Copy link

@matthiasguentert this doesn't directly address your question about environmental variables, but if you're primarily concerned with automatic master selection you may find that the solution discussed in #83 resolves the problem (it did for me).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants