-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
higress-gateway安装失败报容器未准备就绪探针503 #402
Comments
请提供以下信息:
|
1、Linux version 5.4.119-19-0009.11 centos |
是否调整deployment开启了 hostnetwork?导致监听宿主机的80端口没有权限,如果是这样请加上这个参数:--set higress-core.gateway.hostNetwork=true |
也有可能是tke本身CNI的限制,可以参考这段配置调整deployment: |
感谢大佬,通过这种方式解决了 |
遇到类似问题,可以用个这个命令把配置固化在values里,避免后续升级配置被覆盖 helm upgrade higress higress.io/higress -n higress-system --set-json higress-core.gateway.containerSecurityContext='{"capabilities":{"drop":["ALL"],"add":["NET_BIND_SERVICE"]},"runAsUser":0,"runAsGroup":1337,"runAsNonRoot":false,"allowPrivilegeEscalation":true,"readOnlyRootFilesystem":true}' |
通过官网介绍的helm方式安装,controller、console正常,gateway异常:
截取的部分pod describe
Volumes:
istio-token:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 43200
istio-ca-root-cert:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: higress-ca-root-cert
Optional: false
config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: higress-config
Optional: false
istio-data:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
proxy-socket:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
podinfo:
Type: DownwardAPI (a volume populated by information about the pod)
Items:
metadata.labels -> labels
metadata.annotations -> annotations
requests.cpu -> cpu-request
limits.cpu -> cpu-limit
kube-api-access-hktvs:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional:
DownwardAPI: true
QoS Class: Guaranteed
Node-Selectors:
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
Warning Unhealthy 95s (x34799 over 18h) kubelet Readiness probe failed: HTTP probe failed with statuscode: 503
容器异常日志:
2023-06-28T12:59:51.805336555+08:00 [Envoy (Epoch 0)] [2023-06-28 04:59:51.805][16][error][config] listener '0.0.0.0_80' failed to bind or apply socket options: cannot bind '0.0.0.0:80': Permission denied
2023-06-28T12:59:51.805405296+08:00 [Envoy (Epoch 0)] [2023-06-28 04:59:51.805][16][warning][config] gRPC config for type.googleapis.com/envoy.config.listener.v3.Listener rejected: Error adding/updating listener(s) 0.0.0.0_80: cannot bind '0.0.0.0:80': Permission denied
The text was updated successfully, but these errors were encountered: