diff --git a/consul-ingress.yaml b/consul-ingress.yaml index 588df24..01a1fe1 100644 --- a/consul-ingress.yaml +++ b/consul-ingress.yaml @@ -20,3 +20,20 @@ spec: 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 \ No newline at end of file