-
-
Notifications
You must be signed in to change notification settings - Fork 687
[Bug] 使用deploy/kubernetes进行部署时,提示ingress.yml相关错误 #360
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
Comments
|
以下做一个问题排查处理的记录。 根据大佬指引的方向,辗转看了好几个其他开源项目的issue,最终摸查到了官方的这篇文档:调试DNS问题 https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/dns-debugging-resolution/ 进行排查(在我自己VPS上的执行结果):
虽然对k8s的确有不太熟悉之处,但其实查到这里的时候突然有些明白了,我的dns服务这里用的是coredns,跟kube-dns不是同一个,laf原配ingress.yaml里面用的是kube-dns的域名“kube-dns.kube-system.svc.cluster.local”而不是“kubernetes.default.svc.cluster.local”这个(似乎后者这个更为通用,可以使用kube-dns和coredns?)。遂将ingress.yaml中的resolver修改了,马上进行测试。 最终apply结果如下:
部署问题似乎解决了。请求重开此问题,想恳请大佬关注一下resolver这里,是否可以按如上提到的进行修改:laf官方k8s部署文件中ingress.yaml的resolver修改为 kubernetes.default.svc.cluster.local 。谢谢大佬的关注! |
👍可以直接pr 改成你建议的那样 |
请大佬审核,谢谢: #364 |
…364 ) * Update deploy/kubernetes/README.md and deploy/kubernetes/ingress.yml. * Fix ingress.yml
在你实际部署的过程中,如果有其它配置需要更新的, 也可以一同更新上来。 |
Search before asking
Environment
Linux (self-host)
CPU Architecture
amd64
laf version
0.8.x
What happened
环境是国外VPS,Ubuntu 18.04,自己部署的单节点 k8s v1.22.1 + kubesphere v3.2.0;
已修改config.yml、ingress.yml中与域名相关的为自己域名的nip.io解析。
执行 kubectl apply -f . 时,提示如下错误内容:
日志较长,详见下方debug logs区内容。
谢谢大佬的支持!
How to reproduce
直接git clone,然后只对config.yml、ingress.yml中与域名相关的为自己域名的nip.io解析进行修改,没有做其他任何改动,然后apply,此时会出现该问题。
Debug logs
namespace/laf created
namespace/laf-apps created
clusterrolebinding.rbac.authorization.k8s.io/clusterrolebinding created
service/app-console created
deployment.apps/app-console created
configmap/db-config created
configmap/oss-config created
configmap/root-account created
configmap/secret-salt created
configmap/deploy-domain created
configmap/app-service created
ingress.networking.k8s.io/ingress-oss-console created
ingress.networking.k8s.io/ingress-oss-endpoint created
ingress.networking.k8s.io/ingress-oss-subdomain created
ingress.networking.k8s.io/ingress-sys-console created
ingress.networking.k8s.io/ingress-app-console created
ingress.networking.k8s.io/ingress-sys-api created
ingress.networking.k8s.io/ingress-sys-extension-api created
service/instance-controller created
deployment.apps/instance-controller created
service/mongo created
statefulset.apps/mongo created
service/oss created
statefulset.apps/oss created
service/sys-console created
deployment.apps/sys-console created
service/system-server created
deployment.apps/system-server created
Error from server (BadRequest): error when creating "ingress.yml": admission webhook "validate.nginx.ingress.kubernetes.io" denied the request:
Error: exit status 1
2022/10/10 16:41:03 [warn] 1553#1553: the "http2_max_field_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /tmp/nginx/nginx-cfg3713638685:144
nginx: [warn] the "http2_max_field_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /tmp/nginx/nginx-cfg3713638685:144
2022/10/10 16:41:03 [warn] 1553#1553: the "http2_max_header_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /tmp/nginx/nginx-cfg3713638685:145
nginx: [warn] the "http2_max_header_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /tmp/nginx/nginx-cfg3713638685:145
2022/10/10 16:41:03 [warn] 1553#1553: the "http2_max_requests" directive is obsolete, use the "keepalive_requests" directive instead in /tmp/nginx/nginx-cfg3713638685:146
nginx: [warn] the "http2_max_requests" directive is obsolete, use the "keepalive_requests" directive instead in /tmp/nginx/nginx-cfg3713638685:146
2022/10/10 16:41:03 [emerg] 1553#1553: host not found in resolver "kube-dns.kube-system.svc.cluster.local" in /tmp/nginx/nginx-cfg3713638685:294
nginx: [emerg] host not found in resolver "kube-dns.kube-system.svc.cluster.local" in /tmp/nginx/nginx-cfg3713638685:294
nginx: configuration file /tmp/nginx/nginx-cfg3713638685 test failed
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: