提问人:amigo748 提问时间:11/17/2023 更新时间:11/17/2023 访问量:23
我必须将服务公开给负载均衡器吗?
I have to expose the service to a load balancer?
问:
我正在做一些练习来实践本地 k8s 集群中的 epinio.io 框架,但是当我开始部署示例应用程序时,它给了我错误 503,有人可以帮我看看我做错了什么吗?
我怀疑 helm chart 正在创建集群 ip 类型的服务,但在这种情况下,我认为我需要附加 nginx 入口控制器才能使服务正常工作。
这是我尝试在本地构建的 repo naneko-devexp
kind: Service
metadata:
annotations:
epinio.io/created-by: admin
meta.helm.sh/release-name: nameko-0426a4327bc264b3df3a0d0d2e4b42c068a659dc
meta.helm.sh/release-namespace: workspace
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
creationTimestamp: "2023-11-17T04:04:10Z"
labels:
app.kubernetes.io/component: application
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: nameko
app.kubernetes.io/part-of: workspace
helm.sh/chart: epinio-application-0.1.26
name: rnameko-0426a4327bc264b3df3a0d0d2e4b42c068a659dc
namespace: workspace
resourceVersion: "60430"
uid: 2686c4f0-90e6-4f78-bf5e-bafecda65294
spec:
clusterIP: 10.98.164.111
clusterIPs:
- 10.98.164.111
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app.kubernetes.io/component: application
app.kubernetes.io/name: nameko
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
答: 暂无答案
评论