首页 > 其他 > 详细

configMap

时间:2020-05-31 17:03:24      阅读:37      评论:0      收藏:0      [点我收藏+]
apiVersion: v1
kind: ConfigMap
metadata:
  name: nginx-configmap2
data:
  default.conf: |
    server {
      listen       81;
      server_name  localhost;
      location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
         }
      error_page   500 502 503 504  /50x.html;
      location = /50x.html {
        root   /usr/share/nginx/html;
        }
    }
  default1.conf: |
    server {
      listen       80;
      server_name  localhost;
      location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
      }
      error_page   500 502 503 504  /50x.html;
      location = /50x.html {
        root   /usr/share/nginx/html;
      }

 

configMap

原文:https://www.cnblogs.com/director/p/13018818.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!