feat(ingress): add facade ingress configurations for HTTP and TLS

feat(service): create facade service definition with TCP and UDP ports
This commit is contained in:
suyiiyii 2025-01-21 21:59:45 +08:00
parent 4fdb6ee5fc
commit 3c9701dab3
Signed by: suyiiyii
GPG Key ID: 044704CB29B8AD85
2 changed files with 54 additions and 0 deletions

View File

@ -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

View File

@ -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