Skip to content

Commit 2642816

Browse files
authored
changes examples to use new port names (#2341)
Signed-off-by: ChrisJBurns <[email protected]>
1 parent 295a70b commit 2642816

File tree

10 files changed

+16
-15
lines changed

10 files changed

+16
-15
lines changed

cmd/thv-operator/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ metadata:
139139
spec:
140140
image: docker.io/mcp/fetch
141141
transport: stdio
142-
port: 8080
142+
proxyPort: 8080
143+
mcpPort: 8080
143144
resources:
144145
limits:
145146
cpu: "100m"
@@ -167,8 +168,8 @@ metadata:
167168
namespace: toolhive-system
168169
spec:
169170
image: ghcr.io/github/github-mcp-server
170-
transport: stdio
171-
port: 8080
171+
proxyPort: 8080
172+
mcpPort: 8080
172173
secrets:
173174
- name: github-token
174175
key: token

examples/operator/external-auth/complete_example.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ spec:
5757
transport: streamable-http
5858
tools:
5959
- fetch
60-
port: 8080
61-
targetPort: 8080
60+
proxyPort: 8080
61+
mcpPort: 8080
6262

6363
# Reference to external auth configuration
6464
externalAuthConfigRef:

examples/operator/external-auth/mcpserver_with_external_auth.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ spec:
1717
- fetch
1818

1919
# Port configuration
20-
port: 8080
21-
targetPort: 8080
20+
proxyPort: 8080
21+
mcpPort: 8080
2222

2323
# Reference to external authentication configuration
2424
# The MCPExternalAuthConfig must be in the same namespace

examples/operator/mcp-servers/mcpserver_fetch_otel.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
spec:
77
image: ghcr.io/stackloklabs/gofetch/server
88
transport: streamable-http
9-
port: 8080
10-
targetPort: 8080
9+
proxyPort: 8080
10+
mcpPort: 8080
1111
resources:
1212
limits:
1313
cpu: "100m"

examples/operator/mcp-servers/mcpserver_mkp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
spec:
77
image: ghcr.io/stackloklabs/mkp/server
88
transport: streamable-http
9-
targetPort: 8080
109
proxyPort: 8080
10+
mcpPort: 8080
1111
args:
1212
# Change to true for read-write access.
1313
- --read-write=false

examples/operator/mcp-servers/mcpserver_with_inline_oidc_secretref.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ metadata:
1515
spec:
1616
image: docker.io/mcp/fetch
1717
transport: stdio
18-
port: 8080
18+
proxyPort: 8080
1919
oidcConfig:
2020
type: inline
2121
inline:

examples/operator/mcp-servers/mcpserver_with_restart_strategy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
spec:
1313
image: "ghcr.io/stackloklabs/gofetch/server"
1414
transport: stdio
15-
port: 8080
15+
proxyPort: 8080
1616
---
1717
# To trigger a rolling restart:
1818
# kubectl annotate mcpserver my-server mcpserver.toolhive.stacklok.dev/restarted-at="$(date -u +%Y-%m-%dT%H:%M:%SZ)" --overwrite

examples/operator/vault/mcpserver-github-with-vault.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
spec:
77
image: ghcr.io/github/github-mcp-server:latest
88
transport: stdio
9-
port: 9095
9+
proxyPort: 9095
1010
resources:
1111
limits:
1212
cpu: '100m'

test/e2e/chainsaw/operator/single-tenancy/test-scenarios/external-auth-configmap/mcpserver-with-external-auth.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
spec:
77
image: ghcr.io/stackloklabs/yardstick/yardstick-server:0.0.2
88
transport: stdio
9-
port: 8080
9+
proxyPort: 8080
1010

1111
# Reference to external authentication configuration
1212
externalAuthConfigRef:

test/e2e/chainsaw/operator/single-tenancy/test-scenarios/mcpgroup/lifecycle/mcpserver-1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
env:
1111
- name: TRANSPORT
1212
value: stdio
13-
port: 8080
13+
proxyPort: 8080
1414
resources:
1515
limits:
1616
cpu: "100m"

0 commit comments

Comments
 (0)