aks-deployment-troubleshooter — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited aks-deployment-troubleshooter (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
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/tolerationskubectl 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 -20kubectl logs <pod-name> -n <namespace> --tail=50kubectl get nodes -o jsonpath='{.items[*].status.nodeInfo.architecture}'Error:
Failed to pull image "ghcr.io/owner/repo/app:abc123": not foundCauses & 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>/versionsError:
failed to authorize: failed to fetch anonymous token: 401 UnauthorizedCauses & 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-secretError:
no match for platform in manifest: not foundRoot 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 arm64Step 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 buildWhy `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 errorRoot 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 manifestError:
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.yamlError:
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-authRequired JSON structure:
{
"clientId": "xxx",
"clientSecret": "xxx",
"subscriptionId": "xxx", // MUST be present
"tenantId": "xxx"
}Error:
403 Forbidden: permission_denied: write_packageSolutions:
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:latestProblem: 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 practices~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.