当我尝试为 awx_web 容器设置活性和就绪性问题时,我不断收到此错误
Liveness probe failed: Get http://POD_IP:8052/: dial tcp POD_IP:8052: connect: connection refused
Run Code Online (Sandbox Code Playgroud)
我的容器 awx_web 部署中的“Liveness & Readiness”部分
ports:
- name: http
containerPort: 8052 # the port of the container awx_web
protocol: TCP
livenessProbe:
httpGet:
path: /
port: 8052
initialDelaySeconds: 5
periodSeconds: 5
readinessProbe:
httpGet:
path: /
port: 8052
initialDelaySeconds: 5
periodSeconds: 5
Run Code Online (Sandbox Code Playgroud)
如果我测试端口 8052 是否从与包含容器 awx_web 的 pod 位于同一命名空间的另一个 pod 中打开,或者如果我使用部署在与容器 awx_web 相同的 pod 中的容器进行测试,我会得到此消息(端口已打开)
/ # nc -vz POD_IP 8052
POD_IP (POD_IP :8052) open
Run Code Online (Sandbox Code Playgroud)
如果我从部署了包含容器 awx_web 的 …
我有一个 Apache 服务器 v2.4.43 为我的网站提供服务,并且我使用一个简单的 .htpasswd,我使用指令“AuthUserFile <path to my .htpasswd file>”在 .htaccess 中调用它来进行身份验证。
现在,该解决方案适用于所有浏览器(将显示一个弹出窗口,要求输入用户名/密码),但 Edge 浏览器(基于 Chromium 版本 84.0.522.52)除外。在显示要求您提供凭据的弹出窗口之前,它会引发以下错误:
Unauthorized
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Apache/2.4.43 (Unix) Server at mywebsite.com Port 443
Run Code Online (Sandbox Code Playgroud)
任何想法将不胜感激。