added http route

This commit is contained in:
maximilian.bartz 2025-04-30 17:47:18 +02:00
parent 241d06efd4
commit 26244b5df8
3 changed files with 33 additions and 0 deletions

View file

@ -8,5 +8,6 @@ resources:
- ubuntu-vm-2/ks.yaml
- templates/image-server/ks-nginx.yaml
- templates/image-server/ks-pvc.yaml
- templates/image-server/ks-route.yaml
- templates/windowsserver/ks-dv.yaml
- templates/windowsserver/ks-flavor.yaml

View file

@ -0,0 +1,18 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app route
namespace: ${TENANT_NAMESPACE}
spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./templates/image-server/route
prune: true
sourceRef:
kind: GitRepository
name: tenant-repos
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m

View file

@ -0,0 +1,14 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: nginx
namespace: ${TENANT_NAMESPACE}
spec:
to:
kind: Service
name: nginx
port:
targetPort: http
tls:
termination: edge
insecureEdgeTerminationPolicy: Allow