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;
}
}
}
```
原文地址:https://blog.csdn.net/mathemagics/article/details/140559056
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!