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

status.podIP or equivalent when using Aspir8? #261

Open
Jolurawa opened this issue Oct 22, 2024 · 0 comments
Open

status.podIP or equivalent when using Aspir8? #261

Jolurawa opened this issue Oct 22, 2024 · 0 comments

Comments

@Jolurawa
Copy link

The services in my app need to have an environment variable for the binding address which I could usually set using something like this:

     - name: BindingAddress
        valueFrom:
          fieldRef:
            fieldPath: status.podIP

Is there a way to get Aspir8 to generate this kind of output?

I've tried setting the environment variable in Program.cs using .GetEndpoint("endpointName").Property(EndpointProperty.IPV4Host); and .WithEnvironment(x => x.EnvironmentVariables["BindingAddress"] = value) but that results in my binding address env var being set to the name of the resource rather than the actual ip address. Thanks

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

1 participant