From 9bd13f5c2120dbfad27f6fe799b5a3bfc3e1aaf2 Mon Sep 17 00:00:00 2001 From: Avanish Yadav Date: Wed, 4 Feb 2026 13:14:22 +0530 Subject: [PATCH 1/2] feat: add mcpService configuration to values.yaml and create corresponding service template --- .../templates/gateway/service.yaml | 27 ++++++++++++++++++- charts/portkey-gateway/values.yaml | 8 ++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/charts/portkey-gateway/templates/gateway/service.yaml b/charts/portkey-gateway/templates/gateway/service.yaml index 3a849ec..66a9ddb 100644 --- a/charts/portkey-gateway/templates/gateway/service.yaml +++ b/charts/portkey-gateway/templates/gateway/service.yaml @@ -23,4 +23,29 @@ spec: name: mcp {{- end }} selector: - {{- include "portkeyenterprise.selectorLabels" . | nindent 4 }} \ No newline at end of file + {{- include "portkeyenterprise.selectorLabels" . | nindent 4 }} +--- +{{- if and .Values.mcpService.enabled (eq (include "mcp.enabled" .) "true") }} +apiVersion: v1 +kind: Service +metadata: + name: {{ include "portkeyenterprise.fullname" . }}-mcp + labels: + {{- include "gateway.labels" . }} + {{- with .Values.mcpService.additionalLabels }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .Values.mcpService.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + type: {{ .Values.mcpService.type }} + ports: + - port: {{ .Values.mcpService.port }} + targetPort: mcp + protocol: TCP + name: mcp + selector: + {{- include "portkeyenterprise.selectorLabels" . | nindent 4 }} +{{- end }} \ No newline at end of file diff --git a/charts/portkey-gateway/values.yaml b/charts/portkey-gateway/values.yaml index 49ee4ca..5314bbd 100644 --- a/charts/portkey-gateway/values.yaml +++ b/charts/portkey-gateway/values.yaml @@ -164,6 +164,14 @@ service: additionalLabels: {} annotations: {} +mcpService: + enabled: false + type: ClusterIP + port: 8788 + containerPort: 8788 + additionalLabels: {} + annotations: {} + ingress: enabled: false hostname: "" From 49e9452e4abf73278076411af3ec2fa592ff15e9 Mon Sep 17 00:00:00 2001 From: Avanish Yadav Date: Wed, 4 Feb 2026 13:22:19 +0530 Subject: [PATCH 2/2] fix: update mcpService port to 80 in values.yaml for consistency --- charts/portkey-gateway/values.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/charts/portkey-gateway/values.yaml b/charts/portkey-gateway/values.yaml index 5314bbd..c3762e0 100644 --- a/charts/portkey-gateway/values.yaml +++ b/charts/portkey-gateway/values.yaml @@ -167,8 +167,7 @@ service: mcpService: enabled: false type: ClusterIP - port: 8788 - containerPort: 8788 + port: 80 additionalLabels: {} annotations: {}