mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-04-21 17:47:22 +00:00
* chore(deps-dev): switch to prettier 3.6.2 Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2.3 KiB
2.3 KiB
| sidebar_position | title | description | tags | keywords | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3 | Lima instance for Kubernetes | Podman Desktop can assist you to create a custom Lima instance on Linux and macOS. |
|
|
Creating a Lima instance for Kubernetes workloads with Podman Desktop
To use the Lima provider you need a Lima instance running a Linux machine.
In the future, Podman Desktop might be able to create Lima instances.
Consider creating a custom Lima instance to:
- Control the assigned resources: CPUs, memory, and disk size.
- Control which Kubernetes distribution (
template) to install.
Prerequisites
Procedure
-
In a terminal, create the Lima instance.
-
To create a single-node Kubernetes cluster running k3s:
$ limactl start template://k3s -
To create a single-node Kubernetes cluster running k8s:
$ limactl start template://k8s -
To select the number of CPUs, the memory, and the disk size, add the options to the
limactl startcommand:--cpus=4 --memory=4 --disk=100
-
-
Wait for the instance to start, and restart the Lima extension.
Verification
-
When the installation is done, the location of the KUBECONFIG file is printed. See Configuring access to a Kubernetes cluster.
- Go to Settings > Preferences > Kubernetes to set the path of the file.
-
Use the
kubectl.limawrapper script to connect to the cluster:$ kubectl.lima version

