Skip to content

Commit cb09a81

Browse files
committed
ops: Creating Helm Chart for Medcat Trainer. Initial k8s manifests
1 parent a8b98dc commit cb09a81

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

deployment/kubernetes/charts/medcat-trainer-helm/env-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
data:
33
CONCEPT_SEARCH_SERVICE_HOST: solr
44
CONCEPT_SEARCH_SERVICE_PORT: "8983"
5-
CSRF_TRUSTED_ORIGINS: ""
5+
CSRF_TRUSTED_ORIGINS: "http://localhost:8000"
66
DB_BACKUP_DIR: /home/api/db-backup
77
DB_DIR: /home/api/db
88
DB_PATH: /home/api/db/db.sqlite3

deployment/kubernetes/charts/medcat-trainer-helm/medcattrainer-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ spec:
2828
- -c
2929
- /etc/supervisord.conf
3030
env:
31+
3132
- name: CONCEPT_SEARCH_SERVICE_HOST
3233
valueFrom:
3334
configMapKeyRef:

deployment/kubernetes/local_dev_startup.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ helm test medcat-service --logs
1616

1717
# Test with host header set for ingress routing
1818
# HOST_IP=10.211.112.82
19-
# curl --resolve chart-example.local:80:${HOST_IP} http://chart-example.local/api/info
19+
# curl --resolve chart-example.local:80:${HOST_IP} http://chart-example.local/api/info
20+
21+
# Test medcat trainer
22+
# kubectl port-forward svc/nginx 8000:8000

0 commit comments

Comments
 (0)