Skip to content

Commit

Permalink
GMC: replace the service and deployment name if GMC has defined (#98)
Browse files Browse the repository at this point in the history
1. if GMC has defined the service name, replace the service name in the manifests with the GMC's defined service name and replace the deployment name with "GMC's defined service name" + "-deployment"
2. remove dynamicClient from code, this could help the UT issue
3. set 1min timeout for error provisioning resources to k8s
4. avoid double reconciling when GMC is setting a graph's status
5. reconcile router if GMC spec is changed, previously router don't change if it is existing
  • Loading branch information
KfreeZ authored Jun 18, 2024
1 parent 887bf0d commit eec8452
Show file tree
Hide file tree
Showing 5 changed files with 302 additions and 219 deletions.
26 changes: 13 additions & 13 deletions microservices-connector/config/gmcrouter/gmc-router.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0


---
apiVersion: v1
kind: Service
metadata:
name: router-service
spec:
selector:
app: router-service
ports:
- protocol: TCP
port: 8080
targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -46,3 +33,16 @@ spec:
args:
- "--graph-json"
- {{.GRAPH_JSON}}
---
apiVersion: v1
kind: Service
metadata:
name: router-service
spec:
type: ClusterIP
selector:
app: router-service
ports:
- protocol: TCP
port: 8080
targetPort: 8080
2 changes: 1 addition & 1 deletion microservices-connector/config/samples/chatQnA_xeon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
endpoint: /v1/chat/completions
- name: Tgi
internalService:
serviceName: tgi-svc
serviceName: tgi-service-m
config:
endpoint: /generate
isDownstreamService: true
Loading

0 comments on commit eec8452

Please sign in to comment.