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..c3762e0 100644 --- a/charts/portkey-gateway/values.yaml +++ b/charts/portkey-gateway/values.yaml @@ -164,6 +164,13 @@ service: additionalLabels: {} annotations: {} +mcpService: + enabled: false + type: ClusterIP + port: 80 + additionalLabels: {} + annotations: {} + ingress: enabled: false hostname: ""