increased TOTAL_ENV_SIZE and fixed deployment in Openshift. ENDPOINT is not needed anymore for Openshift

This commit is contained in:
luckysideburn
2019-04-19 17:55:26 -04:00
parent dd3d1f556d
commit b4df7de1ed

28
nginx/KubeInvaders.templ Normal file
View File

@@ -0,0 +1,28 @@
# These variables will be replaced by temporary_hack.sh
upstream kubernetes {
server ${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS};
}
server {
listen 8080 default_server;
listen [::]:8080 default_server;
root /var/www/html/;
index index.html;
location / {
try_files $uri $uri/ =404;
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
if_modified_since off;
expires off;
etag off;
}
location /kube {
rewrite /kube/(.*) /$1 break;
proxy_pass https://kubernetes;
proxy_redirect off;
proxy_set_header Host $host;
}
}