The Wind
The Wind

如上图所示,代理节点和仓库节点,应用节点的网络是通的,仓库节点跟应用节点的网络是不通的。 从应用节点拉取镜像,期待请求会转发到代理节点,代理节点从仓库节点拉取镜像。 但实际上从应用节点拉取镜像出错,出错原因好像是在认证请求上。
@OnlyPiglet Are you finished the feature, i also have the need for it。
~~~ package main import ( "errors" "net/http" "strings" "github.com/alibaba/higress/plugins/wasm-go/pkg/wrapper" "github.com/higress-group/proxy-wasm-go-sdk/proxywasm" "github.com/higress-group/proxy-wasm-go-sdk/proxywasm/types" "github.com/tidwall/gjson" ) var defaultTimeout uint32 = 60000 func main() { wrapper.SetCtx( "try-paths", wrapper.ParseConfigBy(parseConfig), wrapper.ProcessRequestHeadersBy(onHttpRequestHeaders), ) } // 自定义插件配置 type...
主逻辑是不是这样的?
可以添加一个nginx的proxy_cache 缓存功能做请求容灾