tmp - configmap动态更新配置?

```

# 这是刚刚更新过的configmaps

controlplane $ k describe configmaps nginx-conf
Name:         nginx-conf
Namespace:    default
Labels:       <none>
Annotations:  <none>

Data
====
nginx.conf:
----
user nginx;
worker_processes  1;
events {
  worker_connections  10240;
}
http {
  server {
      listen       80;
      server_name  localhost;
      location / {
        root   /usr/share/nginx/html; #Change this line
        index  index.html index.htm;
    }
  }
}


BinaryData
====

Events:  <none>
controlplane $ k describe configmaps nginx-config
Name:         nginx-config
Namespace:    default
Labels:       <none>
Annotations:  <none>

Data
====
nginx.conf:
----
user nginx;
worker_processes  1;
events {
  worker_connections  10240;
}
http {
  server {
      listen       80;
      server_name  localhost;
      location / {
        root   /usr/share/nginx/html; #Change this line
        index  index.html index.htm;
    }
  }
}


BinaryData
====

Events:  <none>

# 这是pod里读到的,还是没更新的版本
controlplane $ k exec -it nginx-pod -- bash
root@nginx-pod:/# cat /etc/nginx/nginx.conf
events {
}
http {
    server {
        listen       80;
        server_name  localhost;

        location / {
            root   /usr/share/nginx/html;
            index  index.html index.htm;
        }
    }
}

```

相关推荐

  1. tmp - configmap动态更新配置?

    2024-07-20 14:10:01       33 阅读
  2. Kubernetes那点事儿——配置存储:ConfigMap、Secret

    2024-07-20 14:10:01       57 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-20 14:10:01       172 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-20 14:10:01       190 阅读
  3. 在Django里面运行非项目文件

    2024-07-20 14:10:01       158 阅读
  4. Python语言-面向对象

    2024-07-20 14:10:01       171 阅读

热门阅读

  1. ENSP常见命令及协议命令

    2024-07-20 14:10:01       36 阅读
  2. LeetCode 221. 最大正方形

    2024-07-20 14:10:01       40 阅读
  3. Vue中Key的作用

    2024-07-20 14:10:01       31 阅读
  4. VMware 虚拟机 ping 不通原因排查

    2024-07-20 14:10:01       37 阅读
  5. 数据响应式(Object.defineProperty和Proxy)

    2024-07-20 14:10:01       31 阅读
  6. 云计算的三种服务模式

    2024-07-20 14:10:01       33 阅读
  7. wps的xls文件,如何过滤掉空白没有数据的行

    2024-07-20 14:10:01       34 阅读
  8. Provider(5) - AdjustChannelsBufferProvider

    2024-07-20 14:10:01       29 阅读
  9. lua 游戏架构 之 SceneLoad场景加载(一)

    2024-07-20 14:10:01       38 阅读