60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
---
|
|
|
|
# -----------------------------------------------------------------------
|
|
# INGRESS
|
|
# -----------------------------------------------------------------------
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
namespace: crates
|
|
name: crates-client
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
spec:
|
|
ingressClassName: haproxy
|
|
tls:
|
|
- hosts:
|
|
- crates.ntwl.xyz
|
|
secretName: crates-ntwl-xyz-tls
|
|
rules:
|
|
- host: crates.ntwl.xyz
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: crates-client
|
|
port:
|
|
number: 8080
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
namespace: crates
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
haproxy.org/path-rewrite: "/api(/)?(.*) /$2"
|
|
name: crates-api
|
|
namespace: default
|
|
spec:
|
|
ingressClassName: haproxy
|
|
tls:
|
|
- hosts:
|
|
- crates.ntwl.xyz
|
|
secretName: crates-ntwl-xyz-tls
|
|
rules:
|
|
- host: crates.ntwl.xyz
|
|
http:
|
|
paths:
|
|
- path: /api(/|$)(.*)
|
|
pathType: ImplementationSpecific
|
|
backend:
|
|
service:
|
|
name: crates-api
|
|
port:
|
|
number: 41337
|