我创建了这个测试 Helm 图表,我想通过公共 URL 域访问它:
https://github.com/rcbandit111/external_domain_helm_chart_poc/blob/main/pod-chart/templates/ingressresource.yaml
入口控制器:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: registry-domain-ingress
spec:
rules:
- host: monitor.somedomain.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "pod.fullname" . }}
port:
number: 80
我在公共 DNS 注册表中添加了一条记录:
monitor.somedomain.org -> 4.4.4.4 (node1)
monitor.somedomain.org -> 4.4.4.5 (node2)
但当我尝试打开 URL 链接时,页面未加载。知道可能是什么问题吗?