Commit 74051af9 authored by Kamal Dodiya's avatar Kamal Dodiya
Browse files

Integrate refget

parent b946f41e
......@@ -6,6 +6,7 @@ variables:
GENOME_SEARCH_SERVICE_SLUG: dev
TOYGRAPHQL_SERVICE_SLUG: dev
THOAS_SERVICE_SLUG: dev
REFGET_SERVICE_SLUG: dev
.deploy:
stage: deploy
......@@ -28,6 +29,9 @@ variables:
- THOAS_SERVICE_TAG=`yq r values.yaml be-services.thoas-service`
- THOAS_SERVICE_TAG="${THOAS_SERVICE_TAG//[[:space:]]/}"
- THOAS_SERVICE_SLUG="${THOAS_SERVICE_TAG//[^[:alnum:]]/-}"
- REFGET_SERVICE_TAG=`yq r values.yaml be-services.refget-service`
- REFGET_SERVICE_TAG="${REFGET_SERVICE_TAG//[[:space:]]/}"
- REFGET_SERVICE_SLUG="${REFGET_SERVICE_TAG//[^[:alnum:]]/-}"
# ensembl-client
- sed -i "s#<DEPLOYMENT_ENV>#${SERVICE_SLUG}#g" ensembl_client_service_cluster.yaml
- sed -i "s#<DEPLOYMENT_ENV>#${SERVICE_SLUG}#g" ensembl_client_ingress.yaml
......@@ -48,7 +52,14 @@ variables:
- sed -i "s#<DEPLOYMENT_ENV>#${THOAS_SERVICE_SLUG}#g" ensembl_thoas_service.yaml
- sed -i "s#<DEPLOYMENT_ENV>#${THOAS_SERVICE_SLUG}#g" ensembl_thoas_ingress.yaml
- sed -i "s#<SUB_DOMAIN>#${SERVICE_SLUG}#g" ensembl_thoas_ingress.yaml
# ensembl-refget
- sed -i "s#<DEPLOYMENT_ENV>#${REFGET_SERVICE_SLUG}#g" ensembl_refget_service.yaml
- sed -i "s#<DEPLOYMENT_ENV>#${REFGET_SERVICE_SLUG}#g" ensembl_refget_ingress.yaml
- sed -i "s#<SUB_DOMAIN>#${SERVICE_SLUG}#g" ensembl_refget_ingress.yaml
script:
# ensembl-refget
- kubectl apply -f ensembl_refget_service.yaml
- kubectl apply -f ensembl_refget_ingress.yaml
# ensembl-thoas
- kubectl apply -f ensembl_thoas_service.yaml
- kubectl apply -f ensembl_thoas_ingress.yaml
......
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: refget-perl-server-<SUB_DOMAIN>-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
rules:
- host: <SUB_DOMAIN>.review.ensembl.org
http:
paths:
- path: /refget($|/)(.*)
backend:
serviceName: refget-perl-server-<DEPLOYMENT_ENV>-svc
servicePort: 8080
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: refget-perl-server-<DEPLOYMENT_ENV>-svc
labels:
app: refget-perl-server-<DEPLOYMENT_ENV>-svc
spec:
selector:
app: refget-perl-server-<DEPLOYMENT_ENV>
type: NodePort
ports:
- port: 8080
protocol: TCP
targetPort: 8080
......@@ -5,3 +5,4 @@ be-services:
genome-search-service: dev
toygraphql-service: dev
thoas-service: dev
refget-service: dev
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment