如何使用Kubernetes的configmap通过环境变量注入到pod里
在Kubernetes官网里,有这样一篇文章,提到了Kubernetes里的一个最佳实践就是把应用代码同配置信息分开,一种方式就是使用Kubernetes 1.2里引入的configmap概念。 https://kubernetes.io/blog/2016/04/configuration-management-with-containers/ configmap实际上就是一系列键值对,存储于etcd里。etcd的官网有这样一句话: etcd is a distributed key-value store designed to reliably and quickly preserve and provide access to critical data. https://github.com/etcd-io/etcd/blob/