hertz101/consul-ingress.yaml

39 lines
822 B
YAML

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