Commit 88b6e02b by ningfd

fix backend cm

1 parent 0de1cc07
Showing with 1 additions and 0 deletions
...@@ -16,6 +16,7 @@ data: ...@@ -16,6 +16,7 @@ data:
proxy_pass http://kpl--frontend.kpl.svc.cluster.local:80$request_uri; proxy_pass http://kpl--frontend.kpl.svc.cluster.local:80$request_uri;
} }
location ^~ /api/v1 { location ^~ /api/v1 {
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
proxy_pass http://kpl--backend.kpl.svc.cluster.local:8919$request_uri; proxy_pass http://kpl--backend.kpl.svc.cluster.local:8919$request_uri;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_connect_timeout 10s; proxy_connect_timeout 10s;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!