An open API service indexing awesome lists of open source software.

https://github.com/nicoloboschi/local-kubernetes-runner

CLI for spins up a K8s cluster locally in 10 seconds.
https://github.com/nicoloboschi/local-kubernetes-runner

k3s k8s kubernetes kubernetes-cluster testing

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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
```

## 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.
```