{
  "schemaVersion": "1.0",
  "item": {
    "slug": "k8-autoscaling",
    "name": "Kubernetes Skills",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/rohitg00/k8-autoscaling",
    "canonicalUrl": "https://clawhub.ai/rohitg00/k8-autoscaling",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/k8-autoscaling",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=k8-autoscaling",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "KEDA-TRIGGERS.md",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/k8-autoscaling"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/k8-autoscaling",
    "agentPageUrl": "https://openagent3.xyz/skills/k8-autoscaling/agent",
    "manifestUrl": "https://openagent3.xyz/skills/k8-autoscaling/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/k8-autoscaling/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Kubernetes Autoscaling",
        "body": "Comprehensive autoscaling using HPA, VPA, and KEDA with kubectl-mcp-server tools."
      },
      {
        "title": "HPA (Horizontal Pod Autoscaler)",
        "body": "Basic CPU-based scaling:\n\napiVersion: autoscaling/v2\nkind: HorizontalPodAutoscaler\nmetadata:\n  name: my-app-hpa\nspec:\n  scaleTargetRef:\n    apiVersion: apps/v1\n    kind: Deployment\n    name: my-app\n  minReplicas: 2\n  maxReplicas: 10\n  metrics:\n  - type: Resource\n    resource:\n      name: cpu\n      target:\n        type: Utilization\n        averageUtilization: 70\n\nApply and verify:\n\napply_manifest(hpa_yaml, namespace)\nget_hpa(namespace)"
      },
      {
        "title": "VPA (Vertical Pod Autoscaler)",
        "body": "Right-size resource requests:\n\napiVersion: autoscaling.k8s.io/v1\nkind: VerticalPodAutoscaler\nmetadata:\n  name: my-app-vpa\nspec:\n  targetRef:\n    apiVersion: apps/v1\n    kind: Deployment\n    name: my-app\n  updatePolicy:\n    updateMode: \"Auto\""
      },
      {
        "title": "Detect KEDA Installation",
        "body": "keda_detect_tool()"
      },
      {
        "title": "List ScaledObjects",
        "body": "keda_scaledobjects_list_tool(namespace)\nkeda_scaledobject_get_tool(name, namespace)"
      },
      {
        "title": "List ScaledJobs",
        "body": "keda_scaledjobs_list_tool(namespace)"
      },
      {
        "title": "Trigger Authentication",
        "body": "keda_triggerauths_list_tool(namespace)\nkeda_triggerauth_get_tool(name, namespace)"
      },
      {
        "title": "KEDA-Managed HPAs",
        "body": "keda_hpa_list_tool(namespace)\n\nSee KEDA-TRIGGERS.md for trigger configurations."
      },
      {
        "title": "Queue-Based Scaling (AWS SQS)",
        "body": "apiVersion: keda.sh/v1alpha1\nkind: ScaledObject\nmetadata:\n  name: sqs-scaler\nspec:\n  scaleTargetRef:\n    name: queue-processor\n  minReplicaCount: 0  # Scale to zero!\n  maxReplicaCount: 100\n  triggers:\n  - type: aws-sqs-queue\n    metadata:\n      queueURL: https://sqs.region.amazonaws.com/...\n      queueLength: \"5\""
      },
      {
        "title": "Cron-Based Scaling",
        "body": "triggers:\n- type: cron\n  metadata:\n    timezone: America/New_York\n    start: 0 8 * * 1-5   # 8 AM weekdays\n    end: 0 18 * * 1-5    # 6 PM weekdays\n    desiredReplicas: \"10\""
      },
      {
        "title": "Prometheus Metrics",
        "body": "triggers:\n- type: prometheus\n  metadata:\n    serverAddress: http://prometheus:9090\n    metricName: http_requests_total\n    query: sum(rate(http_requests_total{app=\"myapp\"}[2m]))\n    threshold: \"100\""
      },
      {
        "title": "Scaling Strategies",
        "body": "StrategyToolUse CaseCPU/MemoryHPASteady traffic patternsCustom metricsHPA v2Business metricsEvent-drivenKEDAQueue processing, cronVerticalVPARight-size requestsScale to zeroKEDACost savings, idle workloads"
      },
      {
        "title": "Scale to Zero with KEDA",
        "body": "Reduce costs for idle workloads:\n\nkeda_scaledobjects_list_tool(namespace)\n# ScaledObjects with minReplicaCount: 0 can scale to zero"
      },
      {
        "title": "Right-Size with VPA",
        "body": "Get recommendations and apply:\n\nget_resource_recommendations(namespace)\n# Apply VPA recommendations"
      },
      {
        "title": "Predictive Scaling",
        "body": "Use cron triggers for known patterns:\n\n# Scale up before traffic spike\ntriggers:\n- type: cron\n  metadata:\n    start: 0 7 * * *  # 7 AM\n    end: 0 9 * * *    # 9 AM\n    desiredReplicas: \"20\""
      },
      {
        "title": "Multi-Cluster Autoscaling",
        "body": "Configure KEDA across clusters:\n\nkeda_scaledobjects_list_tool(namespace, context=\"production\")\nkeda_scaledobjects_list_tool(namespace, context=\"staging\")"
      },
      {
        "title": "HPA Not Scaling",
        "body": "get_hpa(namespace)\nget_pod_metrics(name, namespace)  # Metrics available?\ndescribe_pod(name, namespace)     # Resource requests set?"
      },
      {
        "title": "KEDA Not Triggering",
        "body": "keda_scaledobject_get_tool(name, namespace)  # Check status\nget_events(namespace)                        # Check events"
      },
      {
        "title": "Common Issues",
        "body": "SymptomCheckResolutionHPA unknownMetrics serverInstall metrics-serverKEDA no scaleTrigger authCheck TriggerAuthenticationVPA not updatingUpdate modeSet updateMode: AutoScale down slowStabilizationAdjust stabilizationWindowSeconds"
      },
      {
        "title": "Best Practices",
        "body": "Always Set Resource Requests\n\nHPA requires requests to calculate utilization\n\n\n\nUse Multiple Metrics\n\nCombine CPU + custom metrics for accuracy\n\n\n\nStabilization Windows\n\nPrevent flapping with scaleDown stabilization\n\n\n\nScale to Zero Carefully\n\nConsider cold start time\nUse activation threshold"
      },
      {
        "title": "Related Skills",
        "body": "k8s-cost - Cost optimization\nk8s-troubleshoot - Debug scaling issues"
      }
    ],
    "body": "Kubernetes Autoscaling\n\nComprehensive autoscaling using HPA, VPA, and KEDA with kubectl-mcp-server tools.\n\nQuick Reference\nHPA (Horizontal Pod Autoscaler)\n\nBasic CPU-based scaling:\n\napiVersion: autoscaling/v2\nkind: HorizontalPodAutoscaler\nmetadata:\n  name: my-app-hpa\nspec:\n  scaleTargetRef:\n    apiVersion: apps/v1\n    kind: Deployment\n    name: my-app\n  minReplicas: 2\n  maxReplicas: 10\n  metrics:\n  - type: Resource\n    resource:\n      name: cpu\n      target:\n        type: Utilization\n        averageUtilization: 70\n\n\nApply and verify:\n\napply_manifest(hpa_yaml, namespace)\nget_hpa(namespace)\n\nVPA (Vertical Pod Autoscaler)\n\nRight-size resource requests:\n\napiVersion: autoscaling.k8s.io/v1\nkind: VerticalPodAutoscaler\nmetadata:\n  name: my-app-vpa\nspec:\n  targetRef:\n    apiVersion: apps/v1\n    kind: Deployment\n    name: my-app\n  updatePolicy:\n    updateMode: \"Auto\"\n\nKEDA (Event-Driven Autoscaling)\nDetect KEDA Installation\nkeda_detect_tool()\n\nList ScaledObjects\nkeda_scaledobjects_list_tool(namespace)\nkeda_scaledobject_get_tool(name, namespace)\n\nList ScaledJobs\nkeda_scaledjobs_list_tool(namespace)\n\nTrigger Authentication\nkeda_triggerauths_list_tool(namespace)\nkeda_triggerauth_get_tool(name, namespace)\n\nKEDA-Managed HPAs\nkeda_hpa_list_tool(namespace)\n\n\nSee KEDA-TRIGGERS.md for trigger configurations.\n\nCommon KEDA Triggers\nQueue-Based Scaling (AWS SQS)\napiVersion: keda.sh/v1alpha1\nkind: ScaledObject\nmetadata:\n  name: sqs-scaler\nspec:\n  scaleTargetRef:\n    name: queue-processor\n  minReplicaCount: 0  # Scale to zero!\n  maxReplicaCount: 100\n  triggers:\n  - type: aws-sqs-queue\n    metadata:\n      queueURL: https://sqs.region.amazonaws.com/...\n      queueLength: \"5\"\n\nCron-Based Scaling\ntriggers:\n- type: cron\n  metadata:\n    timezone: America/New_York\n    start: 0 8 * * 1-5   # 8 AM weekdays\n    end: 0 18 * * 1-5    # 6 PM weekdays\n    desiredReplicas: \"10\"\n\nPrometheus Metrics\ntriggers:\n- type: prometheus\n  metadata:\n    serverAddress: http://prometheus:9090\n    metricName: http_requests_total\n    query: sum(rate(http_requests_total{app=\"myapp\"}[2m]))\n    threshold: \"100\"\n\nScaling Strategies\nStrategy\tTool\tUse Case\nCPU/Memory\tHPA\tSteady traffic patterns\nCustom metrics\tHPA v2\tBusiness metrics\nEvent-driven\tKEDA\tQueue processing, cron\nVertical\tVPA\tRight-size requests\nScale to zero\tKEDA\tCost savings, idle workloads\nCost-Optimized Autoscaling\nScale to Zero with KEDA\n\nReduce costs for idle workloads:\n\nkeda_scaledobjects_list_tool(namespace)\n# ScaledObjects with minReplicaCount: 0 can scale to zero\n\nRight-Size with VPA\n\nGet recommendations and apply:\n\nget_resource_recommendations(namespace)\n# Apply VPA recommendations\n\nPredictive Scaling\n\nUse cron triggers for known patterns:\n\n# Scale up before traffic spike\ntriggers:\n- type: cron\n  metadata:\n    start: 0 7 * * *  # 7 AM\n    end: 0 9 * * *    # 9 AM\n    desiredReplicas: \"20\"\n\nMulti-Cluster Autoscaling\n\nConfigure KEDA across clusters:\n\nkeda_scaledobjects_list_tool(namespace, context=\"production\")\nkeda_scaledobjects_list_tool(namespace, context=\"staging\")\n\nTroubleshooting\nHPA Not Scaling\nget_hpa(namespace)\nget_pod_metrics(name, namespace)  # Metrics available?\ndescribe_pod(name, namespace)     # Resource requests set?\n\nKEDA Not Triggering\nkeda_scaledobject_get_tool(name, namespace)  # Check status\nget_events(namespace)                        # Check events\n\nCommon Issues\nSymptom\tCheck\tResolution\nHPA unknown\tMetrics server\tInstall metrics-server\nKEDA no scale\tTrigger auth\tCheck TriggerAuthentication\nVPA not updating\tUpdate mode\tSet updateMode: Auto\nScale down slow\tStabilization\tAdjust stabilizationWindowSeconds\nBest Practices\n\nAlways Set Resource Requests\n\nHPA requires requests to calculate utilization\n\nUse Multiple Metrics\n\nCombine CPU + custom metrics for accuracy\n\nStabilization Windows\n\nPrevent flapping with scaleDown stabilization\n\nScale to Zero Carefully\n\nConsider cold start time\nUse activation threshold\nRelated Skills\nk8s-cost - Cost optimization\nk8s-troubleshoot - Debug scaling issues"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/rohitg00/k8-autoscaling",
    "publisherUrl": "https://clawhub.ai/rohitg00/k8-autoscaling",
    "owner": "rohitg00",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/k8-autoscaling",
    "downloadUrl": "https://openagent3.xyz/downloads/k8-autoscaling",
    "agentUrl": "https://openagent3.xyz/skills/k8-autoscaling/agent",
    "manifestUrl": "https://openagent3.xyz/skills/k8-autoscaling/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/k8-autoscaling/agent.md"
  }
}