Логотип K8s Podspec Pro

K8s Podspec Pro

Спільнота
BretFisher
k8s-podspec-pro

Writes and reviews Kubernetes pod specs against Bret Fisher's production floor (github.com/BretFisher/podspec) for security context, user namespaces, service account tokens, probes, resources, and graceful shutdown. Use it when the user creates or edits a Deployment, StatefulSet, DaemonSet, Job, CronJob, or Pod, changes a Helm chart or Kustomize base that renders one, asks to review or harden a workload for production, or asks why a pod spec setting matters, even if they only say "deploy this to Kubernetes".

Огляд

ВидавецьBretFisher
Репозиторійskills
Назва навичкиk8s-podspec-pro
Зірки
21
Форки
1
Файли в пакеті
5
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 5

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем BretFisher. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ K8s Podspec Pro у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/BretFisher/skills/tree/main/plugins/devops/skills/k8s-podspec-pro
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/BretFisher/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/devops/skills/k8s-podspec-pro .claude/skills/k8s-podspec-pro
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку K8s Podspec Pro в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку K8s Podspec Pro, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка K8s Podspec Pro не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Kubernetes pod spec floor

Every pod template you write or review meets the floor: the settings in pod.yaml, an exact copy of https://github.com/BretFisher/podspec/blob/main/pod.yaml. Read pod.yaml at the start of each task. Its field layout and its inline comments are the shape you copy, and the table below is the summary with the exceptions.

Working style

  1. Find the pod template. Deployment, StatefulSet, DaemonSet, ReplicaSet, and Job: spec.template.spec. CronJob: spec.jobTemplate.spec.template.spec. Pod: spec. A Job, CronJob, DaemonSet, StatefulSet, Helm chart, or Kustomize base → read workload-kinds.md first.
  2. Facts are yours to find: the Dockerfile USER and EXPOSE, the health endpoints in the code, the conventions of the repo's other manifests. Read them before you write a value.
  3. Values only the user knows are decisions: memory and CPU numbers, a UID when the image has no numeric USER, a probe path the code does not show, a livenessProbe, a grace period other than 600. Ask for them in one bundled question. When the user is unavailable or says to go ahead, write the pod.yaml value with a # TODO: comment and list it under ## Placeholders.
  4. An edit brings every pod template you touch up to the floor, because the user asked you into that file; other files keep their content.

The floor

FieldValueWhy, and the exception
imagean immutable tag (semver, git SHA, build ID) or a digestA moving tag (latest, stable, none) runs different code in two pods and breaks rollback. Keep the user's tag and add # TODO: pin to an immutable tag. Leave imagePullPolicy out: its defaults are correct.
ports[].containerPortthe app's port, written in the specMany images have no EXPOSE. A batch container with no server gets no port.
readinessProbeon every long-running container; exec when there is no portA rolling update and a Service wait for it. Jobs and CronJobs have neither, so they get no readinessProbe.
livenessProbeonly for an app known to hangA bad one restarts healthy pods. It never checks a dependency, because then a database outage restarts every pod.
resourcesrequests.memory = limits.memory, requests.cpu set, no limits.cpuMemory cannot be throttled, so the limit equals what the scheduler reserves. A CPU limit throttles on an idle node. This gives Burstable QoS; Guaranteed needs CPU and memory limits equal to requests on every container, so add limits.cpu = requests.cpu only when the user needs Guaranteed (static CPU manager). The pod.yaml numbers are placeholders.
container securityContextallowPrivilegeEscalation: false, privileged: falseBlocks setuid gain; a privileged container is host root.
pod securityContext.seccompProfiletype: RuntimeDefaultKubernetes runs Unconfined unless asked.
pod securityContext userrunAsNonRoot: true; runAsUser and runAsGroup: 1001 unless the image sets a numeric non-root USERA named USER (USER node) with runAsNonRoot fails with CreateContainerConfigError; set runAsUser or tell the user to make USER numeric. Keep UIDs below 65536.
hostUsersfalseContainer root maps to an unused host UID. GA in 1.36, on by default since 1.33. A pod with hostNetwork, hostPID, or hostIPC keeps the host user namespace: leave hostUsers out and say why. Name the node requirements in the hand-back.
automountServiceAccountTokenfalseMost apps never call the API. An app that does (operator, controller, CI runner) gets true, its own serviceAccountName, and minimal RBAC.
enableServiceLinksfalseService env vars clash with the app's own. Tell the user to search the app for _SERVICE_HOST, _SERVICE_PORT, and _PORT_ and use DNS names.
terminationGracePeriodSeconds600The 30s default cuts long polls, uploads, and queue drains. It is a maximum: an app that exits early does not wait.
appArmorProfileunset, as the commented block in pod.yamlSetting it stops pods on SELinux nodes. Uncomment it only when every node runs AppArmor; Unconfined is a finding.

