From d43d6dffca2ac5fd6558b74473c56d917253d890 Mon Sep 17 00:00:00 2001 From: HazalCiplak Date: Tue, 17 Dec 2024 17:08:40 +0000 Subject: [PATCH] Configured spacy-keyword-extraction-api--stg --- .../spacy-keyword-extraction-api--stg.yaml | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 deployments/peerscout/spacy-keyword-extraction-api/spacy-keyword-extraction-api--stg.yaml diff --git a/deployments/peerscout/spacy-keyword-extraction-api/spacy-keyword-extraction-api--stg.yaml b/deployments/peerscout/spacy-keyword-extraction-api/spacy-keyword-extraction-api--stg.yaml new file mode 100644 index 0000000000..ea9576c674 --- /dev/null +++ b/deployments/peerscout/spacy-keyword-extraction-api/spacy-keyword-extraction-api--stg.yaml @@ -0,0 +1,77 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: spacy-keyword-extraction-api--stg + labels: + app: spacy-keyword-extraction-api--stg + namespace: peerscout +spec: + selector: + matchLabels: + app: spacy-keyword-extraction-api--stg + template: + metadata: + labels: + app: spacy-keyword-extraction-api--stg + spec: + containers: + - name: spacy-keyword-extraction-api + image: ghcr.io/elifesciences/spacy-keyword-extraction-api_unstable:main-7b9b1944-20241217.1657 + imagePullPolicy: IfNotPresent + ports: + - name: http + containerPort: 8000 + protocol: TCP + livenessProbe: + httpGet: + path: / + port: http + initialDelaySeconds: 5 + timeoutSeconds: 120 + periodSeconds: 60 + readinessProbe: + httpGet: + path: / + port: http + initialDelaySeconds: 5 + timeoutSeconds: 120 + periodSeconds: 60 + resources: + requests: + cpu: 100m + memory: 2.6Gi + limits: + cpu: 500m + memory: 3Gi + +--- +apiVersion: v1 +kind: Service +metadata: + name: spacy-keyword-extraction-api--stg + namespace: peerscout +spec: + selector: + app: spacy-keyword-extraction-api--stg + ports: + - port: 8000 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: spacy-keyword-extraction-api--stg + namespace: peerscout + labels: + app: spacy-keyword-extraction-api--stg +spec: + rules: + - host: spacy-keyword-extraction-api--stg.elifesciences.org + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: spacy-keyword-extraction-api--stg + port: + number: 8000