【发布时间】:2020-10-07 15:55:53
【问题描述】:
我正在尝试在本地运行清漆缓存。使用 nginx-ingress-controller 代理 kubernetes 管理的域。
因此,我有 ELB 和入口控制器将请求路由到 3 个不同的 kubernetes 节点,我收到以下错误:
➜ docker logs a5d30511ffc756f2b5cf4b243ff66d1d9e9d7d47f560f3ca03d07b42efcc763a
Could not delete 'vcl_boot.1601710985.783551/vgc.sym': No such file or directory
Error:
Message from VCC-compiler:
Backend host "sub.domain.com:443": resolves to too many addresses.
Only one IPv4 and one IPv6 are allowed.
Please specify which exact address you want to use, we found all of these:
31.208.6.184:443
31.208.221.23:443
35.161.52.197:443
('/etc/varnish/default.vcl' Line 4 Pos 11)
.host = "sub.domain.com:443";
----------###########################-
In backend specification starting at:
('/etc/varnish/default.vcl' Line 3 Pos 1)
backend default {
#######----------
Running VCC-compiler failed, exited with 2
VCL compilation failed
所以我的配置是:
vcl 4.0;
backend default {
.host = "sub.domain.com:443";
}
可以做什么?
【问题讨论】:
标签: kubernetes varnish nginx-ingress varnish-vcl