[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72136521SATPWTKHPBETWAV":3,"skill-same:01M72136521SATPWTKHPBETWAV":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M72136521SATPWTKHPBETWAV","gke-batch-hpc",null,"Runs batch and HPC workloads on GKE, utilizing job queues and parallel processing. Use when running GKE batch jobs, configuring GKE HPC, or setting up GKE job queues. Don't use for standard web application deployments (use gke-app-onboarding instead).","gke-labs\u002Fkube-agents","gke-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F197140281?v=4","01M720MEZR8K6WD2WTHNQE346Q","01M720MF0BRA9RGH1QVT4J0M0E",126,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-batch-hpc\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: gke-batch-hpc\ndescription: >-\n  Runs batch and HPC workloads on GKE, utilizing job queues and parallel\n  processing. Use when running GKE batch jobs, configuring GKE HPC, or setting\n  up GKE job queues. Don't use for standard web application deployments (use\n  gke-app-onboarding instead).\nmetadata:\n  category: Containers\n---\n\n# GKE Batch & HPC Workloads\n\nThis reference covers running batch processing and high-performance computing\n(HPC) workloads on GKE.\n\n> **MCP Tools:** `apply_k8s_manifest`, `get_k8s_resource`,\n> `describe_k8s_resource`, `get_k8s_logs`, `delete_k8s_resource`,\n> `list_k8s_events`\n\n## When to Use\n\n-   Running batch data processing pipelines\n-   HPC simulations (CFD, molecular dynamics, financial modeling)\n-   Large-scale parallel computation (MPI, MapReduce)\n-   ML training jobs\n-   CI\u002FCD build farms\n\n## Batch Processing on GKE\n\n### Kubernetes Jobs\n\n```yaml\napiVersion: batch\u002Fv1\nkind: Job\nmetadata:\n  name: batch-job\nspec:\n  parallelism: 10\n  completions: 100\n  backoffLimit: 3\n  template:\n    spec:\n      containers:\n      - name: worker\n        image: \u003CIMAGE>\n        resources:\n          requests:\n            cpu: \"1\"\n            memory: \"2Gi\"\n      restartPolicy: Never\n```\n\n### JobSet (for Complex Multi-Job Workflows)\n\nThe golden path enables JobSet monitoring (`JOBSET` in monitoringConfig).\n\n```yaml\napiVersion: jobset.x-k8s.io\u002Fv1alpha2\nkind: JobSet\nmetadata:\n  name: training-job\nspec:\n  replicatedJobs:\n  - name: workers\n    replicas: 4\n    template:\n      spec:\n        parallelism: 1\n        completions: 1\n        template:\n          spec:\n            containers:\n            - name: worker\n              image: \u003CIMAGE>\n              resources:\n                requests:\n                  cpu: \"4\"\n                  memory: \"8Gi\"\n```\n\n### Kueue (Job Queuing)\n\nKueue manages job scheduling and resource allocation for batch workloads:\n\n```bash\n# Install Kueue\nkubectl apply --server-side -f https:\u002F\u002Fgithub.com\u002Fkubernetes-sigs\u002Fkueue\u002Freleases\u002Flatest\u002Fdownload\u002Fmanifests.yaml\n```\n\n```yaml\n# Define a ClusterQueue\napiVersion: kueue.x-k8s.io\u002Fv1beta1\nkind: ClusterQueue\nmetadata:\n  name: batch-queue\nspec:\n  namespaceSelector: {}\n  resourceGroups:\n  - coveredResources: [\"cpu\", \"memory\"]\n    flavors:\n    - name: default\n      resources:\n      - name: \"cpu\"\n        nominalQuota: 100\n      - name: \"memory\"\n        nominalQuota: \"200Gi\"\n---\n# Allow a namespace to use the queue\napiVersion: kueue.x-k8s.io\u002Fv1beta1\nkind: LocalQueue\nmetadata:\n  name: batch-local\n  namespace: batch-jobs\nspec:\n  clusterQueue: batch-queue\n```\n\n## HPC on GKE\n\n### Compact Placement (Low-Latency Networking)\n\nFor tightly-coupled HPC workloads that need low-latency inter-node\ncommunication:\n\n```bash\n# Standard clusters: create node pool with compact placement\ngcloud container node-pools create hpc-pool \\\n  --cluster \u003CCLUSTER_NAME> --region \u003CREGION> \\\n  --machine-type c3-standard-44 \\\n  --placement-type COMPACT \\\n  --num-nodes 8 \\\n  --enable-autoscaling --min-nodes 0 --max-nodes 16 \\\n  --quiet\n```\n\n### MPI Workloads\n\nUse the MPI Operator for MPI-based HPC applications:\n\n```bash\n# Install MPI Operator\nkubectl apply -f https:\u002F\u002Fraw.githubusercontent.com\u002Fkubeflow\u002Fmpi-operator\u002Fmaster\u002Fdeploy\u002Fv2beta1\u002Fmpi-operator.yaml\n```\n\n```yaml\napiVersion: kubeflow.org\u002Fv2beta1\nkind: MPIJob\nmetadata:\n  name: hpc-simulation\nspec:\n  slotsPerWorker: 4\n  mpiReplicaSpecs:\n    Launcher:\n      replicas: 1\n      template:\n        spec:\n          containers:\n          - name: launcher\n            image: \u003CMPI_IMAGE>\n            command: [\"mpirun\", \"-np\", \"32\", \".\u002Fsimulation\"]\n            resources:\n              requests:\n                cpu: \"1\"\n                memory: \"2Gi\"\n              limits:\n                cpu: \"2\"\n                memory: \"4Gi\"\n    Worker:\n      replicas: 8\n      template:\n        spec:\n          containers:\n          - name: worker\n            image: \u003CMPI_IMAGE>\n            resources:\n              requests:\n                cpu: \"4\"\n                memory: \"8Gi\"\n              limits:\n                cpu: \"8\"\n                memory: \"16Gi\"\n```\n\n## Cost Optimization for Batch\u002FHPC\n\n### Spot VMs for Batch\n\nBatch workloads are ideal Spot VM candidates (interruptible, can checkpoint).\nUse a ComputeClass with Spot-first priority and `activeMigration` to return to\nSpot when available. See the `gke-compute-classes` skill for the\nSpot-with-fallback pattern.\n\n### Scale-to-Zero\n\nFor batch clusters, allow node pools to scale to zero when no jobs are running:\n\n-   Autopilot (golden path): Automatic, nodes scale to zero when no pods are\n    scheduled\n-   Standard: Set `--min-nodes 0` on batch node pools\n\n## Best Practices & Production Guidelines\n\n-   **Resource Quotas**: Always specify resource requests and limits (CPU,\n    memory, and optionally GPU\u002FTPU) for all batch\u002FHPC manifests. This is\n    critical for Kueue admission, autoscaling, and preventing resource\n    starvation in the cluster.\n-   **TPU\u002FSpot Cluster Maintenance**: For long-running AI training runs on Spot\n    VMs\u002FTPUs, advise using **GKE maintenance exclusions** to block automatic\n    cluster upgrades\u002Freboots during the active training window to minimize\n    unnecessary preemption.\n-   **MPI Workloads**: Use the **Kubeflow Training Operator** to orchestrate\n    distributed MPI applications via the `MPIJob` custom resource.\n-   **Kueue & JobSet**: Use **Kueue** for multi-tenant job queueing and fair\n    sharing; use **JobSet** for multi-component tightly coupled workloads.\n-   **Resilience**: Always set a `backoffLimit` on Jobs, and implement\n    application-level checkpointing (e.g., using Orbax or PyTorch checkpointing)\n    to survive Spot VM preemption.\n","# GKE Batch & HPC Workloads\n\nThis reference covers running batch processing and high-performance computing\n(HPC) workloads on GKE.\n\n> **MCP Tools:** `apply_k8s_manifest`, `get_k8s_resource`,\n> `describe_k8s_resource`, `get_k8s_logs`, `delete_k8s_resource`,\n> `list_k8s_events`\n\n## When to Use\n\n-   Running batch data processing pipelines\n-   HPC simulations (CFD, molecular dynamics, financial modeling)\n-   Large-scale parallel computation (MPI, MapReduce)\n-   ML training jobs\n-   CI\u002FCD build farms\n\n## Batch Processing on GKE\n\n### Kubernetes Jobs\n\n```yaml\napiVersion: batch\u002Fv1\nkind: Job\nmetadata:\n  name: batch-job\nspec:\n  parallelism: 10\n  completions: 100\n  backoffLimit: 3\n  template:\n    spec:\n      containers:\n      - name: worker\n        image: \u003CIMAGE>\n        resources:\n          requests:\n            cpu: \"1\"\n            memory: \"2Gi\"\n      restartPolicy: Never\n```\n\n### JobSet (for Complex Multi-Job Workflows)\n\nThe golden path enables JobSet monitoring (`JOBSET` in monitoringConfig).\n\n```yaml\napiVersion: jobset.x-k8s.io\u002Fv1alpha2\nkind: JobSet\nmetadata:\n  name: training-job\nspec:\n  replicatedJobs:\n  - name: workers\n    replicas: 4\n    template:\n      spec:\n        parallelism: 1\n        completions: 1\n        template:\n          spec:\n            containers:\n            - name: worker\n              image: \u003CIMAGE>\n              resources:\n                requests:\n                  cpu: \"4\"\n                  memory: \"8Gi\"\n```\n\n### Kueue (Job Queuing)\n\nKueue manages job scheduling and resource allocation for batch workloads:\n\n```bash\n# Install Kueue\nkubectl apply --server-side -f https:\u002F\u002Fgithub.com\u002Fkubernetes-sigs\u002Fkueue\u002Freleases\u002Flatest\u002Fdownload\u002Fmanifests.yaml\n```\n\n```yaml\n# Define a ClusterQueue\napiVersion: kueue.x-k8s.io\u002Fv1beta1\nkind: ClusterQueue\nmetadata:\n  name: batch-queue\nspec:\n  namespaceSelector: {}\n  resourceGroups:\n  - coveredResources: [\"cpu\", \"memory\"]\n    flavors:\n    - name: default\n      resources:\n      - name: \"cpu\"\n        nominalQuota: 100\n      - name: \"memory\"\n        nominalQuota: \"200Gi\"\n---\n# Allow a namespace to use the queue\napiVersion: kueue.x-k8s.io\u002Fv1beta1\nkind: LocalQueue\nmetadata:\n  name: batch-local\n  namespace: batch-jobs\nspec:\n  clusterQueue: batch-queue\n```\n\n## HPC on GKE\n\n### Compact Placement (Low-Latency Networking)\n\nFor tightly-coupled HPC workloads that need low-latency inter-node\ncommunication:\n\n```bash\n# Standard clusters: create node pool with compact placement\ngcloud container node-pools create hpc-pool \\\n  --cluster \u003CCLUSTER_NAME> --region \u003CREGION> \\\n  --machine-type c3-standard-44 \\\n  --placement-type COMPACT \\\n  --num-nodes 8 \\\n  --enable-autoscaling --min-nodes 0 --max-nodes 16 \\\n  --quiet\n```\n\n### MPI Workloads\n\nUse the MPI Operator for MPI-based HPC applications:\n\n```bash\n# Install MPI Operator\nkubectl apply -f https:\u002F\u002Fraw.githubusercontent.com\u002Fkubeflow\u002Fmpi-operator\u002Fmaster\u002Fdeploy\u002Fv2beta1\u002Fmpi-operator.yaml\n```\n\n```yaml\napiVersion: kubeflow.org\u002Fv2beta1\nkind: MPIJob\nmetadata:\n  name: hpc-simulation\nspec:\n  slotsPerWorker: 4\n  mpiReplicaSpecs:\n    Launcher:\n      replicas: 1\n      template:\n        spec:\n          containers:\n          - name: launcher\n            image: \u003CMPI_IMAGE>\n            command: [\"mpirun\", \"-np\", \"32\", \".\u002Fsimulation\"]\n            resources:\n              requests:\n                cpu: \"1\"\n                memory: \"2Gi\"\n              limits:\n                cpu: \"2\"\n                memory: \"4Gi\"\n    Worker:\n      replicas: 8\n      template:\n        spec:\n          containers:\n          - name: worker\n            image: \u003CMPI_IMAGE>\n            resources:\n              requests:\n                cpu: \"4\"\n                memory: \"8Gi\"\n              limits:\n                cpu: \"8\"\n                memory: \"16Gi\"\n```\n\n## Cost Optimization for Batch\u002FHPC\n\n### Spot VMs for Batch\n\nBatch workloads are ideal Spot VM candidates (interruptible, can checkpoint).\nUse a ComputeClass with Spot-first priority and `activeMigration` to return to\nSpot when available. See the `gke-compute-classes` skill for the\nSpot-with-fallback pattern.\n\n### Scale-to-Zero\n\nFor batch clusters, allow node pools to scale to zero when no jobs are running:\n\n-   Autopilot (golden path): Automatic, nodes scale to zero when no pods are\n    scheduled\n-   Standard: Set `--min-nodes 0` on batch node pools\n\n## Best Practices & Production Guidelines\n\n-   **Resource Quotas**: Always specify resource requests and limits (CPU,\n    memory, and optionally GPU\u002FTPU) for all batch\u002FHPC manifests. This is\n    critical for Kueue admission, autoscaling, and preventing resource\n    starvation in the cluster.\n-   **TPU\u002FSpot Cluster Maintenance**: For long-running AI training runs on Spot\n    VMs\u002FTPUs, advise using **GKE maintenance exclusions** to block automatic\n    cluster upgrades\u002Freboots during the active training window to minimize\n    unnecessary preemption.\n-   **MPI Workloads**: Use the **Kubeflow Training Operator** to orchestrate\n    distributed MPI applications via the `MPIJob` custom resource.\n-   **Kueue & JobSet**: Use **Kueue** for multi-tenant job queueing and fair\n    sharing; use **JobSet** for multi-component tightly coupled workloads.\n-   **Resilience**: Always set a `backoffLimit` on Jobs, and implement\n    application-level checkpointing (e.g., using Orbax or PyTorch checkpointing)\n    to survive Spot VM preemption.\n",{"name":5,"metadata":23,"description":7},{"category":24},"Containers","main","af354bf2b99e17df77e52c512a7ba968c37c2306","third_party\u002Fgoogle-skills\u002Fgke-batch-hpc",44,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents","https:\u002F\u002Fgke-labs.github.io\u002Fkube-agents\u002F","https:\u002F\u002Fgithub.com\u002Fgke-labs","2026-11-14 20:53:19",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add gke-labs\u002Fkube-agents --skill gke-batch-hpc",{"tool":39,"command":40},"bunx","bunx skills add gke-labs\u002Fkube-agents --skill gke-batch-hpc",{"tool":42,"command":43},"pnpm","pnpm dlx skills add gke-labs\u002Fkube-agents --skill gke-batch-hpc","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-batch-hpc\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M72168JZM6CYRZFWW204PA2V","gke-workload-troubleshooting","Diagnoses GKE workload failures (CrashLoopBackOff, OOMKilled, ImagePullBackOff, Pending, etc.) via logs and events. Use when pods fail to start or crash repeatedly. Don't use for GKE cluster infrastructure provisioning, node pool creation, or non-Kubernetes Google Cloud services.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-troubleshooting\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M721643JPG43MFDHGN067D7T","gke-workload-security","Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running security audits (`audit_cluster.sh`), enforcing Network Policies (default-deny and Dataplane V2 logging), isolating high-risk pods inside GKE Sandbox (`gVisor`), enforcing Pod Security Standards (`restricted` labeling) and pod securityContext, and mounting Secret Manager secrets via CSI (`SecretProviderClass`). Use when auditing workload security posture, isolating namespaces, applying pod security standards, or configuring network policies and secret volume mounts. Don't use for Workload Identity (use gke-workload-identity), cluster-wide control plane security, RBAC hardening, Binary Authorization, Shielded Nodes, or enabling platform-level GKE add-ons (use gke-platform-security instead).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-security\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M721618QGFKZRWHS0RFVG7WT","gke-workload-scaling","Manages scaling for GKE workloads using HPA and VPA. Use when configuring Horizontal Pod Autoscaler (HPA), configuring Vertical Pod Autoscaler (VPA), or applying best practices for GKE workload autoscaling. Do not use for cluster-level autoscaling (Cluster Autoscaler), static cluster sizing, or configuring node-level machine styles directly.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-scaling\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7215WA1TNFDZE22VJEN3XXW","gke-workload-identity","Configures and diagnoses Workload Identity Federation for GKE authentication failures for Pods (403 \"iam.serviceAccounts.getAccessToken\" \u002F permission denied, \"could not find default credentials\", or GKE metadata server unreachable) by verifying cluster and node-pool Workload Identity configuration, the Kubernetes ServiceAccount (KSA) to IAM binding (direct principal binding and legacy Google ServiceAccount impersonation), target-resource IAM roles, and gke-metadata-server health. Use when setting up KSA\u002FGSA bindings (`roles\u002Fiam.workloadIdentityUser`, `iam.gke.io\u002Fgcp-service-account`) or when a Pod cannot authenticate to Google Cloud APIs. Don't use for in-cluster Kubernetes RBAC errors (API-server authorization), general workload crashes (use gke-workload-troubleshooting), or Pod Security Standards and NetworkPolicies (use gke-workload-security).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-identity\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7215PJTBTZ0W15ZZ2W32FF9","gke-upgrades","Plans, executes, and validates Google Kubernetes Engine (GKE) cluster upgrades and maintenance operations for both Standard and Autopilot clusters. Produces upgrade plans, pre\u002Fpost-upgrade checklists, maintenance runbooks with gcloud commands, release channel strategy, and troubleshooting guides. Handles node pool upgrade strategies (surge, blue-green), version compatibility, PDB management, and workload-specific concerns (stateful, GPU, operators). Use this skill whenever the user mentions GKE upgrades, Kubernetes version bumps, node pool maintenance, GKE patching, cluster version management, release channel selection, maintenance windows, surge upgrades, stuck upgrades, or any GKE lifecycle management task — even casual mentions like \"we need to upgrade our clusters\" or \"plan our next GKE maintenance\" or \"our upgrade is stuck.\" Don't use for GKE cluster creation, application onboarding, general networking\u002Frouting setup, or security policy configurations (use gke-basics or relevant GKE skills instead).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-upgrades\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M7215JX0FBZBTG4570CJ20HS","gke-tpu-metrics-monitoring","Monitors and troubleshoots GKE TPU workloads, nodes, and node pools using GKE system metrics and PromQL. Use when monitoring TensorCore duty cycle, TPU memory, node readiness, multi-host TPU node pool availability, host maintenance or preemption interruptions, and calculating MTTR or MTBI metrics for GKE TPUs. Don't use for general non-TPU GKE workload monitoring or non-metric TPU debugging.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-tpu-metrics-monitoring\u002FSKILL.md",[],[]]