Skip to content
Snippets Groups Projects
Commit 1504afa3 authored by julian.baeume's avatar julian.baeume :pick:
Browse files

make preview app actually useful

just point manifest service instance to appsuite-stack release created for preview apps.
Needs some custom k8s resources (Ingress).
parent f95d7c19
No related branches found
No related tags found
No related merge requests found
...@@ -4,3 +4,14 @@ include: ...@@ -4,3 +4,14 @@ include:
variables: variables:
INGRESS_HOSTNAME: manifest-$CI_COMMIT_REF_SLUG INGRESS_HOSTNAME: manifest-$CI_COMMIT_REF_SLUG
deploy helm chart:
extends: .auto-deploy-helm-chart
environment:
name: $CI_COMMIT_REF_SLUG
on_stop: tear down
auto_stop_in: 1 week
url: https://manifest-$CI_COMMIT_REF_SLUG.$KUBE_INGRESS_BASE_DOMAIN
after_script:
- envsubst < .gitlab-ci/kubernetes-resources.yaml > tmp-k8s-resources.yaml
- kubectl apply -f tmp-k8s-resources.yaml
apiVersion: v1
kind: Service
metadata:
name: ${OX_COMPONENT}-mw-http-api
spec:
type: ExternalName
externalName: main-core-mw-http-api.appsuite-stack-1494-main.svc.cluster.local
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ${OX_COMPONENT}
spec:
rules:
- host: manifest-${CI_COMMIT_REF_SLUG}.k3s.os2.oxui.de
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: ${OX_COMPONENT}
port:
name: http
- path: /api/
pathType: ImplementationSpecific
backend:
service:
name: ${OX_COMPONENT}-mw-http-api
port:
name: http
- path: /ajax/
pathType: Prefix
backend:
service:
name: ${OX_COMPONENT}-mw-http-api
port:
name: http
- path: /servlet/
pathType: Prefix
backend:
service:
name: ${OX_COMPONENT}-mw-http-api
port:
name: http
- path: /realtime/
pathType: Prefix
backend:
service:
name: ${OX_COMPONENT}-mw-http-api
port:
name: http
- path: /infostore/
pathType: Prefix
backend:
service:
name: ${OX_COMPONENT}-mw-http-api
port:
name: http
- path: /socket.io/
pathType: Prefix
backend:
service:
name: ${OX_COMPONENT}-mw-http-api
port:
name: http
- path: /oxguard/
pathType: Prefix
backend:
service:
name: ${OX_COMPONENT}-mw-http-api
port:
name: http
- path: /webservices/
pathType: Prefix
backend:
service:
name: ${OX_COMPONENT}-mw-http-api
port:
name: http
...@@ -3,15 +3,10 @@ replicaCount: 1 ...@@ -3,15 +3,10 @@ replicaCount: 1
containerPort: 8080 containerPort: 8080
manifests: manifests:
- https://preview-main.k3s.os2.oxui.de/manifest.json - http://main-core-ui.appsuite-stack-1494-main.svc.cluster.local/manifest.json
ingress: ingress:
enabled: true enabled: false
hosts:
- host: manifest-${CI_COMMIT_REF_SLUG}.k3s.os2.oxui.de
paths:
- path: /
pathType: ImplementationSpecific
image: image:
repository: ${CI_REGISTRY_IMAGE} repository: ${CI_REGISTRY_IMAGE}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment