Repository navigation
feat(agentregistry): add GKE manifests and JSON spec samples #15004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| # Copyright 2026 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # [START agentregistry_gke_agent_manifest] | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: my-agent | ||
| labels: | ||
| # GKE takes this label and registers the agent to Agent Registry | ||
| registry.gke.io/functional-type: "AGENT" | ||
| annotations: | ||
| # A2A protocol metadata annotation for automated Agent Card discovery | ||
| a2a-protocol.org/agent-card: | | ||
| card: | ||
| endpoint: /.well-known/agent-card.json | ||
| protocol: HTTP | ||
| port: 8080 | ||
| spec: | ||
| selector: | ||
| matchLabels: | ||
| app: my-agent | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: my-agent | ||
| annotations: | ||
| # Agent Identity annotation for identity and access management | ||
| iam.gke.io/spiffe-identity-type: agent-identity | ||
| spec: | ||
| containers: | ||
| - name: server | ||
| image: gcr.io/PROJECT_ID/my-agent:1.0.0 | ||
| ports: | ||
| - containerPort: 8080 | ||
| env: | ||
| - name: PORT | ||
| value: "8080" | ||
| --- | ||
| # Kubernetes Service for in-cluster network routing to the agent pod | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: my-agent-service | ||
| labels: | ||
| app: my-agent | ||
| spec: | ||
| type: ClusterIP | ||
| ports: | ||
| - port: 8080 | ||
| targetPort: 8080 | ||
| protocol: TCP | ||
| name: http | ||
| selector: | ||
| app: my-agent | ||
| # [END agentregistry_gke_agent_manifest] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Copyright 2026 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # [START agentregistry_gke_mcp_server_manifest] | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: my-mcp-server | ||
| labels: | ||
| # GKE takes this label and registers the deployment as an MCP server | ||
| registry.gke.io/functional-type: "MCP_SERVER" | ||
| annotations: | ||
| # Endpoint URLs where the GKE controller can access this MCP server | ||
| modelcontextprotocol.info/urls: | | ||
| - https://my-mcp-server.default.svc.cluster.local/mcp | ||
| # Defines structural capabilities for the MCP server card | ||
| modelcontextprotocol.info/capabilities: | | ||
| card: | ||
| endpoint: "/mcp" | ||
| protocol: "HTTP" | ||
|
fatoboist marked this conversation as resolved.
Resolved
|
||
| spec: | ||
| selector: | ||
| matchLabels: | ||
| app: my-mcp-server | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: my-mcp-server | ||
| annotations: | ||
| # Agent Identity annotation for identity and access management | ||
| iam.gke.io/spiffe-identity-type: agent-identity | ||
| spec: | ||
| containers: | ||
| - name: server | ||
| image: gcr.io/PROJECT_ID/my-mcp-server:1.0.0 | ||
| # [END agentregistry_gke_mcp_server_manifest] | ||
|
fatoboist marked this conversation as resolved.
Resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "supportedInterfaces": [ | ||
| { | ||
| "url": "https://example.com/mock-travel-agent", | ||
| "protocolBinding": "HTTP+JSON", | ||
| "protocolVersion": "1.0.0" | ||
| } | ||
| ], | ||
| "name": "mock-travel-agent", | ||
| "description": "A mock agent that plans travel itineraries.", | ||
| "version": "1.0.0", | ||
| "capabilities": { | ||
| "streaming": false, | ||
| "pushNotifications": false | ||
| }, | ||
| "defaultInputModes": ["text/plain"], | ||
| "defaultOutputModes": ["text/plain"], | ||
| "skills": [ | ||
| { | ||
| "id": "BookFlight", | ||
| "name": "BookFlight", | ||
| "description": "Books a flight to a destination.", | ||
| "tags": ["travel", "booking"] | ||
| }, | ||
| { | ||
| "id": "SearchHotels", | ||
| "name": "SearchHotels", | ||
| "description": "Searches for hotels in a destination city.", | ||
| "tags": ["travel", "accommodation"] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "tools": [ | ||
| { | ||
| "name": "get_customer_info", | ||
| "description": "Retrieves customer details from the database.", | ||
| "annotations": { | ||
| "title": "Get Customer Info", | ||
| "readOnlyHint": true, | ||
| "idempotentHint": true | ||
| } | ||
| }, | ||
| { | ||
| "name": "create_support_ticket", | ||
| "description": "Creates a new support ticket in the issue tracking system.", | ||
| "annotations": { | ||
| "title": "Create Support Ticket", | ||
| "destructiveHint": true, | ||
| "idempotentHint": false, | ||
| "openWorldHint": true | ||
| }, | ||
| "_meta": { | ||
| "com.googleapis.iap/PolicyHints": { | ||
| "authorization": { | ||
| "toolDisabled": false, | ||
| "hitlMode": "HITL_MODE_ALWAYS" | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
fatoboist marked this conversation as resolved.
Resolved
|
||
| ] | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.