google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
aks-deployment-troubleshooter
Diagnose and fix Kubernetes deployment failures, especially ImagePullBackOff, CrashLoopBackOff, and architecture mismatches. Battle-tested from 4-hour AKS debugging session with 10+ failure modes resolved.
Full skill instructions
This skill captures systematic approaches to debugging Kubernetes deployments, with specific focus on container image issues. Based on real debugging session resolving 10+ different failure modes.
ImagePullBackOffCrashLoopBackOff with exec format errorPod not running?
│
├─► ImagePullBackOff
│ │
│ ├─► "not found" ──► Wrong tag or registry path
│ ├─► "unauthorized" ──► Auth/imagePullSecrets issue
│ └─► "no match for platform" ──► Architecture mismatch
│
├─► CrashLoopBackOff
│ │
│ ├─► "exec format error" ──► Wrong CPU architecture
│ ├─► Exit code 1 ──► App startup failure (check logs)
│ └─► OOMKilled ──► Memory limits too low
│
└─► Pending
│
├─► Insufficient CPU/memory ──► Scale cluster or reduce requests
└─► No matching node ──► Check nodeSelector/tolerations
kubectl get pods -n <namespace>
kubectl describe pod <pod-name> -n <namespace> | grep -E "(Image:|Failed|Error|pull)"
kubectl get events -n <namespace> --sort-by='.lastTimestamp' | tail -20
kubectl logs <pod-name> -n <namespace> --tail=50
kubectl get nodes -o jsonpath='{.items[*].status.nodeInfo.architecture}'
Error:
Failed to pull image "ghcr.io/owner/repo/app:abc123": not found
Causes & Solutions:
| Cause | Solution |
|---|---|
| Tag doesn't exist | Verify image was pushed with exact tag |
| Short vs full SHA | Align metadata-action with deploy (use type=raw,value=${{ github.sha }}) |
| Builds skipped | Manual trigger or remove path filters |
| Wrong registry | Check image.repository in Helm values |
Diagnostic:
# Check what tags exist (requires gh cli and package visibility)
gh api /users/<owner>/packages/container/<package>/versions
Error:
failed to authorize: failed to fetch anonymous token: 401 Unauthorized
Causes & Solutions:
| Cause | Solution |
|---|---|
| Package is private | Make package public in GHCR settings |
| Missing imagePullSecrets | Create docker-registry secret |
| Wrong credentials | Regenerate and update secret |
Create imagePullSecrets:
kubectl create secret docker-registry ghcr-secret \
--docker-server=ghcr.io \
--docker-username=<github-username> \
--docker-password=<github-token> \
--namespace=<namespace>
Link secret in deployment:
spec:
imagePullSecrets:
- name: ghcr-secret
Error:
no match for platform in manifest: not found
Root Cause: Image built for wrong CPU architecture OR buildx provenance issue.
Step 1: Check cluster architecture:
kubectl get nodes -o jsonpath='{.items[*].status.nodeInfo.architecture}'
# Output: amd64 amd64 OR arm64 arm64
Step 2: Match build platform:
# In GitHub Actions docker/build-push-action
- uses: docker/build-push-action@v5
with:
platforms: linux/arm64 # or linux/amd64
provenance: false # CRITICAL: Disable attestation manifests
no-cache: true # Force fresh build
Why provenance: false?
Buildx creates multi-arch manifest lists with attestations. Some container runtimes can't find the actual image in complex manifests. Disabling provenance creates simple single-platform images.
Error:
exec /usr/local/bin/docker-entrypoint.sh: exec format error
Root Cause: Binary architecture doesn't match node architecture.
Example: Built linux/amd64 image, deployed to arm64 nodes.
Solution:
kubectl get nodes -o jsonpath='{.items[*].status.nodeInfo.architecture}'platforms: linux/arm64 # Match your cluster!
no-cache: true # Force complete rebuild
provenance: false # Simple manifest
Error:
failed parsing --set data: key "com" has no value (cannot end with ,)
Root Cause: Helm interprets commas as array separators in --set.
Wrong:
--set "origins=https://a.com,https://b.com"
Solution: Use heredoc values file:
# In GitHub Actions
- name: Deploy
run: |
cat > /tmp/overrides.yaml << EOF
sso:
env:
ALLOWED_ORIGINS: "https://a.com,https://b.com"
EOF
helm upgrade --install app ./chart \
--values /tmp/overrides.yaml
Error:
Error: No subscriptions found for ***
Root Cause: Missing subscriptionId in AZURE_CREDENTIALS.
Solution: Use --sdk-auth format:
az ad sp create-for-rbac \
--name "github-actions" \
--role contributor \
--scopes /subscriptions/<subscription-id>/resourceGroups/<rg-name> \
--sdk-auth
Required JSON structure:
{
"clientId": "xxx",
"clientSecret": "xxx",
"subscriptionId": "xxx", // MUST be present
"tenantId": "xxx"
}
Error:
403 Forbidden: permission_denied: write_package
Solutions:
packages: write permission:permissions:
contents: read
packages: write
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/arm64 # Match cluster architecture!
provenance: false # Avoid manifest complexity
no-cache: true # For debugging; remove in production
tags: |
ghcr.io/owner/repo:${{ github.sha }}
ghcr.io/owner/repo:latest
Problem: Short SHA vs Full SHA mismatch
# docker/metadata-action default: short SHA (7 chars)
type=sha,prefix= # Creates: ghcr.io/repo:abc1234
# github.sha is full SHA (40 chars)
${{ github.sha }} # Is: abc1234567890abcdef...
Solution: Use explicit full SHA:
tags: |
type=raw,value=${{ github.sha }}
type=raw,value=latest,enable={{is_default_branch}}
kubectl get nodes -o jsonpath='{.items[*].status.nodeInfo.architecture}')provenance: false setplatforms: linux/<arch> matches clusterpackages: write permission--set values (use values file instead)kubectl describe podno-cache: truecloud-deploy-blueprint - Full deployment setuphelm-charts - Helm chart patternscontainerize-apps - Dockerfile best practicesProject scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.