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?
Azure Kubernetes environment variable Synchronization issues
Yongchao Liu (Neusoft America Inc)
186
Reputation points Microsoft Vendor
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.
Accepted answer
-
srbhatta-MSFT 8,551 Reputation points Microsoft Employee
2022-05-26T07:19:49.387+00:00