Commit 6481c312 by tingweiwang

增加 {{ K8S_DNS_SVC }} 字段

1 parent 819c0870
Showing with 3 additions and 3 deletions
......@@ -5,7 +5,7 @@ data:
listen 80;
location ~ /tensorboard/([-_.:\w]+)/(.*) {
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
resolver {{ K8S_DNS_SVC }} valid=5s; #默认是kube-dns.kube-system.svc.cluster.local
rewrite_log on;
rewrite ^/tensorboard/([-_.:\w]+)/(.*) /$2 break;
proxy_pass http://$1;
......@@ -15,7 +15,7 @@ data:
proxy_set_header Origin "";
}
location ~ /jupyter/([-_.:\w]+)/(.*) {
resolver kube-dns.kube-system.svc.cluster.local valid=1s;
resolver {{ K8S_DNS_SVC }} valid=1s;
rewrite_log on;
rewrite ^/jupyter/([-_.:\w]+)/(.*) /jupyter/$1/$2 break;
proxy_pass http://$1;
......@@ -25,7 +25,7 @@ data:
proxy_set_header Origin "";
}
location ~ /standard/([-_.:\w]+)/(.*) {
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
resolver {{ K8S_DNS_SVC }} valid=5s;
rewrite_log on;
rewrite ^/standard/([-_.:\w]+)/(.*) /$2 break;
proxy_pass http://$1;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!