Kubernetes logo

Kubernetes

Community
nimadorostkar
kubernetes

Use when deploying to or debugging Kubernetes. Covers workload configuration, resource requests and limits, probes, rollout strategy, networking, and the failure modes that produce CrashLoopBackOff and OOMKilled. Trigger on "pod keeps restarting", "pod stuck in crashloopbackoff", "container got oomkilled". Do not use for Dockerfile and image problems — see the containers skill; for DNS or TLS failures outside the cluster, see the network-troubleshooting skill.

Overview

Publishernimadorostkar
RepositoryClaude-Skills-collection
Skill namekubernetes
Stars
34
Forks
4
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by nimadorostkar on GitHub. Read the source before you install it.

Installation

Install the Kubernetes AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/nimadorostkar/Claude-Skills-collection/tree/main/skills/devops/kubernetes
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nimadorostkar/Claude-Skills-collection.git /tmp/Claude-Skills-collection
mkdir -p .claude/skills
cp -r /tmp/Claude-Skills-collection/skills/devops/kubernetes .claude/skills/kubernetes
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kubernetes in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Kubernetes on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Kubernetes is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Kubernetes

Purpose

Deploy workloads that survive node failures, scale predictably, and fail visibly. Most Kubernetes incidents trace back to three things: wrong resource limits, wrong probes, and a rollout that had no way to be judged healthy.

When to Use

  • Writing or reviewing Kubernetes manifests.
  • Debugging a pod that will not start, keeps restarting, or is being evicted.
  • Configuring autoscaling, rollouts, or disruption budgets.
  • Diagnosing networking or DNS problems inside a cluster.

Capabilities

  • Workload configuration: Deployments, StatefulSets, Jobs, CronJobs.
  • Resource requests, limits, and quality-of-service classes.
  • Liveness, readiness, and startup probes.
  • Rollout strategies, PodDisruptionBudget, and graceful shutdown.
  • Networking: Services, Ingress, NetworkPolicy, cluster DNS.
  • Debugging: events, logs, ephemeral containers.

Inputs

  • The workload, its resource profile, and its startup behavior.
  • The cluster's constraints: node sizes, available classes, policies.
  • The symptom, if debugging: pod status, events, exit code.

Outputs

  • Manifests with explicit requests, limits, and probes.
  • A rollout that is safe under disruption.
  • A root cause with the evidence that identified it.

Workflow

  1. Set requests and limits deliberately — Requests determine scheduling; limits determine throttling and killing. A pod with no requests is scheduled anywhere and evicted first.
  2. Configure the three probes distinctly — Startup probe protects a slow boot. Readiness controls traffic. Liveness restarts a hung process. Conflating them causes a slow-starting pod to be killed forever.
  3. Handle SIGTERM — Kubernetes sends SIGTERM, waits terminationGracePeriodSeconds, then SIGKILL. A process that ignores SIGTERM drops in-flight requests on every deploy.
  4. Protect the rollout — maxUnavailable, maxSurge, and a PodDisruptionBudget so a node drain cannot take the last replica.
  5. Debug from the events — kubectl describe pod before kubectl logs. The reason is usually in the events, not the application output.

Best Practices

  • A CPU limit throttles; a memory limit kills. Setting a CPU limit equal to the request wastes burst capacity for no reliability gain — in most cases, set CPU requests and omit CPU limits.
  • Memory limits should be set. Without one, a leaking pod takes the whole node with it.
  • A liveness probe that hits a dependency will restart your pod when the dependency is down, converting a partial outage into a total one. Liveness checks the process; readiness checks the dependencies.
  • imagePullPolicy: Always with a :latest tag makes rollbacks impossible. Pin an immutable digest or a version tag.
  • Never store secrets in a ConfigMap. Use a Secret, and preferably an external secret store.
  • kubectl exec into a distroless container will fail. Use kubectl debug with an ephemeral container.

Examples

A Deployment with correct probes and graceful shutdown:

yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: orders-api
spec:
  replicas: 3
  strategy:
    rollingUpdate: { maxSurge: 1, maxUnavailable: 0 }   # never dip below capacity
  template:
    spec:
      terminationGracePeriodSeconds: 45                 # > the longest in-flight request
      containers:
        - name: api
          image: registry.example.com/orders-api@sha256:9f2c...   # immutable
          resources:
            requests: { cpu: 250m, memory: 512Mi }       # scheduling
            limits:   { memory: 1Gi }                    # OOM ceiling; no CPU limit
          startupProbe:                                  # allows up to 60s to boot
            httpGet: { path: /healthz, port: 8080 }
            failureThreshold: 30
            periodSeconds: 2
          readinessProbe:                                # gates traffic; checks deps
            httpGet: { path: /readyz, port: 8080 }
            periodSeconds: 5
          livenessProbe:                                 # restarts a hung process only
            httpGet: { path: /healthz, port: 8080 }
            periodSeconds: 10
            failureThreshold: 3
          lifecycle:
            preStop:
              exec:
                command: ["sleep", "10"]                 # let the LB deregister first
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: orders-api
spec:
  minAvailable: 2
  selector:
    matchLabels: { app: orders-api }

Diagnosing the standard failures:

bash
kubectl describe pod orders-api-7d4f -n prod | sed -n '/Events/,$p'
# OOMKilled       -> memory limit too low, or a leak. Check actual usage, then raise or fix.
# CrashLoopBackOff-> read the previous container's logs: kubectl logs --previous
# ImagePullBackOff-> registry auth or a tag that does not exist
# Pending         -> no node satisfies the requests; check `kubectl describe node`

Notes

  • The preStop sleep is not superstition: the endpoint removal and the SIGTERM race each other. Sleeping for a few seconds lets the load balancer stop sending traffic before the process starts shutting down.
  • readinessProbe failing removes the pod from the Service but does not restart it — which is exactly right when a dependency is temporarily unavailable.
  • Vertical Pod Autoscaler in recommendation mode is the fastest way to discover what your requests should actually be, without letting it change them for you.

Frequently asked questions

What does the Kubernetes AI skill do?

Use when deploying to or debugging Kubernetes. Covers workload configuration, resource requests and limits, probes, rollout strategy, networking, and the failure modes that produce CrashLoopBackOff and OOMKilled. Trigger on "pod keeps restarting", "pod stuck in crashloopbackoff", "container got oomkilled". Do not use for Dockerfile and image problems — see the containers skill; for DNS or TLS failures outside the cluster, see the network-troubleshooting skill.

Why use Kubernetes on TypingMind?

Because you install it once and use it with any model. Kubernetes is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Kubernetes in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/nimadorostkar/Claude-Skills-collection/tree/main/skills/devops/kubernetes. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Kubernetes?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Kubernetes?

As many as you like. As long as a model supports skills, you can use Kubernetes with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Kubernetes AI skill free?

Yes. It is published on GitHub by nimadorostkar under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