Skip to main content
Glama

rollout-history

View deployment rollout history to track changes, identify issues, and manage Kubernetes deployments effectively.

Instructions

Show the rollout history of a deployment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deploymentYesThe name of the deployment to check history for
namespaceNoThe namespace of the deployment (optional, defaults to current context namespace)

Implementation Reference

  • Handler function for the 'rollout-history' tool. Executes 'kubectl rollout history deployment/{deployment}' with optional namespace and returns the stdout as text content.
    case "rollout-history": {
      const { deployment, namespace } = args;
      const nsArg = namespace ? `-n ${namespace}` : "";
      const cmd = `kubectl rollout history deployment/${deployment} ${nsArg}`;
      const { stdout } = await execAsync(cmd);
      return {
        content: [{ type: "text", text: stdout || "No rollout history found" }]
      };
    }
  • Input schema and tool registration definition for 'rollout-history' in the tools list returned by ListToolsRequestHandler.
      name: "rollout-history",
      description: "Show the rollout history of a deployment",
      inputSchema: {
        type: "object",
        properties: {
          deployment: { 
            type: "string",
            description: "The name of the deployment to check history for"
          },
          namespace: { 
            type: "string",
            description: "The namespace of the deployment (optional, defaults to current context namespace)"
          }
        },
        required: ["deployment"]
      }
    },
  • server.js:1392-1394 (registration)
    Registration of the ListToolsRequestHandler which returns the tools array containing the 'rollout-history' tool definition.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      return { tools };
    });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thekaranpargaie/kube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server