feat(network): 添加 Consul Ingress 并更新 Consul 服务选择器

- 新增 consul-ingress.yaml 文件,创建 Consul Ingress 资源
- 更新 consul-service.yaml 文件,将选择器从 io.kompose.service 改为 app
This commit is contained in:
suyiiyii 2025-01-20 12:15:09 +08:00
parent c746aa1331
commit c23be86a2a
Signed by: suyiiyii
GPG Key ID: 044704CB29B8AD85
2 changed files with 19 additions and 1 deletions

18
consul-ingress.yaml Normal file
View File

@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: consul-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
rules:
- host: consul.kl.suyiiyii.top
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: consul
port:
number: 8500

View File

@ -12,4 +12,4 @@ spec:
protocol: UDP
targetPort: 8600
selector:
io.kompose.service: consul
app: consul