Kubernetes
Connect
Connect Kubernetes from the terminal. Pass --help for the flags Kubernetes accepts, plus --no-browser for headless environments.
polylane cloud connect --provider kubernetesRead-only ServiceAccount credentials, via kubeconfig or manual entry.
Kubernetes connects with read-only ServiceAccount credentials. Polylane only makes read-only Kubernetes API calls. Your credentials are encrypted before they are stored, and the agent never sees the token.
You can connect in two ways.
Option 1: Kubeconfig
Paste a kubeconfig YAML. Polylane reads the API server URL, CA certificate, and token from the current context. The token must be a ServiceAccount bearer token (not a client certificate or exec plugin).
Option 2: Manual
- Create a read-only ServiceAccount with a ClusterRole granting get, list, and watch.
- Generate a token:
kubectl create token <serviceaccount>. - Enter the API server URL and the ServiceAccount token.
- Optionally provide a CA certificate, cluster name, and a namespace to restrict discovery and monitoring to. Leave the namespace blank to include all namespaces.
Polylane validates the credentials and starts syncing your workloads, services, and other cluster resources.
Disconnecting
Disconnect the cluster in Polylane, then delete the ServiceAccount (or its token) in your cluster.
Tools
1Operations agents can perform in threads and automations.
Supported resources
24Resource types that show up in your infrastructure graph.
Automation triggers
3Events from Kubernetes that can start an automation.
Automation templates
1Pre-built automations that use Kubernetes. Open one to see its trigger, instructions, and actions.