42

kubernetes的配置中心configmap-三只企鹅

 5 years ago
source link: http://blog.51cto.com/passed/2348256
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
在企业中,一般都有2-4种环境,开发,测试,交付,生产这四种。这几种环境的配置也有所变化,我们在部署的时候通常不能一个配置文件部署四个环境。不通用。特别是容器化环境。在容器化应用中,每个环境都要独立的打一个镜像再给镜像一个特有的tag,这很麻烦,这就要用到k8s原生的配置中心configMap就是用解决这个问题的。下面看示例。使用configMap部署应用。这里使用nginx来做示例,简单粗暴。默

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK