Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions charts/mcp-stack/templates/configmap-gateway-plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if .Values.mcpContextForge.pluginConfig.enabled}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "mcp-stack.fullname" . }}-gateway-plugins
labels:
{{- include "mcp-stack.labels" . | nindent 4 }}
app.kubernetes.io/component: gateway
data:
config.yaml: |
{{- .Values.mcpContextForge.pluginConfig.plugins | nindent 4 }}
{{- end }}
17 changes: 17 additions & 0 deletions charts/mcp-stack/templates/deployment-mcpgateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,20 @@ spec:
# Resource requests / limits
resources:
{{- toYaml .Values.mcpContextForge.resources | nindent 12 }}

{{- /* Plugins enabled need the plugins configuration */}}
{{- if .Values.mcpContextForge.pluginConfig.enabled }}
volumeMounts:
- name: plugin-config-volume
mountPath: /app/{{ .Values.mcpContextForge.config.PLUGIN_CONFIG_FILE }}
subPath: config.yaml
{{- end }}
{{- if .Values.mcpContextForge.pluginConfig.enabled }}
volumes:
- name: plugin-config-volume
configMap:
name: {{ include "mcp-stack.fullname" . }}-gateway-plugins
items:
- key: config.yaml
path: config.yaml
{{- end }}
16 changes: 16 additions & 0 deletions charts/mcp-stack/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,22 @@
},
"additionalProperties": false
},

"pluginConfig": {
"type": "object",
"description": "Plugin configuration via ConfigMap",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable plugin configuration loading via ConfigMap",
"default": false
},
"plugins": {
"type": "string",
"description": "Plugin configuration file contents (YAML)"
}
}
},
"env": {
"type": "object",
"description": "Environment configuration",
Expand Down
12 changes: 9 additions & 3 deletions charts/mcp-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ global:
# MCP CONTEXT-FORGE (Gateway / API tier)
########################################################################
mcpContextForge:
# --- Specific plugin file ----#
pluginConfig:
enabled: false
plugins: |
# plugin file

replicaCount: 2 # horizontal scaling for the gateway

# --- HORIZONTAL POD AUTOSCALER --------------------------------------
Expand Down Expand Up @@ -93,9 +99,9 @@ mcpContextForge:
host: gateway.local # CHANGE to your FQDN (e.g. api.example.com)
path: /
pathType: Prefix
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
# cert-manager.io/cluster-issuer: letsencrypt-prod # Uncomment to enable automatic TLS cert generation
annotations: {} # Custom ingress annotations (optional)
# nginx.ingress.kubernetes.io/rewrite-target: /
# cert-manager.io/cluster-issuer: letsencrypt-prod
tls:
enabled: false # Set to true to enable TLS
secretName: "" # Name of the TLS secret (auto-generated if empty)
Expand Down
Loading