diff --git a/consul-ingress.yaml b/consul-ingress.yaml new file mode 100644 index 0000000..88d9f4f --- /dev/null +++ b/consul-ingress.yaml @@ -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 \ No newline at end of file diff --git a/consul-service.yaml b/consul-service.yaml index ba02fd6..181a756 100644 --- a/consul-service.yaml +++ b/consul-service.yaml @@ -12,4 +12,4 @@ spec: protocol: UDP targetPort: 8600 selector: - io.kompose.service: consul + app: consul