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:
parent
4fdb6ee5fc
commit
3c9701dab3
39
templates/facade-ingress.yaml
Normal file
39
templates/facade-ingress.yaml
Normal 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
|
15
templates/facade-service.yaml
Normal file
15
templates/facade-service.yaml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user