From 3c9701dab309646078e45167421993fba10e9394 Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Tue, 21 Jan 2025 21:59:45 +0800 Subject: [PATCH] feat(ingress): add facade ingress configurations for HTTP and TLS feat(service): create facade service definition with TCP and UDP ports --- templates/facade-ingress.yaml | 39 +++++++++++++++++++++++++++++++++++ templates/facade-service.yaml | 15 ++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 templates/facade-ingress.yaml create mode 100644 templates/facade-service.yaml diff --git a/templates/facade-ingress.yaml b/templates/facade-ingress.yaml new file mode 100644 index 0000000..0e38d04 --- /dev/null +++ b/templates/facade-ingress.yaml @@ -0,0 +1,39 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: facade-ingress + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod +spec: + tls: + - hosts: + - facade.kl.suyiiyii.top + secretName: facade-tls + rules: + - host: facade.kl.suyiiyii.top + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: facade + port: + number: 8500 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: facade-http-ingress +spec: + rules: + - host: facade.kl.suyiiyii.top + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: facade + port: + number: 8500 \ No newline at end of file diff --git a/templates/facade-service.yaml b/templates/facade-service.yaml new file mode 100644 index 0000000..d7bf918 --- /dev/null +++ b/templates/facade-service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: facade +spec: + ports: + - name: "8500" + port: 8500 + targetPort: 8500 + - name: "8600" + port: 8600 + protocol: UDP + targetPort: 8600 + selector: + app: facade