/orca-skills:orca-k8s-connector-troubleshootfrom Orca Skills
Diagnoses Kubernetes Connector (orca-tunnel Helm chart) install and connectivity failures from error text, helm status, kubectl describe, or pod logs, with step-by-step remediation.
Ships in Orca Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Answers: "Why isn't my Kubernetes Connector installing or connecting, and how do I fix it myself before opening a support ticket?"
The Kubernetes Connector (aka K8s Tunnel Client, Helm chart orca-tunnel, image k8s-tunnel-client) runs entirely on the customer's own cluster. It opens a read-only outbound tunnel (built on frp) back to Orca so private and self-managed clusters can be scanned without exposing the cluster's API server to Orca. Because it runs on customer infrastructure, failures are invisible to Orca until the customer reports them. Most of what's covered here can be self-diagnosed from helm status, kubectl describe, and pod logs alone — that's the point of this skill.
Quick glossary (so the categories below don't have to re-explain these every time):
| Term | Means |
|---|---|
frp | The open-source reverse-proxy library the tunnel is built on. TCP only — if a firewall log shows UDP traffic, that's unrelated noise, not the tunnel. |
| Tunnel target | Orca's server-side record of a specific cluster's tunnel. Can go stale (survive after the customer uninstalls the chart) and is only cleanable by Orca support/on-call. |
tunnelId / tunnelToken | The credential pair from Orca's cluster-onboarding screen. Unique per cluster — never reuse one from a different cluster. |
cloudVendorId | The cloud-vendor-specific cluster identifier (format varies by vendor — see the Connecting Clusters doc). The single most common typo source in install commands. |
| SCC | OpenShift's Security Context Constraint — its equivalent of a PodSecurityPolicy. |
/orca-k8s-connector-troubleshoot <paste error, helm status, kubectl describe, or pod logs output>
Or natural language:
First, confirm the Connector is actually needed. The single most common avoidable support case is a customer running the K8s Connector on a cluster that's already publicly reachable — it doesn't need a tunnel at all, and fighting connectivity errors on it is wasted effort. Ask: is this cluster reachable directly (public endpoint), or private/self-managed? If it's public, the fix is to remove the Connector and let the Native connection method handle it instead (see the note in Category 11 below for the correct removal order).
Once you know the Connector is actually the right approach, settle install-time vs. runtime with one command if the customer hasn't already supplied it:
kubectl get pods -n <namespace>
helm status <release> -n <namespace>
helm install/helm upgrade itself failed, or the pod has never reached a stable Running state (CrashLoopBackOff, ImagePullBackOff, Pending, or an error creating the chart's cluster-scoped resources).Running at some point, but the tunnel drops, never establishes, or the cluster looks "connected" in Orca yet nothing scans.If this isn't clear from what the customer gave you, ask before guessing (Step 3).
Scan for the phrase closest to what the customer reported, then jump to that category for the full fix.
| Symptom | Category |
|---|---|
dial tcp ... i/o timeout / TLS handshake timeout in logs | 1. Can't reach the tunnel endpoint |
helm install fails on RBAC objects, or forbidden/Unauthorized listing cluster resources | 2. RBAC / permission errors |
Pod stuck ImagePullBackOff / ErrImagePull | 3. Image pull failures |
Pod crash-loops right after install, or cloud_account not found at login | 4. Bad --set parameters |
| Install succeeds but pod fails on startup with an API compatibility error | 5. Kubernetes version too old |
| Two Orca cluster entries for one physical cluster (self-managed + EKS/AKS/GKE) | 6. Duplicate cluster entries |
Pod OOMKilled, or Pending with insufficient CPU/memory events | 7. Resource constraints |
helm install says a secret doesn't exist, but kubectl get secret shows it does | 8. Custom namespace issues |
Pod Running, but Unauthorized/401 when reading the cluster API | 9. Service-account token expired (K8s 1.30+) |
Pod Running, tunnel up, but context deadline exceeded listing resources | 10. NetworkPolicy blocks API-server egress |
Tunnel connects then drops on auth/token rejection, or K8s Tunnel client is unreachable after re-onboarding | 11. Tunnel drops / stale tunnel target |
Works with no proxy, breaks once proxyURL is set | 12. Proxy misconfiguration |
no such host resolving tunnelAddr | 13. DNS resolution failures |
| Pod fails to schedule/start, only on OpenShift | 14. OpenShift SCC issues |
| Tunnel healthy, cluster shows "connected", but no scan data ever appears | 15. Connected but no scan data |
| Cluster disconnects randomly, logs show nothing — and it's public, or it's AKS | Known Platform Limitations |
Each category below follows the same shape: what it looks like, the one-line fix, why it happens, and the exact steps.
dial tcp ... i/o timeout or TLS handshake timeout from frpc; the connector retries with backoff (starts at 15s, doubles up to a 60s cap) but never gets past the first connection attempt.tunnelAddr.frp is TCP-only, so that's unrelated noise, not this issue.)tunnelAddr is copied exactly from the Orca install command (don't reuse one from a different cluster/region).curl built in — test from a throwaway debug pod instead: kubectl run tmp-curl --rm -it --image=curlimages/curl -n <namespace> -- curl -v https://<tunnelAddr>:443.tunnelAddr FQDN specifically (see Connecting Clusters doc).helm install fails outright (often on the ClusterRole/ClusterRoleBinding/ServiceAccount objects), or the chart installs but pod logs show forbidden/Unauthorized when listing cluster resources.ClusterRole's rules.helm install lacks rights to create cluster-scoped RBAC objects, or the deployed ClusterRole (orca-k8s-collector-role by default) is missing a resource/apiGroup the connector needs.forbidden errors: kubectl auth can-i --list --as=system:serviceaccount:<namespace>:orca-k8s-collector and diff against the chart's clusterRole.rules.ClusterRole can be safely narrowed via a values override if company policy requires it (e.g. dropping secrets access) — core scanning still works without secrets get/list, though some findings that depend on secret metadata will be reduced. A working no-secrets override, confirmed against a real customer case:
# orca-values-no-secrets.yaml
clusterRole:
name: "orca-k8s-collector-role"
rules:
- apiGroups: [""]
resources: ["configmaps", "endpoints", "namespaces", "pods", "pods/log",
"serviceaccounts", "nodes", "services", "persistentvolumes",
"persistentvolumeclaims"] # "secrets" removed
verbs: ["get", "list"]
- apiGroups: ["apps"]
resources: ["daemonsets", "deployments", "replicasets", "statefulsets"]
verbs: ["get", "list"]
- apiGroups: ["networking.istio.io"]
resources: ["gateways", "sidecars", "virtualservices"]
verbs: ["get", "list"]
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["clusterroles", "clusterrolebindings", "roles", "rolebindings"]
verbs: ["get", "list"]
- apiGroups: ["networking.k8s.io"]
resources: ["networkpolicies", "ingresses"]
verbs: ["get", "list"]
- apiGroups: ["extensions"]
resources: ["ingresses"]
verbs: ["get", "list"]
- apiGroups: ["policy"]
resources: ["podsecuritypolicies"]
verbs: ["get", "list"]
- apiGroups: ["argoproj.io"]
resources: ["rollouts", "experiments"]
verbs: ["get", "list"]
- apiGroups: ["batch"]
resources: ["jobs", "cronjobs"]
verbs: ["get", "list"]
Apply with helm install/upgrade -f orca-values-no-secrets.yaml.ImagePullBackOff / ErrImagePull.image.pullSecrets.public.ecr.aws or ghcr.io, whichever the install command references) is blocked, or image.pullSecrets is missing/wrong for a private mirror.kubectl describe pod <pod> to see the exact image/registry being pulled.image.repository/image.pullSecrets if mirroring internally.--set parametershelm install succeeds but the pod crash-loops immediately, or logs show a rejection at the frpc login step, e.g.:
[E] [client/service.go:363] cloud_account not found
[W] [client/service.go:381] connect to server error: cloud_account not found
login to the server failed: cloud_account not found. With loginFailExit enabled, no additional retries will be attempted
tunnelAddr, tunnelId, tunnelToken, clusterName, region, clusterType, cloudVendorId is missing, blank, or wrong — most commonly cloudVendorId pasted as the wrong identifier for the cloud vendor (e.g. a full OCI tenancy OCID instead of just its trailing unique-ID segment, or a cloud-account ID substituted for the real cloud-provider ID) or a tunnelToken/tunnelId copied from a different cluster's install command.clusterType is one of eks/aks/gke/k8s. It auto-detects for EKS/AKS/GKE if omitted, but self-managed clusters must set it explicitly (clusterType=k8s) — this is a common gap in Terraform-based installs.cloudVendorId matches the format Orca expects for that vendor (see the Connecting Clusters doc's self-managed cluster section for the exact identifier format per vendor).existingSecret over inline --set tunnelId=... --set tunnelToken=... where possible — it keeps credentials out of shell history/CI logs and out of helm get values output:
apiVersion: v1
kind: Secret
metadata:
name: existing-secret
namespace: orca-security # must match the release's namespace
stringData:
tunnelId: <tunnelIdValue>
tunnelToken: <tunnelTokenValue>
then --set existingSecret=existing-secret.kubectl version; this needs a cluster upgrade — not something the skill can work around.automation=true, or duplicate/conflicting cluster entriesautomation=true exists for clusters created by automation that Orca hasn't auto-discovered yet. Setting it (or otherwise onboarding as self-managed) on a cluster that's already visible to Orca through its cloud account — or that a later cloud-account scan auto-discovers — creates a second, duplicate entry. Self-managed rows don't automatically get cleaned up when auto-discovery later finds the same cluster.automation=true, confirm the cluster isn't already discoverable under the customer's connected cloud account.cluster_id and cloud_account_id.cluster_id/cloud_account_id pair with the user so the correct row is removed. Then call DELETE /api/cloudaccount/{cloud_account_id}/k8s_cluster/{cluster_id} (see delete-specific-k8-cluster). Any role with kubernetes.write permission (e.g. org admin) can call this — it soft-deletes the self-managed row and it disappears from Cluster Management immediately.OOMKilled, or stuck Pending with insufficient-CPU/memory scheduling events.resources in the install command.resources.requests/resources.limits.kubectl describe pod for the exact values in effect — don't assume defaults from memory, they change between chart versions. helm get values <release> shows what's actually applied.helm install fails saying a referenced secret doesn't exist, even though kubectl get secret shows it exists somewhere in the cluster.--namespace <ns> and --create-namespace (if new); an existingSecret (with tunnelId/tunnelToken keys) must live in that same namespace as the release — a secret created in default isn't visible to a release installed into e.g. orca-security.--namespace/--create-namespace flags match where the secret was created; kubectl get secret <name> -n <namespace> to check directly.Running, tunnel connects fine, but calls to the cluster's own API fail with Unauthorized/401, e.g.:
{"kind":"Status","apiVersion":"v1","status":"Failure","message":"Unauthorized","reason":"Unauthorized","code":401}
kubectl version) and the Connector's chart/app version (helm list -n <namespace>, or the image tag via kubectl describe pod).kubectl logs -n <namespace> $(kubectl get pods -n <namespace> --no-headers -o custom-columns=":metadata.name" | grep tunnel)) and escalate (Step 4) — this is a narrower case that needs engineering eyes.context deadline exceededRunning, tunnel up, but logs show context deadline exceeded when the connector tries to reach the in-cluster API server to list resources.forbidden/Unauthorized response rather than a timeout, that's an RBAC issue — see Category 2 instead.)kubernetes Service in default, port 443); temporarily loosening the policy to confirm this is the cause, then scoping it correctly, is the fastest way to verify."status": ["K8s Tunnel client is unreachable"]
referencing a tunnel_target_id that should no longer exist.tunnelId/tunnelToken weren't reused from another cluster. If this is a stale entry left over after a delete/re-onboard, escalate — it needs an Orca-side cleanup, but it's a quick one for support to resolve.tunnelToken reused from a different cluster's install, or — if this is a reconnect after a previous tunnel was supposedly deleted — a stale tunnel target left over on Orca's side.tunnelId/tunnelToken pair is unmodified from the original install command.helm uninstall is destructive — confirm the exact release name and namespace with the user before running it: helm uninstall <release> -n <namespace> first, then ask Orca to clean up the tunnel target — doing it in the other order just recreates the tunnel entry.tunnel_target_id (or cluster/tunnel IDs from the error) so support can clear it.proxyURL is set; or the environment requires a proxy but none is configured.proxyURL scheme/credentials, and rule out TLS interception if it still fails.proxyURL follows FRP's URL format — scheme, optional embedded credentials, host, and port — with http, socks5, and ntlm schemes all supported. A wrong scheme, bad credentials, or a proxy allowlist that doesn't include the tunnel endpoint will break the connection.proxyURL scheme and credentials. Supported schemes are http, socks5, and ntlm, each optionally with credentials placed immediately before the host — e.g. a socks5 proxy with authentication looks like socks5://[credentials]@proxy.company.com:1080, and one with no authentication drops the [credentials]@ segment entirely.frpc connection error.proxyURL is set correctly and the proxy allows the connection but the tunnel still fails on TLS, ask whether it's a transparent/TLS-inspecting proxy — this class of proxy replaces the certificate chain in transit, and the connector will reject the swapped cert since it expects Orca's own certificate. The fix here is a proxy-side exclusion for the tunnel FQDN from TLS inspection, not a Connector-side change.no such host or similar DNS failures resolving tunnelAddr.tunnelAddr directly (e.g. nslookup/getent hosts); if it fails, check the cluster's DNS config / custom upstream resolvers can reach public DNS or have an internal record for the Orca FQDN.--set openshift=true at install time, and confirm the target SCC exists.openshift: true must be set at install time. When set, the chart adds an openshift.io/scc annotation on the Deployment and a ClusterRole rule granting use on the named SCC (security.openshift.io apiGroup, default name nonroot-v2, or the openshiftSCC override) to the connector's ServiceAccount via the existing ClusterRoleBinding — this is the correct, automatic way OpenShift grants an SCC via RBAC, so no manual oc adm policy step should be needed. The two most common failure modes instead: (1) openshift: true was never set, so the pod falls under the cluster's default restricted-type SCC, which typically rejects the chart's pinned runAsUser/fsGroup (1001); or (2) openshiftSCC points at a name that doesn't exist in the target cluster — the RBAC rule applies without error, but pod admission then fails because no matching SCC can be found.openshift: true was actually set on install (helm get values <release>); confirm the named SCC (openshiftSCC, default nonroot-v2) exists in the cluster (oc get scc <name>) and is compatible with the chart's pod/container security context (non-root, all capabilities dropped, read-only root filesystem); if it doesn't exist, either create it or point openshiftSCC at an existing compatible SCC.Don't guess a category from a vague report. Ask:
kubectl logs <pod> -n <namespace>) and kubectl describe pod <pod> -n <namespace>?"helm install/helm upgrade complete successfully, or did the command itself fail?"If the category can't be resolved from the customer's side — including any of the known platform limitations above — produce a clean handoff summary rather than leaving the customer stuck:
=====================================================================
K8S CONNECTOR — SUPPORT HANDOFF
=====================================================================
CLUSTER TYPE <eks | aks | gke | k8s / self-managed>
CONNECTOR VERSION <from pod logs / image tag>
K8S VERSION <from kubectl version>
INSTALL OR RUNTIME <install-time | post-install>
CATEGORY <matched category, or "unmatched">
WHAT WAS TRIED <steps already attempted>
RELEVANT IDS <tunnelId / tunnel_target_id / cluster name, if known>
LOGS ATTACHED <yes/no — attach kubectl logs + describe output>
=====================================================================
=====================================================================
K8S CONNECTOR TRIAGE
=====================================================================
STAGE: <install-time | runtime>
CATEGORY: <matched category name>
CONFIDENCE: <high | medium — ask clarifying question if medium/low>
QUICK FIX: <one plain-language sentence — the action to take, before any detail>
ROOT CAUSE:
<one-line explanation>
REMEDIATION:
1. <step>
2. <step>
...
REFERENCE: <relevant doc section>
=====================================================================
If nothing matches confidently, skip straight to Step 3's clarifying questions instead of forcing a category.
Recognize these so the skill doesn't send a customer in circles trying to self-fix something that needs an Orca-side change, or chase a known bug as if it were their own misconfiguration:
Duplicate self-managed/auto-discovered cluster entries (Category 6) are no longer in this list — they're now self-service via the delete API in that category.
proxyURL) and OpenShift (openshift, openshiftSCC) install parameters are covered inline in Categories 12 and 14 above — there is no additional dedicated public doc page beyond the Connecting Clusters guide linked above.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
22 skills in this plugin
/orca-account-healthCloud account coverage and sync-health audit — lists every connected cloud account, sync status, scanner deployment, integration health, and flags blind spots before any audit, investigation, or security review. Use when user asks about coverage, account health, sync status, scanner deployment, "are we monitoring X", or "do we have full coverage" (e.g., "account health", "are all accounts connected", "is everything synced", "coverage audit")./orca-admin-access-groupingAdmin access grouping - fetches Orca's pre-computed admin clustering (IAM Policy Optimizer) for AWS, Azure, and GCP, groups every admin identity into a small number of shared least-privilege policies that replace blanket AdministratorAccess / Owner, and drives the swap through a staged, confirmation-gated apply. Use when the user wants to group or tier their admins, cut down how many people hold full admin, replace AdministratorAccess with role-based policies, or see how few policies their admin population actually needs. Scoped to grouping the admin population org-wide into shared policies - it takes no account, business unit, or tag as scope. Right-sizing individual identities within an account, business unit, or tag belongs to orca-overprivileged-identities-rightsizing; a single named identity's permission review belongs to orca-identity-review.npx claudepluginhub orcasecurity/orca-skills --plugin orca-skillsOther plugins' skills for the same job