Skip to content

security

Developing and Testing K3s Apps Locally

When building Kubernetes-aware tools — whether a CLI, dashboard, or internal Python service — you often need your local environment to talk directly to the cluster API.
But exposing the K3s server’s port 6443 to the internet is never a good idea.

Here’s how to make your local machine behave like it’s inside the cluster, safely, using an SSH tunnel.

Remote accessing via the secret tunnel securely.