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.
- Host: GitHub
- URL: https://github.com/nicoloboschi/local-kubernetes-runner
- Owner: nicoloboschi
- License: mit
- Created: 2023-04-05T08:12:38.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-04T16:10:51.000Z (about 2 years ago)
- Last Synced: 2024-12-25T16:40:27.747Z (over 1 year ago)
- Topics: k3s, k8s, kubernetes, kubernetes-cluster, testing
- Language: Shell
- Homepage:
- Size: 38.1 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
```