File tree Expand file tree Collapse file tree 4 files changed +54
-3
lines changed Expand file tree Collapse file tree 4 files changed +54
-3
lines changed Original file line number Diff line number Diff line change 1+ {{- if .Values.mcpContextForge.pluginConfig.enabled}}
2+ apiVersion : v1
3+ kind : ConfigMap
4+ metadata :
5+ name : {{ include "mcp-stack.fullname" . }}-gateway-plugins
6+ labels :
7+ {{- include "mcp-stack.labels" . | nindent 4 }}
8+ app.kubernetes.io/component : gateway
9+ data :
10+ config.yaml : |
11+ {{- .Values.mcpContextForge.pluginConfig.plugins | nindent 4 }}
12+ {{- end }}
Original file line number Diff line number Diff line change @@ -152,3 +152,20 @@ spec:
152152 # Resource requests / limits
153153 resources :
154154{{- toYaml .Values.mcpContextForge.resources | nindent 12 }}
155+
156+ {{- /* Plugins enabled need the plugins configuration */}}
157+ {{- if .Values.mcpContextForge.pluginConfig.enabled }}
158+ volumeMounts :
159+ - name : plugin-config-volume
160+ mountPath : /app/{{ .Values.mcpContextForge.config.PLUGIN_CONFIG_FILE }}
161+ subPath : config.yaml
162+ {{- end }}
163+ {{- if .Values.mcpContextForge.pluginConfig.enabled }}
164+ volumes :
165+ - name : plugin-config-volume
166+ configMap :
167+ name : {{ include "mcp-stack.fullname" . }}-gateway-plugins
168+ items :
169+ - key : config.yaml
170+ path : config.yaml
171+ {{- end }}
Original file line number Diff line number Diff line change 251251 },
252252 "additionalProperties" : false
253253 },
254+
255+ "pluginConfig" : {
256+ "type" : " object" ,
257+ "description" : " Plugin configuration via ConfigMap" ,
258+ "properties" : {
259+ "enabled" : {
260+ "type" : " boolean" ,
261+ "description" : " Enable plugin configuration loading via ConfigMap" ,
262+ "default" : false
263+ },
264+ "plugins" : {
265+ "type" : " string" ,
266+ "description" : " Plugin configuration file contents (YAML)"
267+ }
268+ }
269+ },
254270 "env" : {
255271 "type" : " object" ,
256272 "description" : " Environment configuration" ,
Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ global:
1111# MCP CONTEXT-FORGE (Gateway / API tier)
1212# #######################################################################
1313mcpContextForge :
14+ # --- Specific plugin file ----#
15+ pluginConfig :
16+ enabled : false
17+ plugins : |
18+ # plugin file
19+
1420 replicaCount : 2 # horizontal scaling for the gateway
1521
1622 # --- HORIZONTAL POD AUTOSCALER --------------------------------------
@@ -93,9 +99,9 @@ mcpContextForge:
9399 host : gateway.local # CHANGE to your FQDN (e.g. api.example.com)
94100 path : /
95101 pathType : Prefix
96- annotations :
97- nginx.ingress.kubernetes.io/rewrite-target : /
98- # cert-manager.io/cluster-issuer: letsencrypt-prod # Uncomment to enable automatic TLS cert generation
102+ annotations : {} # Custom ingress annotations (optional)
103+ # nginx.ingress.kubernetes.io/rewrite-target: /
104+ # cert-manager.io/cluster-issuer: letsencrypt-prod
99105 tls :
100106 enabled : false # Set to true to enable TLS
101107 secretName : " " # Name of the TLS secret (auto-generated if empty)
You can’t perform that action at this time.
0 commit comments