fix: stonegarden routing

added a listener for stonegarden.dev
This commit is contained in:
Vegard Hagen
2024-07-19 15:11:02 +02:00
parent 2c1e894af0
commit 482c0368ea
4 changed files with 18 additions and 5 deletions

View File

@@ -3,8 +3,10 @@ kind: Deployment
metadata: metadata:
name: stonegarden name: stonegarden
namespace: stonegarden namespace: stonegarden
labels:
app: stonegarden
spec: spec:
replicas: 1 replicas: 2
selector: selector:
matchLabels: matchLabels:
app: stonegarden app: stonegarden
@@ -24,7 +26,7 @@ spec:
type: RuntimeDefault type: RuntimeDefault
containers: containers:
- name: stonegarden - name: stonegarden
image: registry.gitlab.com/vehagn/stonegarden:latest image: registry.gitlab.com/vehagn/stonegarden
imagePullPolicy: Always imagePullPolicy: Always
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false

View File

@@ -3,6 +3,6 @@ kind: Kustomization
resources: resources:
- ns.yaml - ns.yaml
- service.yaml - svc.yaml
- deployment.yaml - deployment.yaml
- http-route.yaml - http-route.yaml

View File

@@ -5,8 +5,8 @@ metadata:
namespace: stonegarden namespace: stonegarden
spec: spec:
type: ClusterIP type: ClusterIP
selector:
app: stonegarden
ports: ports:
- name: web - name: web
port: 3000 port: 3000
selector:
app: stonegarden

View File

@@ -22,3 +22,14 @@ spec:
allowedRoutes: allowedRoutes:
namespaces: namespaces:
from: All from: All
- protocol: HTTPS
port: 443
name: https-domain-gateway
hostname: stonegarden.dev
tls:
certificateRefs:
- kind: Secret
name: cloudflare-cert
allowedRoutes:
namespaces:
from: All