在Linux Debian上运行minikube
description service:
为了查看我的前端,我尝试设置ingres。
一切正常,包括使用curl验证:
$ curl http://octopus.ea.mot-solutions.com
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://octopus.ea.mot-solutions.com/clustercontrol/">here</a>.</p>
<hr>
<address>Apache/2.4.38 (Debian) Server at octopus.ea.mot-solutions.com Port 80</address>
</body></html>
然而,在我的浏览器中使用相同的http://octopus.ea.mot-solutions.com/显示"此站点无法访问">
在Linux Debian上运行minikube
description service:
Name: fe-service
Namespace: default
Labels: <none>
Annotations: <none>
Selector: app=octopus-frontend
Type: NodePort
IP Family Policy: SingleStack
IP Families: IPv4
IP: 10.104.191.56
IPs: 10.104.191.56
Port: <unset> 90/TCP
TargetPort: 9090/TCP
NodePort: <unset> 31977/TCP
Endpoints: 172.17.0.3:9090
Session Affinity: None
External Traffic Policy: Cluster
Events: <none>
描述安格尔:
Name: frontend-ingress
Labels: <none>
Namespace: default
Address: 192.168.49.2
Ingress Class: nginx
Default backend: <default>
Rules:
Host Path Backends
---- ---- --------
octopus.ea.mot-solutions.com
/ fe-service:9090 (172.17.0.3:9090)
Annotations: nginx.ingress.kubernetes.io/rewrite-target: /
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Sync 25m (x2 over 26m) nginx-ingress-controller Scheduled for sync
我用过:
kubectl expose deployment octopus-frontend --type=NodePort
:
minikube service fe-service
并将minikube IP放到/etc/hosts:
192.168.49.2 octopus.ea.mot-solutions.com
minikube版本:v1.25.2
我错过了什么吗?
url中缺少节点端口号
http://octopus.ea.mot-solutions.com:31977