-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathmcpserver_with_resource_overrides.yaml
More file actions
52 lines (51 loc) · 1.62 KB
/
mcpserver_with_resource_overrides.yaml
File metadata and controls
52 lines (51 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
apiVersion: toolhive.stacklok.dev/v1beta1
kind: MCPServer
metadata:
name: github-with-overrides
namespace: toolhive-system
spec:
image: docker.io/mcp/github
transport: stdio
proxyPort: 8080
secrets:
- name: github-token
key: GITHUB_PERSONAL_ACCESS_TOKEN
env:
- name: GITHUB_API_URL
value: https://api.github.com
- name: LOG_LEVEL
value: info
resources:
limits:
cpu: "200m"
memory: "256Mi"
requests:
cpu: "100m"
memory: "128Mi"
resourceOverrides:
proxyDeployment:
# Annotations and labels for the proxy deployment
annotations:
example.com/deployment-annotation: "custom-deployment-value"
monitoring.example.com/scrape: "true"
monitoring.example.com/port: "8080"
labels:
example.com/deployment-label: "custom-deployment-label"
environment: "production"
team: "platform"
# Environment variables for the proxy runner container (thv-proxyrunner)
# These affect the ToolHive proxy itself, not the MCP server it manages
env:
- name: CUSTOM_PROXY_VAR
value: "custom-value"
- name: TOOLHIVE_DEBUG
value: "true" # Enable debug logging to see detailed token exchange, middleware, and proxy logs
proxyService:
annotations:
example.com/service-annotation: "custom-service-value"
service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
external-dns.alpha.kubernetes.io/hostname: "github-mcp.example.com"
labels:
example.com/service-label: "custom-service-label"
environment: "production"
team: "platform"