Logo K8s External Secrets Troubleshooting

K8s External Secrets Troubleshooting

Tổ chức
k8s-servant
k8s-external-secrets-troubleshooting

Dùng khi External Secrets Operator không tạo hoặc cập nhật Secret trên Kubernetes: ExternalSecret có lỗi SecretSyncedError ("could not get secret data from provider"), SecretOwnedByOther ("target is owned by another ExternalSecret"), SecretMissing hoặc SecretImmutable; SecretStore hoặc ClusterSecretStore chưa Ready (InvalidProviderConfig, "unable to validate store"); ClusterSecretStore không được phép dùng từ một namespace; ClusterExternalSecret có namespace bị lỗi; giá trị không được làm mới; hoặc manifest sử dụng API v1beta1 đã bị gỡ bỏ. Tìm nguyên nhân bằng kubectl get, describe, events và log của controller, tuyệt đối không đọc nội dung Secret, rồi đề xuất cách khắc phục. Đọc trước và hỏi bạn trước khi thay đổi bất cứ điều gì.

Tổng quan

Nhà phát hànhk8s-servant
Kho mãk8s-skills
Tên kỹ năngk8s-external-secrets-troubleshooting
Sao
36
Bản fork
7
Tệp đi kèm
3
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 3 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được k8s-servant công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI K8s External Secrets Troubleshooting trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-external-secrets-troubleshooting
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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-external-secrets-troubleshooting .claude/skills/k8s-external-secrets-troubleshooting
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật K8s External Secrets Troubleshooting trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp K8s External Secrets Troubleshooting ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng K8s External Secrets Troubleshooting với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

External Secrets troubleshooting

Find out why External Secrets Operator (ESO) does not create or update a Secret, 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.

An ExternalSecret says which keys to fetch from an external store and which Kubernetes Secret to write (spec.target). It uses a SecretStore (one namespace) or ClusterSecretStore (any allowed namespace) that holds the provider configuration (a cloud secret manager, Vault, and others). The ESO controller syncs on spec.refreshInterval and reports the result on the ExternalSecret's Ready condition.

Never read Secrets, here least of all: not the target Secret ESO writes, not the provider credentials a store references, not the webhook's certificate. You can tell whether a sync worked from the ExternalSecret's status and events. If the user wants to check a value, they look at it themselves.

The commands use placeholders: my-namespace, my-app-config (the ExternalSecret and its target Secret), my-app-store (the store) and external-secrets (the namespace ESO runs in; a Helm install usually uses external-secrets, the release manifest default). Replace them with the real names.

When to use

  • A Secret that an ExternalSecret should create is missing, or has old values.
  • kubectl get externalsecrets shows SecretSyncedError, SecretOwnedByOther, SecretMissing or SecretImmutable.
  • A SecretStore or ClusterSecretStore is not Ready.
  • A ClusterExternalSecret did not create its ExternalSecrets in some namespaces.

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 Secret exists and the app still fails (it does not read it, the pod is not restarted after a change, it crashes): k8s-workload-troubleshooting.
  • The ESO pods crash or stay Pending: k8s-workload-troubleshooting.

Investigate

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

1. List the ExternalSecrets with their store, status and last sync.

bash
kubectl get externalsecrets -n my-namespace
kubectl get clusterexternalsecrets

2. Read the ExternalSecret: its store reference, target, keys, and conditions and events.

bash
kubectl describe externalsecret my-app-config -n my-namespace
kubectl get externalsecret my-app-config -n my-namespace -o jsonpath='{.spec.secretStoreRef}{"\n"}{.spec.target}{"\n"}{.spec.data}{"\n"}{.spec.dataFrom}{"\n"}{.status.conditions}{"\n"}'
kubectl events -n my-namespace --for externalsecret/my-app-config

3. Read the store it points at.

bash
kubectl get secretstores -n my-namespace
kubectl get clustersecretstores
kubectl describe secretstore my-app-store -n my-namespace

4. Read the controller's logs. Since ESO 2.14 the ExternalSecret's status and events say only could not get secret data from provider for every store or provider problem; the actual cause is in the controller's log, under Reconciler error.

