我能够在Azure中成功设置代理服务器,并在浏览器中使用它进行验证。我有一个在Kubernetes pod上运行的应用程序,我已将代理url作为环境变量传递给了它。该Pod被配置为daemonSet。一旦输入代理网址-以下是我得到的错误:
`/usr/lib/ruby/2.3.0/net/http/response.rb:120:in `error!': 503 "Service Unavailable" (Net::HTTPFatalError)
from /usr/lib/ruby/2.3.0/net/http/response.rb:129:in `value'
from /usr/lib/ruby/2.3.0/net/http.rb:920:in `connect'
from /usr/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
from /usr/lib/ruby/2.3.0/net/http.rb:852:in `start'
from /var/lib/gems/2.3.0/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in `transmit'
from /var/lib/gems/2.3.0/gems/rest-client-2.0.2/lib/restclient/request.rb:145:in `execute'
from /var/lib/gems/2.3.0/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in `execute'
from /var/lib/gems/2.3.0/gems/rest-client-2.0.2/lib/restclient/resource.rb:51:in `get'
from /var/lib/gems/2.3.0/gems/kubeclient-1.1.4/lib/kubeclient/common.rb:328:in `block in api'
from /var/lib/gems/2.3.0/gems/kubeclient-1.1.4/lib/kubeclient/common.rb:58:in `handle_exception'
from /var/lib/gems/2.3.0/gems/kubeclient-1.1.4/lib/kubeclient/common.rb:327:in `api'
from /var/lib/gems/2.3.0/gems/kubeclient-1.1.4/lib/kubeclient/common.rb:322:in `api_valid?'
from /var/lib/gems/2.3.0/gems/fluent-plugin-kubernetes_metadata_filter-2.1.2/lib/fluent/plugin/filter_kubernetes_metadata.rb:234:in `configure'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/plugin.rb:164:in `configure'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/agent.rb:152:in `add_filter'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/agent.rb:70:in `block in configure'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/agent.rb:64:in `each'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/agent.rb:64:in `configure'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/root_agent.rb:112:in `configure'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/engine.rb:131:in `configure'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/engine.rb:96:in `run_configure'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/supervisor.rb:795:in `run_configure'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/supervisor.rb:579:in `dry_run'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/supervisor.rb:597:in `supervise'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/supervisor.rb:502:in `run_supervisor'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/lib/fluent/command/fluentd.rb:310:in `<top (required)>'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /var/lib/gems/2.3.0/gems/fluentd-1.2.0/bin/fluentd:8:in `<top (required)>'
from /usr/local/bin/fluentd:22:in `load'
from /usr/local/bin/fluentd:22:in `<main>'
此时的pod的开头不是错误CrashLoopBackOff
。
任何帮助都会很棒。另外,如果需要其他任何信息-我会继续补充。请提及。