码迷,mamicode.com
首页 > 其他好文 > 详细

configMap

时间:2020-05-31 16:29:19      阅读:55      评论:0      收藏:0      [点我收藏+]

标签:conf   efault   data   cat   style   default   sha   version   def   

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

标签:conf   efault   data   cat   style   default   sha   version   def   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!