Azure Kubernetes environment variable Synchronization issues

Yongchao Liu (Neusoft America Inc) 186 Reputation points Microsoft Vendor
2022-05-20T02:36:23.273+00:00

I have a service that needs to call others service
this service invocation like this:
os.getenv('{}_SERVICE_HOST',serviceName)
https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#environment-variables

The call was fine, but I encountered that when I add a new internal service, the environment variable was not present on the calling side
B service as calling side and have env:
env:B_SERVICE_HOST
A_SERVICE_HOST

When I deploy a new C:
env:B_SERVICE_HOST
A_SERVICE_HOST
C_SERVICE_HOST
How do I sync env over without redeploying B?

Thanks.

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,000 questions
0 comments No comments
{count} votes

Accepted answer
  1. srbhatta-MSFT 8,551 Reputation points Microsoft Employee
    2022-05-26T07:19:49.387+00:00

    Hello @Yongchao Liu (Neusoft America Inc) , Thanks for reaching out. Apologies for the delay in response. Could you please elaborate the issue a little more for us to understand it better?


0 additional answers

Sort by: Most helpful