k8s 在使用带有 ingres 的前缀路径时对应用服务白页做出反应

问题描述 投票:0回答:1

我的集群中有 2 个服务: foo=react goo=其他应用程序没有反应 我希望入口将 /foo 路由到 fooservice。

这是 fooservice(运行 React 应用程序): apiVersion: v1
kind: Service
metadata:
name: fooservice
spec:
type: ClusterIP
selector:
app: fooservice
ports:
- protocol: TCP
port: 80
targetPort: 3000

当这是 ingress.yaml 时,我得到 foo 的白页,(goo 工作正常) 无法加载资源(在网络中) view file

当我将入口更改为此时,它可以工作,但我从 / 和 /foo 获得 fooservice,我不想要这种行为:

view file

reactjs kubernetes nginx path nginx-ingress
1个回答
-3
投票

任何使用电子设备并可由营销专家用来传达促销[消息][1]并通过客户旅程衡量其影响的营销。我 [1]:https://dev-citch2145.pantheonsite.io/

© www.soinside.com 2019 - 2024. All rights reserved.