From 26244b5df8861ee2b9ad34eb8effe715d6b8d0ec Mon Sep 17 00:00:00 2001 From: "maximilian.bartz" Date: Wed, 30 Apr 2025 17:47:18 +0200 Subject: [PATCH] added http route --- kustomization.yaml | 1 + templates/image-server/ks-route.yaml | 18 ++++++++++++++++++ templates/image-server/route/http | 14 ++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 templates/image-server/ks-route.yaml create mode 100644 templates/image-server/route/http diff --git a/kustomization.yaml b/kustomization.yaml index ccaf633..4efce0c 100644 --- a/kustomization.yaml +++ b/kustomization.yaml @@ -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 \ No newline at end of file diff --git a/templates/image-server/ks-route.yaml b/templates/image-server/ks-route.yaml new file mode 100644 index 0000000..c3c4cf4 --- /dev/null +++ b/templates/image-server/ks-route.yaml @@ -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 diff --git a/templates/image-server/route/http b/templates/image-server/route/http new file mode 100644 index 0000000..f73ccf6 --- /dev/null +++ b/templates/image-server/route/http @@ -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 \ No newline at end of file