全,
我们按照link - https://rancher.com/docs/rancher/v2.x/en/installation/ha/在我们的亚马逊网络服务环境中安装了Kubernetes和RKE
所有步骤都运行得很好,AWS NLB中的节点运行正常。我没有看到任何pod的问题。但是当我们点击NLB -> https://nlburl.amazonaws.com时,它会给出一个错误/消息"default backend - 404“。当我在每个节点中输入localhost时,同样的错误也会出现。版本和其他cmd输出如下所示。
关于如何调试和修复问题的想法或意见?
ubuntu@xxx:/tmp$ ./rke -v
rke version v0.1.14
ubuntu@xxx:/tmp$ kubectl version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.1", GitCommit:"eec55b9ba98609a46fee712359c7b5b365bdd920", GitTreeState:"clean", BuildDate:"2018-12-13T10:39:04Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}
ubuntu@xxx:/tmp$ kubectl --kubeconfig /tmp/kube_config_cluster.yml get ingress -n cattle-system -o wide
NAME HOSTS ADDRESS PORTS AGE
rancher rancher.mydomain.com 1.2.3.4,5.6.7.8,9.0.1.2 80, 443 19h
ubuntu@xxx:/tmp$ kubectl --kubeconfig /tmp/kube_config_cluster.yml get nodes
NAME STATUS ROLES AGE VERSION
1.2.3.4 Ready controlplane,etcd,worker 21h v1.11.5
5.6.7.8 Ready controlplane,etcd,worker 21h v1.11.5
9.0.1.2 Ready controlplane,etcd,worker 21h v1.11.5
ubuntu@xxx:/tmp$ kubectl --kubeconfig /tmp/kube_config_cluster.yml describe ingress -n cattle-system
Name: rancher
Namespace: cattle-system
Address: 1.2.3.4,5.6.7.8,9.0.1.2
Default backend: default-http-backend:80 (<none>)
TLS:
tls-rancher-ingress terminates rancher.mydomain.com
Rules:
Host Path Backends
---- ---- --------
rancher.mydomain.com
rancher:80 (<none>)
Annotations:
certmanager.k8s.io/issuer: rancher
field.cattle.io/publicEndpoints: [{"addresses":["1.2.3.4","5.6.7.8","9.0.1.2"],"port":443,"protocol":"HTTPS","serviceName":"cattle-system:rancher","ingressName":"cattle-system:rancher","hostname":"rancher.mydomain.com","allNodes":false}]
nginx.ingress.kubernetes.io/proxy-connect-timeout: 30
nginx.ingress.kubernetes.io/proxy-read-timeout: 1800
nginx.ingress.kubernetes.io/proxy-send-timeout: 1800
Events: <none>
ubuntu@1.2.3.4:/tmp$ curl localhost
default backend - 404发布于 2018-12-27 18:59:55
您看到的404来自群集入口的默认后端。
您访问的Rancher Server URL不正确。试试https://rancher.mydomain.com
要使其正常工作,要么需要有一个指向NLB的DNS条目,要么在本地计算机上的/etc/hosts中有一个类似的条目。
https://stackoverflow.com/questions/53938692
复制相似问题