From 40388d3e8ce99493862d3e763077578995539c11 Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Mon, 20 Jan 2025 13:06:42 +0800 Subject: [PATCH] feat(ingress): add HTTP ingress for Consul service --- consul-ingress.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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