- 新增 consul-ingress.yaml 文件,创建 Consul Ingress 资源 - 更新 consul-service.yaml 文件,将选择器从 io.kompose.service 改为 app
18 lines
399 B
YAML
18 lines
399 B
YAML
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 |