当前位置: 首页 > news >正文

三亚市网站建设_网站建设公司_轮播图_seo优化

宁波网站建设电话咨询,泰安网站开发推广,电子商务行业的发展趋势,外包公司好吗持续集成部署-k8s-配置与存储-配置管理#xff1a;配置文件不可变 1. 配置文件不可变场景2. 配置 ConfigMap 为不可修改 1. 配置文件不可变场景 上一篇我们说到#xff0c;对于 ConfigMap 的热更新操作#xff0c;我们在创建了ConfigMap 之后#xff0c;由于某种原因… 持续集成部署-k8s-配置与存储-配置管理配置文件不可变 1. 配置文件不可变场景2. 配置 ConfigMap 为不可修改 1. 配置文件不可变场景 上一篇我们说到对于 ConfigMap 的热更新操作我们在创建了ConfigMap 之后由于某种原因我们的配置文件需要变动了k8s 支持我们热更新配置文件的内容但是在某些情况下为了生产环境的稳定性一些重要的文件希望上线后就不允许修改了。 此时在配置 ConfigMap 时可以设置 immutable: true 来禁止修改。 2. 配置 ConfigMap 为不可修改 查看当前环境中 configMap [rootdocker-54 config]# kubectl get cm NAME DATA AGE kube-root-ca.crt 1 194d nginx-conf-cm 1 19d spring-boot-test-aliases-yaml 1 20d spring-boot-test-yaml 1 20d test-dir-config 2 20d test-env-config 2 20d test-key-value-config 2 20d [rootdocker-54 config]# 修改 test-dir-config 的配置设置 immutable: true 然后直接保存退出 [rootdocker-54 config]# kubectl edit cm test-dir-config # Please edit the object below. Lines beginning with a # will be ignored, # and an empty file will abort the edit. If an error occurs while saving this file will be # reopened with the relevant failures. # apiVersion: v1 data:db.properties: |username: zhangsanpassword: abc123456redis.properties: |host: 127.0.0.1port: 6379 kind: ConfigMap metadata:creationTimestamp: 2023-11-05T02:56:57Zname: test-dir-confignamespace: defaultresourceVersion: 12701596uid: 9a6c3cd3-a2d9-41c2-91b8-229e8e6d19ca immutable: true ~ /tmp/kubectl-edit-214262249.yaml 20L, 557C written configmap/test-dir-config edited [rootdocker-54 config]# 可以看到当前还是可以修改的。 接着我们再次尝试修改 # Please edit the object below. Lines beginning with a # will be ignored, # and an empty file will abort the edit. If an error occurs while saving this file will be # reopened with the relevant failures. # # configmaps test-dir-config was not valid: # * data: Forbidden: field is immutable when immutable is set # apiVersion: v1 data:db.properties: |username: lisipassword: abc123456redis.properties: |host: 127.0.0.1port: 6379 immutable: true kind: ConfigMap metadata:creationTimestamp: 2023-11-05T02:56:57Zname: test-dir-confignamespace: defaultresourceVersion: 13734572uid: 9a6c3cd3-a2d9-41c2-91b8-229e8e6d19ca ~ ~ /tmp/kubectl-edit-685283905.yaml 23L, 665C可以看到上面在我修改了 username的值为 lisi 之后保存然后提示configmaps test-dir-config was not valid: data: Forbidden: field is immutable when immutable is set 这里告诉我们由于之前设置过 immutable: true所以现在不让我们修改了。
http://www.ihoyoo.com/news/1982.html

相关文章:

  • wps怎么做网站开福区城乡建设局网站
  • 什么网站做软件任务挣钱wordpress 替换谷歌
  • 微信网站设计运营网站建设果麦科技
  • 如何搭建游戏平台北京seo代理计费
  • 网站开发中涉及的侵权行为wordpress博客管理
  • 沙田镇网站建设公司如何开网上商城
  • 广州邮局网站成都专业网站建设套餐
  • 云南网站建设维修公司做亚马逊网站需要租办公室吗
  • 南京网站搭建公司在线模版下载网站
  • 网站优化团队手机制作报价单app
  • 站长之家排行榜网站更换服务器
  • 写网站软件西安网页设计培训机构哪个好
  • 上海建网站服务器无锡网站制作联系方式
  • 局域网网站架设wordpress统计插件
  • 网站里的友情链接微信建站官网免费注册
  • 燕郊教育网站建设wordpress如何加友链
  • 网站的底部设计营销案例分析报告模板
  • 电商软文广告经典案例滁州seo网站推广方案
  • 便宜的手机网站建设开发者模式怎么关闭华为
  • 各大网站响应生态建设南宁网站排名优化公司
  • 中英文网站开发公司软件开发工具排行榜
  • 给客户做网站需要付法律责任吗刚刚邯郸发生大事了
  • python做网站性能太差网上做视频赚钱的网站有哪些
  • 旅游网站建设规划书360提交入口
  • 公司做了网站怎么做推广wordpress 两个数据库 互通
  • 建设网站需要什么条件面包屑导航的网站
  • 微信公众号 做不了微网站网上快速赚钱方法
  • 网站建设项目招标标书登记注册身份验证
  • linux网站如何做ip解析极速网站建设服务商
  • 百度建站官网涿州城乡建设局网站