kubernetes/Configmaps_Secrets_K3S/nginx-cm.yml

28 lines
488 B
YAML
Raw Normal View History

2022-03-27 23:02:36 +02:00
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-cm
data:
# key: value
# file: |
# content
# ---
nginx.conf: |
user nginx;
worker_processes 1;
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name example.com;
location / {
root /usr/share/nginx/html;
index index.html index.htm index.php;
}
location /test {
return 401;
}
}
}