Commit 5e884084 by ningfd

Update cfg-kpl-nginx.yaml.j2

1 parent a23c2c4f
Showing with 22 additions and 0 deletions
......@@ -54,6 +54,17 @@ data:
client_max_body_size 10240m;
}
location ~ /tensorboard/proxy/([-_.:\w]+)/(.*) {
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
rewrite_log on;
rewrite ^/tensorboard/proxy/([-_.:\w]+)/(.*) /$2 break;
proxy_pass http://$1.autodl.svc.cluster.local:9999;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Origin "";
}
location /grafana {
root html;
index index.html index.htm;
......@@ -139,6 +150,17 @@ data:
proxy_set_header Host $host;
client_max_body_size 10240m;
}
location ~ /tensorboard/proxy/([-_.:\w]+)/(.*) {
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
rewrite_log on;
rewrite ^/tensorboard/proxy/([-_.:\w]+)/(.*) /$2 break;
proxy_pass http://$1.autodl.svc.cluster.local:9999;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Origin "";
}
location /grafana {
root html;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!