The node requirements, the token alternatives, and the full reasons are in why.md: read it when the user asks why, or when an exception in the table applies.

Teaching comments

A manifest you write keeps the pod.yaml style: one short inline # comment on each floor field that says why it is there. The comments are how the user's team learns the floor, so they stay in the output.

Review

When the user asks you to review, audit, or check a manifest for production, run scripts/floor-check.py on it (or on helm template / kustomize build output piped to -) and write the report under these three ## headings, in this order:

  • ## Meets the floor: the floor fields already set.
  • ## Missing or wrong: one entry per finding with the field, its location, the fixed YAML, and one sentence on why. Cite the script's rule id. Add what the script cannot see: a probe that checks a dependency, numbers that look copied from pod.yaml.
  • ## Suggested: readOnlyRootFilesystem: true, capabilities.drop: [ALL], a startupProbe for a slow boot, a PodDisruptionBudget, a NetworkPolicy. One line each.

Change the manifest only when the user asks for fixes, because a review is a report.

Hand-back

End every create or edit task with these three ## sections, in this order:

  • ## Defaults applied: a | Default | Why here | table, one row per floor field you set.
  • ## Questions: the decisions from working style step 3 that are still open, numbered. Write none when there are none.
  • ## Placeholders: every # TODO: value with its field. Write none when there are none.

Validate

Run scripts/floor-check.py <file>... on every manifest you wrote or edited. It prints one line per finding with a rule id and ends with floor-check: clean or the finding count. Fix each finding, or keep it and say why in the hand-back (a CPU limit for Guaranteed QoS, a token for an operator). When kubeconform is installed, also run kubeconform -strict -summary <file> for schema errors. A tool that is absent: say so by name and offer the brew install command.

For fields newer than your training data, the k8s-catch-up skill has one file per feature.

Done when

  • floor-check.py is clean on every manifest you wrote or edited, or each remaining rule id is named in the hand-back with its reason
  • Every floor field in the output has its teaching comment
  • A review has the three headings and changes no file the user did not ask to change
  • A create or edit ends with ## Defaults applied, ## Questions, and ## Placeholders

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ K8s Podspec Pro?

Writes and reviews Kubernetes pod specs against Bret Fisher's production floor (github.com/BretFisher/podspec) for security context, user namespaces, service account tokens, probes, resources, and graceful shutdown. Use it when the user creates or edits a Deployment, StatefulSet, DaemonSet, Job, CronJob, or Pod, changes a Helm chart or Kustomize base that renders one, asks to review or harden a workload for production, or asks why a pod spec setting matters, even if they only say "deploy this to Kubernetes".

Навіщо використовувати K8s Podspec Pro у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. K8s Podspec Pro — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити K8s Podspec Pro у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/BretFisher/skills/tree/main/plugins/devops/skills/k8s-podspec-pro. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати K8s Podspec Pro?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати K8s Podspec Pro?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею K8s Podspec Pro — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ K8s Podspec Pro?

Так. Навичку опубліковано на GitHub: BretFisher, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