Use Kubernetes secrets as environment variables in Angular 6
问题 I configured an automatic build of my Angular 6 app and deployment in Kubernetes each time is push to my code repository (Google Cloud Repository). Dev environment variables are classically store in a environment.ts file like this: export const environment = { production: false, api_key: "my_dev_api_key" }; But I don't want to put my Prod secrets in my repository so I figured I could use Kubernetes secrets. So, I create a secret in Kubernetes: kubectl create secret generic literal-token -