Skip to main content
skill CX Codex

k8s-kaniko-job — Claude Code skill: build and install

Builds a container image in a Kubernetes Kaniko Job and pushes it to GHCR. It fits managed deploys running without a Docker daemon.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add labring/sealos-skills --skill k8s-kaniko-job -a claude-code
Open on GitHub

What k8s-kaniko-job does

The skill runs scripts/kaniko-build.py to package the project context, place it in the local VersityGW store, create a Kaniko Job in the current namespace, and publish the image to GHCR. The command returns an image digest and reference, so deployments can pin the digest instead of relying on a mutable tag.

The build runs inside Kubernetes as linux/amd64, with kubectl, python3, tar, curl, and bash available to the script. GHCR access needs GITHUB_TOKEN with write:packages; the image owner must match the token login after lowercasing. A Dockerfile must be present in the build context.

Use this skill for SEALAI_DEPLOY_MODE=managed. Local interactive deploys use docker buildx, so this workflow is the wrong path for them.

What it helps with

  • build an image without a Docker daemon
  • send project sources to a Kaniko Job
  • push the result to GHCR
  • pin a deployment to an image digest
  • diagnose a failed context upload

Example prompts for the agent

  • Build the project with scripts/kaniko-build.py and publish it as ghcr.io/<owner>/<repo>:<tag>.
  • Run a managed build from the project workspace using . as the context and Dockerfile as the Dockerfile, then return image_ref and digest.
  • Inspect the Kaniko Job failure and report redacted findings without printing tokens or Secret payloads.

How to install k8s-kaniko-job

1Skills CLI (Vercel)

npx skills add labring/sealos-skills --skill k8s-kaniko-job -a claude-code

2Manually: put the files in place

~/.claude/skills/k8s-kaniko-job/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/k8s-kaniko-job/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about k8s-kaniko-job

How do I install k8s-kaniko-job in Claude Code?

Run npx skills add labring/sealos-skills --skill k8s-kaniko-job -a claude-code, then check ~/.claude/skills/k8s-kaniko-job/SKILL.md.

What does k8s-kaniko-job do?

It creates a Kaniko Job in Kubernetes, builds an image from project sources, and pushes it to GHCR. The result includes the published image reference and digest.

What does the build require?

You need a sandbox namespace reachable through kubectl, permissions for Jobs, Secrets, Pods, and logs, a GITHUB_TOKEN with write:packages, and a Dockerfile in the context.

Similar skills

All skills for DevOps and infrastructure →

From the same set2

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor