generated from phoenix-oss/tenant-tpl
added http route
This commit is contained in:
parent
241d06efd4
commit
26244b5df8
3 changed files with 33 additions and 0 deletions
|
@ -8,5 +8,6 @@ resources:
|
||||||
- ubuntu-vm-2/ks.yaml
|
- ubuntu-vm-2/ks.yaml
|
||||||
- templates/image-server/ks-nginx.yaml
|
- templates/image-server/ks-nginx.yaml
|
||||||
- templates/image-server/ks-pvc.yaml
|
- templates/image-server/ks-pvc.yaml
|
||||||
|
- templates/image-server/ks-route.yaml
|
||||||
- templates/windowsserver/ks-dv.yaml
|
- templates/windowsserver/ks-dv.yaml
|
||||||
- templates/windowsserver/ks-flavor.yaml
|
- templates/windowsserver/ks-flavor.yaml
|
18
templates/image-server/ks-route.yaml
Normal file
18
templates/image-server/ks-route.yaml
Normal 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
|
14
templates/image-server/route/http
Normal file
14
templates/image-server/route/http
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue