Skip to content

Commit

Permalink
feat: host django app at b4mad.racing and paddock.b4mad.racing
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Görn <[email protected]>
  • Loading branch information
goern committed Jan 25, 2024
1 parent fd4bfe2 commit 75a83b0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 14 deletions.
35 changes: 35 additions & 0 deletions manifests/env/phobos/paddock/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt
haproxy.router.openshift.io/timeout: 120s
name: b4mad-racing
spec:
ingressClassName: openshift-default
rules:
- host: b4mad.racing
http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: paddock
port:
name: django-web
- host: paddock.b4mad.racing
http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: paddock
port:
name: django-web
tls:
- hosts:
- b4mad.racing
- paddock.b4mad.racing
secretName: https-cert-b4mad.racing
15 changes: 1 addition & 14 deletions manifests/env/phobos/paddock/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ resources:
- ../../../base/paddock/
- ../../../base/paddock/cronjobs
- ../../../base/paddock/metrics-exporter/
- ingress.yaml

patches:
- target:
Expand All @@ -22,20 +23,6 @@ patches:
path: /spec/template/spec/containers/1/resources/limits/memory
value: 2Gi
- target:
kind: Ingress
name: paddock
patch: |-
- op: replace
path: /spec/rules/0/host
value: paddock.b4mad.racing
- op: replace
path: /spec/tls/0/hosts/0
value: paddock.b4mad.racing
- op: replace
path: /spec/tls/0/secretName
value: https-cert-paddock.b4mad.racing
- target:
kind: Ingress
name: paddock-metrics-exporter
Expand Down

0 comments on commit 75a83b0

Please sign in to comment.