38 lines
805 B
YAML
38 lines
805 B
YAML
|
|
apiVersion: v1
|
||
|
|
kind: ConfigMap
|
||
|
|
metadata:
|
||
|
|
name: tier-o-canary
|
||
|
|
namespace: tier-o-canary
|
||
|
|
data:
|
||
|
|
nginx.conf: |
|
||
|
|
pid /tmp/nginx.pid;
|
||
|
|
|
||
|
|
events {}
|
||
|
|
|
||
|
|
http {
|
||
|
|
access_log /dev/stdout;
|
||
|
|
error_log /dev/stderr notice;
|
||
|
|
client_body_temp_path /tmp/client_body;
|
||
|
|
proxy_temp_path /tmp/proxy;
|
||
|
|
fastcgi_temp_path /tmp/fastcgi;
|
||
|
|
uwsgi_temp_path /tmp/uwsgi;
|
||
|
|
scgi_temp_path /tmp/scgi;
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 8080;
|
||
|
|
server_name _;
|
||
|
|
|
||
|
|
add_header Cache-Control "no-store" always;
|
||
|
|
add_header X-Quorate-Canary "tier-o" always;
|
||
|
|
|
||
|
|
location = /healthz {
|
||
|
|
default_type text/plain;
|
||
|
|
return 200 "ok\n";
|
||
|
|
}
|
||
|
|
|
||
|
|
location / {
|
||
|
|
default_type text/plain;
|
||
|
|
return 200 "tier-o-canary\n";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|