bash
kubectl get deployments -A -l app.kubernetes.io/name=external-secrets
kubectl logs -n external-secrets deployment/external-secrets --tail=200 | grep my-app-config

5. Open the matching reference and follow its steps:

What you seeReference
SecretSyncedError could not get secret data from provider: a missing key, a wrong store name, store not ready, namespace not allowedreferences/sync-errors.md
A store not Ready: InvalidProviderConfig, ProviderNotFound, ValidationUnknownreferences/stores.md
SecretOwnedByOther, SecretMissing, SecretImmutable, values that do not refresh, ClusterExternalSecrets, removed v1beta1references/target-and-refresh.md

Read the results

What the common findings mean (ESO 2.14):

  • Ready False, reason SecretSyncedError, could not get secret data from provider: the generic message. The controller log for that ExternalSecret has the real error, for example error processing spec.data[0] (key: <key>), err: Secret does not exist (the key is not in the store) or could not get SecretStore "<name>" (no store of that name in the namespace).
  • Reason SecretOwnedByOther, target is owned by another ExternalSecret: ... secret is owned by another ExternalSecret: <name>: two ExternalSecrets write the same target Secret. The first one owns it; the other cannot sync.
  • A store Ready False, InvalidProviderConfig (unable to create client or unable to validate store): ESO cannot reach or authenticate to the provider with the store's configuration. Credentials are in Secrets: the user checks them.
  • Ready True, secret synced, but the app sees an old value: ESO wrote the Secret; either the external value changed after the last refresh (spec.refreshInterval, refreshPolicy), or the app reads the Secret only at start.
  • A store event StoreUnmaintained (store isn't currently maintained): the provider is marked unmaintained in this ESO version; it may still work.

State the cause in one sentence, then the evidence you saw (the condition, the event, the log line, the spec field), then the proposed fix.

Proposed fix

Show each fix to the user before running it: what it changes and how to undo it. Patching an ExternalSecret's store reference or remote key, and asking ESO to sync now, are reversible, so they go under "Ask first" and run only after the user says yes. Creating or changing Secrets (provider credentials, the target), changing stores, and deleting ExternalSecrets or their target Secrets are never run by you: hand them to the user as proposed fixes. Prefer fixing the source the ExternalSecret is deployed from. Write each undo with the values you found.

Point an ExternalSecret at the store that exists (to test before fixing the source):

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

bash
kubectl patch externalsecret my-app-config -n my-namespace --type=merge -p '{"spec": {"secretStoreRef": {"name": "my-app-store"}}}'
# Undo: kubectl patch externalsecret my-app-config -n my-namespace --type=merge -p '{"spec": {"secretStoreRef": {"name": "my-store"}}}'

Ask ESO to sync now instead of waiting for the refresh interval (use the current time as the value; any new value triggers a sync):

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

bash
kubectl annotate externalsecret my-app-config -n my-namespace force-sync=2026-10-24T12:00:00Z --overwrite
# Undo: nothing to undo; the annotation only asks for one sync

Sources

Checked against the External Secrets Operator 2.14 documentation and source (v2.14.0):

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI K8s External Secrets Troubleshooting làm được gì?

Dùng khi External Secrets Operator không tạo hoặc cập nhật Secret trên Kubernetes: ExternalSecret có lỗi SecretSyncedError ("could not get secret data from provider"), SecretOwnedByOther ("target is owned by another ExternalSecret"), SecretMissing hoặc SecretImmutable; SecretStore hoặc ClusterSecretStore chưa Ready (InvalidProviderConfig, "unable to validate store"); ClusterSecretStore không được phép dùng từ một namespace; ClusterExternalSecret có namespace bị lỗi; giá trị không được làm mới; hoặc manifest sử dụng API v1beta1 đã bị gỡ bỏ. Tìm nguyên nhân bằng kubectl get, describe, events...

Vì sao nên dùng K8s External Secrets Troubleshooting trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. K8s External Secrets Troubleshooting là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài K8s External Secrets Troubleshooting trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-external-secrets-troubleshooting. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng K8s External Secrets Troubleshooting?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng K8s External Secrets Troubleshooting với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng K8s External Secrets Troubleshooting với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI K8s External Secrets Troubleshooting có miễn phí không?

Có. Kỹ năng này được k8s-servant phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