Skip to content

Commit

Permalink
chore: xlog dev use traefik
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Feb 20, 2024
1 parent 6f798fa commit 488b0c3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deploy/dev/cert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: xlog
namespace: crossbell
spec:
dnsNames:
- xlog.page
- '*.xlog.page'
issuerRef:
kind: ClusterIssuer
name: cloudflare
secretName: xlog-cert
2 changes: 2 additions & 0 deletions deploy/dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: Kustomization
resources:
- ../base
- svc.yaml
- cert.yaml
- route.yaml

patches:
- patch: |-
Expand Down
16 changes: 16 additions & 0 deletions deploy/dev/route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: xlog
namespace: crossbell
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`xlog.page`) || Host(`*.xlog.page`)
services:
- name: xlog-internal
port: 80
tls:
secretName: xlog-cert

0 comments on commit 488b0c3

Please sign in to comment.