Skip to content

nicoloboschi/local-kubernetes-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

CLI for spins up a K8s cluster locally in 10 seconds.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages