File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,6 +162,22 @@ show_status() {
162162 fi
163163}
164164
165+
166+ # Patch images to the chosen registry:tag and refresh jobs
167+ set_images () {
168+ local full=" ${IMAGE_REGISTRY} :${IMAGE_TAG} "
169+ log_info " Setting images to ${full} "
170+ kubectl set image deployment/mcp-memory mcp-memory=" ${full} " -n " $NAMESPACE " || true
171+ kubectl set image deployment/mcp-indexer mcp-indexer=" ${full} " -n " $NAMESPACE " || true
172+ kubectl set image deployment/mcp-memory-http mcp-memory-http=" ${full} " -n " $NAMESPACE " || true
173+ kubectl set image deployment/mcp-indexer-http mcp-indexer-http=" ${full} " -n " $NAMESPACE " || true
174+ kubectl set image deployment/watcher watcher=" ${full} " -n " $NAMESPACE " || true
175+ # Refresh Jobs so they pick up the new image
176+ kubectl delete job indexer-job init-payload -n " $NAMESPACE " --ignore-not-found=true
177+ kubectl apply -f indexer-services.yaml
178+ log_success " Images set to ${full} and jobs refreshed"
179+ }
180+
165181# Main deployment function
166182main () {
167183 log_info " Starting Context-Engine Kubernetes deployment"
@@ -178,6 +194,7 @@ main() {
178194 deploy_indexer_services
179195 deploy_llamacpp
180196 deploy_ingress
197+ set_images
181198
182199 # Show status
183200 show_status
Original file line number Diff line number Diff line change 2626 image : context-engine:latest
2727 imagePullPolicy : IfNotPresent
2828 command : ["python", "/app/scripts/watch_index.py"]
29- workingDir : /repos
29+ workingDir : /work
3030 env :
3131 - name : QDRANT_URL
3232 valueFrom :
@@ -109,7 +109,7 @@ spec:
109109 image : context-engine:latest
110110 imagePullPolicy : IfNotPresent
111111 command : ["python", "/app/scripts/ingest_code.py"]
112- workingDir : /repos
112+ workingDir : /work
113113 env :
114114 - name : QDRANT_URL
115115 valueFrom :
@@ -166,7 +166,7 @@ spec:
166166 image : context-engine:latest
167167 imagePullPolicy : IfNotPresent
168168 command : ["python", "/app/scripts/create_indexes.py"]
169- workingDir : /repos
169+ workingDir : /work
170170 env :
171171 - name : QDRANT_URL
172172 valueFrom :
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ metadata:
1010 app : context-engine
1111 annotations :
1212 # Nginx Ingress annotations
13+ nginx.ingress.kubernetes.io/use-regex : " true"
1314 nginx.ingress.kubernetes.io/rewrite-target : /$2
1415 nginx.ingress.kubernetes.io/ssl-redirect : " true"
1516 # Increase timeouts for SSE connections
2627 paths :
2728 # Qdrant
2829 - path : /qdrant(/|$)(.*)
29- pathType : Prefix
30+ pathType : ImplementationSpecific
3031 backend :
3132 service :
3233 name : qdrant
3536
3637 # MCP Memory (SSE)
3738 - path : /mcp/memory(/|$)(.*)
38- pathType : Prefix
39+ pathType : ImplementationSpecific
3940 backend :
4041 service :
4142 name : mcp-memory
4445
4546 # MCP Indexer (SSE)
4647 - path : /mcp/indexer(/|$)(.*)
47- pathType : Prefix
48+ pathType : ImplementationSpecific
4849 backend :
4950 service :
5051 name : mcp-indexer
5354
5455 # MCP Memory HTTP
5556 - path : /mcp-http/memory(/|$)(.*)
56- pathType : Prefix
57+ pathType : ImplementationSpecific
5758 backend :
5859 service :
5960 name : mcp-memory-http
6263
6364 # MCP Indexer HTTP
6465 - path : /mcp-http/indexer(/|$)(.*)
65- pathType : Prefix
66+ pathType : ImplementationSpecific
6667 backend :
6768 service :
6869 name : mcp-indexer-http
7172
7273 # Llama.cpp (optional)
7374 - path : /llamacpp(/|$)(.*)
74- pathType : Prefix
75+ pathType : ImplementationSpecific
7576 backend :
7677 service :
7778 name : llamacpp
Original file line number Diff line number Diff line change @@ -49,13 +49,13 @@ spec:
4949 mountPath : /qdrant/storage
5050 livenessProbe :
5151 httpGet :
52- path : /
52+ path : /healthz
5353 port : http
5454 initialDelaySeconds : 30
5555 periodSeconds : 10
5656 readinessProbe :
5757 httpGet :
58- path : /
58+ path : /readyz
5959 port : http
6060 initialDelaySeconds : 5
6161 periodSeconds : 5
You can’t perform that action at this time.
0 commit comments