Quantcast
Channel: What's the best practice to expose ENV vars in a React JS app deployed on K8S? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by RadekW for What's the best practice to expose ENV vars in a React...

ConfigMap is what you are looking for to achieve it.A ConfigMap is an API object used to store non-confidential data in key-value pairs. Pods can consume ConfigMaps as environment variables,...

View Article



Answer by OlGe for What's the best practice to expose ENV vars in a React JS...

you can store the key:value pairs of your ENVs in kubernetes secrets and expose them to your service as ENVs by referencing the secret(s) in your deployment.secret.yaml:apiVersion: v1kind:...

View Article

What's the best practice to expose ENV vars in a React JS app deployed on K8S?

I have a question regarding what are the best practices in managing environment variables for a React application deployed on K8S, like third-party service apiKeys from example.Usually one could put...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images