Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.37 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.37 KB

Local Kubernetes Runner

LKR, Local Kubernetes Runner.

Supported engines:

  • k3s

Requirements

  • Docker
  • kubectl

Get started

curl -Ls "https://raw.githubusercontent.com/nicoloboschi/local-kubernetes-runner/main/get-lkr.sh" | bash

Cluster lifecycle

To start the cluster:

lkr start
# lkr logs
# lkr stop

By default the kubectl context is updated to the lkr cluster, so you can run your favourite tools targeting the new cluster.

To load images to the cluster from the host:

lkr load <myimage>

References

𝖫𝖪𝖱 - 𝖫𝖮𝖢𝖠𝖫 𝖪𝖴𝖡𝖤𝖱𝖭𝖤𝖳𝖤𝖲 𝖱𝖴𝖭𝖭𝖤𝖱
Run Local Kubernetes cluster.

	Find more information at https://github.com/nicoloboschi/lkr

Commands:
	start	Start the cluster and set as current context in your kubectl configuration.
	stop	Stop the cluster.
	restart	Stop and restart the cluster and set as current context in your kubectl configuration.
	status	Check if the cluster is running or not.
	logs	Show cluster logs.
	set	Configure the cluster in your kubectl configuration.
	use	Configure the cluster in your kubectl configuration as current context.
	load	Load a local docker image into the cluster's node.
	list	List all docker images available into the cluster's node.

Shortcuts:
	9	Starts k9s for the cluster.
	k	Kubectl command referred to the local cluster.