Логотип K8s Cert Manager Troubleshooting

K8s Cert Manager Troubleshooting

Організація
k8s-servant
k8s-cert-manager-troubleshooting

Використовуйте, коли cert-manager не видає сертифікат у Kubernetes або не поновлює його: Certificate постійно має статус READY False; CertificateRequest перебуває у стані Pending, Denied або Failed; Issuer чи ClusterIssuer не має статусу Ready ("Error getting keypair for CA issuer"); "Referenced \"Issuer\" not found"; ACME Orders або Challenges зависли в очікуванні (HTTP-01, DNS-01, обмеження частоти запитів); термін дії сертифіката завершився або його не було поновлено; або під час застосування ресурсів з’являється "failed calling webhook \"webhook.cert-manager.io\"". Агент проводить діагностику за допомогою kubectl get, describe, events і журналів та пропонує виправлення. Спочатку лише аналізує, а перед будь-якими змінами запитує дозвіл.

Огляд

Видавецьk8s-servant
Репозиторійk8s-skills
Назва навичкиk8s-cert-manager-troubleshooting
Зірки
36
Форки
7
Файли в пакеті
4
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

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

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

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

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

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

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

    Видавець на GitHub: k8s-servant. Перед установленням перегляньте вихідні файли навички.

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

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

1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

cert-manager troubleshooting

Find out why cert-manager does not issue or renew a certificate, and propose a fix. Read first, ask before changing. Run the investigation commands freely. Run a command under an "Ask first" line only after the user approves that exact command; if your credentials do not allow it, give it to the user to run. Never run a "Proposed fix"; hand it to the user.

