-
Notifications
You must be signed in to change notification settings - Fork 38
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
Flagd
serves flagd service with random port even if default port 8013
was set
#709
Comments
I think it caused by wrong environment variable in It was operator created apiVersion: v1
kind: Pod
metadata:
name: flagd
...
spec:
containers:
- name: flagd
image: ghcr.io/open-feature/flagd:v0.11.1
args:
- start
- --management-port
- "8014"
...
env:
- name: _MANAGEMENT_PORT
value: "8014"
- name: _PORT
value: "8013"
- name: _EVALUATOR
value: json
- name: _LOG_FORMAT
- name: _RESOLVER
value: rpc Is it right environment variable name with My helm chart version is |
The prefix should be "FLAGD". Here's a list of valid environment variables. |
Ya this is a bug - not sure how it got overlooked. The env-vars are more useful for the sidecar-style deployment - since they are injected both into the flagd container (sidecar) and the application container to keep them in sync. There might be a reason to ensure they are set properly here but I'm not sure it really matters. I think the important thing is to apply all the configs from the |
Flagd
serves flagd service with random port even if default port 8031
was setFlagd
serves flagd service with random port even if default port 8013
was set
I set
managementPort
andport
inFeatureFlagSource
like below, but onlymanagementPort
was correctly set andport
was not.FeatureFlagSource
Flagd
Operator creates
flagd
pods but onlymanagementPort
was properly set not theport
I set the
flagd
port with8888
in FeatureFlagSource but as you can see in above logs,IResolver
was not served with8888
port.So we need to add
--port
argument and its configuration in flagd pod.open-feature-operator/common/flagdinjector/flagdinjector.go
Lines 389 to 410 in 64cdc25
The text was updated successfully, but these errors were encountered: