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