Commit 9d53f60d authored by Kamal Dodiya's avatar Kamal Dodiya
Browse files

Add k8s manifests

parent 485d4c32
apiVersion: v1
data:
SOLR_SERVER: "http://ensembl-solr-search-svc:8983/solr"
SOLR_COLLECTION: genome_search_v1
no_proxy: localhost,.cluster.local
kind: ConfigMap
metadata:
name: ensembl-search-hub-configmap
\ No newline at end of file
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: ensembl-search-hub-deployment
spec:
replicas: 1
template:
metadata:
labels:
app: ensembl-search-hub
environment: dev
spec:
imagePullSecrets:
- name: ensemblweb-pull-secret
containers:
- name: ensembl-search-hub
image: DOCKER_IMAGE
command: [ "uvicorn", "ensembl_search_hub.main:app", "--host=0.0.0.0", "--port=8083" ]
ports:
- containerPort: 8083
imagePullPolicy: Always
envFrom:
- configMapRef:
name: ensembl-search-hub-configmap
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /search
name: ensembl-in-app-search-api-ingress
spec:
rules:
- host: in-app-search.review.ensembl.org
http:
paths:
- backend:
serviceName: ensembl-search-hub-svc
servicePort: 8083
path: /api/search
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ensembl-experiments
resources:
- deployment.yaml
- service.yaml
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: ensembl-search-hub-svc
labels:
app: ensembl-search-hub-svc
spec:
selector:
app: ensembl-search-hub
environment: dev
type: ClusterIP
ports:
- port: 8083
protocol: TCP
targetPort: 8083
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ensembl-dev
commonLabels:
environment: dev
bases:
- ../../base
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ensembl-internal
bases:
- ../../base
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ensembl-prod
bases:
- ../../base
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ensembl-experiments
commonLabels:
environment: dev
resources:
- ../../base
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ensembl-stage
commonLabels:
environment: staging
bases:
- ../../base
\ 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