cert-manager works in a chain. A Certificate says what is wanted. cert-manager creates a CertificateRequest for each issuance, which an Issuer (one namespace) or ClusterIssuer (whole cluster) signs. For ACME issuers (Let's Encrypt and others) the request also gets an Order with one Challenge per domain. Follow the chain from the Certificate and stop at the first object that is not Ready.

The commands use placeholders: my-namespace, my-app-tls (the Certificate), my-issuer and my-cluster-issuer. Replace them with the real names. The cert-manager namespace and Deployment names are those of the default install; a Helm install may use other names (find them with the first command of step 5).

Never read Secrets: not the certificate's Secret, not the key pair of a CA issuer, not an ACME account key, not DNS provider credentials. The status of the cert-manager resources says whether a Secret is missing or wrong. For the same reason do not use cmctl status certificate or cmctl inspect secret: both read the certificate's Secret.

When to use

  • A Certificate shows READY False, or an Ingress or Gateway still serves an old or self-signed certificate.
  • A CertificateRequest is Pending, Denied or Failed; an Order or Challenge stays pending.
  • An Issuer or ClusterIssuer is not Ready.
  • A certificate expired or did not renew.
  • Creating or changing any cert-manager resource fails with failed calling webhook "webhook.cert-manager.io".

Hand-offs, by skill name. When the evidence points elsewhere, continue with that skill; if it is not installed, keep going with the steps here and tell the user which skill would help:

  • The cert-manager pods themselves crash or stay Pending: k8s-workload-troubleshooting.
  • An HTTP-01 challenge cannot be reached through the Ingress, Gateway or Service, or a NetworkPolicy blocks it: k8s-network-troubleshooting.

Investigate

Work through the steps in order. Stop when you have the cause and its evidence.

1. See the Certificate: Ready, the issuer it points at, and its conditions and events. Issuing True means an issuance is in progress.

bash
kubectl get certificate -n my-namespace
kubectl describe certificate my-app-tls -n my-namespace
kubectl get certificate my-app-tls -n my-namespace -o jsonpath='{.spec.issuerRef}{"\n"}{.status.conditions}{"\n"}'

2. See its CertificateRequests. The newest one says why issuance waits or failed: the Ready condition's reason and message, and Approved or Denied.

bash
kubectl get certificaterequest -n my-namespace
kubectl describe certificaterequest -n my-namespace
kubectl events -n my-namespace

3. See the issuer the request names. An Issuer lives in the Certificate's namespace; a ClusterIssuer has no namespace. The built-in view role cannot read ClusterIssuers; if the command is forbidden, say so, and read the issuer's state from the CertificateRequest message ("Referenced issuer does not have a Ready status condition" means it exists and is not Ready).

bash
kubectl get issuer -n my-namespace
kubectl describe issuer my-issuer -n my-namespace
kubectl get clusterissuer
kubectl describe clusterissuer my-cluster-issuer

4. For an ACME issuer, see the Order and the Challenges. A Challenge's State and Reason say what the ACME server or cert-manager's own self-check saw.

bash
kubectl get orders -n my-namespace
kubectl describe order -n my-namespace
kubectl get challenges -n my-namespace
kubectl describe challenge -n my-namespace

5. If nothing progresses, or creating a resource fails, check cert-manager itself: its three Deployments, the webhook's endpoints and the controller's logs.

bash
kubectl get deployments -A -l app.kubernetes.io/instance=cert-manager
kubectl get pods -n cert-manager -o wide
kubectl get endpointslices -n cert-manager -l kubernetes.io/service-name=cert-manager-webhook
kubectl logs -n cert-manager deployment/cert-manager --tail=100 | grep my-app-tls
kubectl logs -n cert-manager deployment/cert-manager-webhook --tail=50

6. Open the matching reference and follow its steps:

What you seeReference
IssuerNotFound, IssuerNotReady, ErrGetKeyPair, Denied, Failed, a request that never comesreferences/issuers-and-requests.md
Order or Challenge pending, invalid or errored, HTTP-01 or DNS-01 self-check errors, rate limitsreferences/acme.md
failed calling webhook "webhook.cert-manager.io", x509 errors from the webhook, cainjectorreferences/webhook.md
Expired or not renewed, Renewing, a Certificate that reissues again and againreferences/renewal.md

Read the results

What the common findings mean (cert-manager 1.21):

  • Issuing certificate as Secret does not exist on a new Certificate is the normal first step, not the cause. Look one step down the chain: the CertificateRequest.
  • Referenced "Issuer" not found: issuer.cert-manager.io "<name>" not found (reason Pending, event IssuerNotFound): no Issuer of that name in the Certificate's namespace. issuerRef.kind defaults to Issuer, so a Certificate meant for a ClusterIssuer that leaves out kind: ClusterIssuer gets this message. Compare spec.issuerRef with the issuers that exist.
  • Referenced issuer does not have a Ready status condition (event IssuerNotReady): the issuer exists but is not Ready. Its own condition says why.
  • A CA Issuer with Error getting keypair for CA issuer: secrets "<name>" not found (reason ErrGetKeyPair): the Secret named in spec.ca.secretName does not exist in the issuer's namespace (for a ClusterIssuer, in the cluster resource namespace, by default cert-manager). Confirm with the user rather than reading Secrets.
  • Denied: an approval policy (for example approver-policy) refused the request; cert-manager's own approver only approves. Fix the policy or the request.
  • A failed request is retried with a backoff that starts at one hour, so a fixed cause can look unfixed for a while. Issuing False with "has failed to complete and will be retried" says so.
  • failed calling webhook "webhook.cert-manager.io" on create or update: the API server cannot reach cert-manager's webhook. Nothing in that namespace is wrong yet; see references/webhook.md.

State the cause in one sentence, then the evidence you saw (the condition reason and message, the issuerRef, the issuer's state), then the proposed fix.

Proposed fix

Show each fix to the user before running it: what it changes and how to undo it. Patching a Certificate's issuerRef and scaling a cert-manager Deployment are reversible, so they go under "Ask first" and run only after the user says yes. Creating or changing Secrets, issuers and webhook configurations, and deleting resources, are never run by you: hand them to the user as proposed fixes and say why. Prefer fixing the source the resources are deployed from (manifest, Helm values, GitOps repository): the next sync would undo a patch. Write each undo with the values you found.

Point a Certificate at the ClusterIssuer it was meant to use:

Ask first: the agent runs this only after the user approves it.

bash
kubectl patch certificate my-app-tls -n my-namespace --type=merge -p '{"spec": {"issuerRef": {"kind": "ClusterIssuer"}}}'
# Undo: kubectl patch certificate my-app-tls -n my-namespace --type=json -p '[{"op": "remove", "path": "/spec/issuerRef/kind"}]'

cert-manager replaces the waiting CertificateRequest with a new one right after the change.

Bring back a webhook that was scaled to zero (write the undo with the replicas you found):

Ask first: the agent runs this only after the user approves it.

bash
kubectl scale deployment/cert-manager-webhook -n cert-manager --replicas=1
# Undo: kubectl scale deployment/cert-manager-webhook -n cert-manager --replicas=0

A CA Issuer whose key pair is missing needs that Secret created from the CA's certificate and key, in the issuer's namespace, under the name in spec.ca.secretName. Only the user has the CA files, and you never handle Secrets, so the user creates it with their usual tooling; or, if the issuer names the wrong Secret, the user fixes spec.ca.secretName in the source. cert-manager retries the issuer by itself once the Secret exists.

Sources

Checked against the cert-manager 1.21 documentation and source (v1.21.3):

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

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

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

Що робить навичка ШІ K8s Cert Manager Troubleshooting?

Використовуйте, коли cert-manager не видає сертифікат у Kubernetes або не поновлює його: Certificate постійно має статус READY False; CertificateRequest перебуває у стані Pending, Denied або Failed; Issuer чи ClusterIssuer не має статусу Ready ("Error getting keypair for CA issuer"); "Referenced \"Issuer\" not found"; ACME Orders або Challenges зависли в очікуванні (HTTP-01, DNS-01, обмеження частоти запитів); термін дії сертифіката завершився або його не було поновлено; або під час застосування ресурсів з’являється "failed calling webhook \"webhook.cert-manager.io\"". Агент проводить діагн...

Навіщо використовувати K8s Cert Manager Troubleshooting у TypingMind?

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

Як встановити K8s Cert Manager Troubleshooting у TypingMind?

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

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

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

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

Зі скількома забажаєте. У TypingMind ви можете використовувати K8s Cert Manager Troubleshooting із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ K8s Cert Manager Troubleshooting?

Так. На GitHub цю навичку публікує k8s-servant за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

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

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

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

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

Усі

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

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