https://github.com/cnrancher/autok3s
Run K3s Everywhere
https://github.com/cnrancher/autok3s
alibaba automation aws bootstrap-k3s google harvester k3d k3s k3s-cluster k8s kubernetes rancher tencent
Last synced: about 2 months ago
JSON representation
Run K3s Everywhere
- Host: GitHub
- URL: https://github.com/cnrancher/autok3s
- Owner: cnrancher
- License: apache-2.0
- Created: 2020-07-29T05:13:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-28T09:22:15.000Z (7 months ago)
- Last Synced: 2024-11-18T02:47:46.927Z (6 months ago)
- Topics: alibaba, automation, aws, bootstrap-k3s, google, harvester, k3d, k3s, k3s-cluster, k8s, kubernetes, rancher, tencent
- Language: Go
- Homepage: https://www.suse.com
- Size: 73.8 MB
- Stars: 789
- Watchers: 19
- Forks: 78
- Open Issues: 44
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## What is AutoK3s
English / [简体中文](docs/i18n/zh_cn/README.md)
[K3s](https://k3s.io/) is a Lightweight Kubernetes which is great for Edge, IoT, CI, Development, ARM and so on.
AutoK3s is a lightweight tool for simplifying the cluster management of K3s, it can help you **Run K3s Everywhere**.
- [Key Features](#key-features)
- [Providers](#providers)
- [Quick Start (tl;dr)](#quick-start-tldr)
- [Demo Video](#demo-video)
- [Developers' Guide](#developers-guide)
- [Source Code](#source-code)
- [License](#license)## Key Features
- Flexible installation options, like K3s cluster HA and datastore(embedded etcd, RDS, SQLite, etc.).
- Simplify operations by UI dashboard.
- [Airgap](docs/i18n/en_us/airgap/README.md) K3s package management and installation.
- [Add-on](docs/i18n/en_us/add-on/README.md) streamlines the management and deployment of plugins, seamlessly integrating applications into K3s clusters.## Providers
Now supports the following providers, we encourage submitting PR contribution for more providers:
- [aws](docs/i18n/en_us/aws/README.md) - Bootstrap K3s onto Amazon EC2
- [google](docs/i18n/en_us/google/README.md) - Bootstrap K3s onto Google Compute Engine
- [alibaba](docs/i18n/en_us/alibaba/README.md) - Bootstrap K3s onto Alibaba ECS
- [tencent](docs/i18n/en_us/tencent/README.md) - Bootstrap K3s onto Tencent CVM
- [k3d](docs/i18n/en_us/k3d/README.md) - Bootstrap K3d onto Local Machine
- [native](docs/i18n/en_us/native/README.md) - Bootstrap K3s onto any VM## Quick Start (tl;dr)
Scenario 1 - Run with docker:
```bash
# The commands will start autok3s daemon with an interactionable UI.
# Standard Linux (Recommended)
$ docker run -itd --restart=unless-stopped --net=host -v /var/run/docker.sock:/var/run/docker.sock cnrancher/autok3s:v0.9.3# MacOS
$ docker run -itd --restart=unless-stopped -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST="" cnrancher/autok3s:v0.9.3
```Scenario 2 - Run with docker-compose
```bash
# AutoK3s is available at: http://autok3s.vcap.me (vcap.me resolves to 127.0.0.1).
# The cli and container uses the same `AUTOK3S_CONFIG` directory.
docker-compose up -d
```Scenario 3 - Run with cli:
```bash
# The commands use the shell script on MacOS and Linux, or visit the Releases page to download the executable for Windows.
curl -sS https://rancher-mirror.rancher.cn/autok3s/install.sh | sh# The commands will start autok3s daemon and popup default browser with an interactionable UI.
autok3s -d serve
```## Uninstall
> For v0.5.0 or newer version
To uninstall autok3s cli, please execute command below:
```bash
/usr/local/bin/autok3s-uninstall.sh
```## Demo Video
In the demo, we install K3s by k3d provider in around 1 minute, and
we can manage K3s clusters by kube-explorer dashboard.Watch the demo:

## Use Cases
- [Quickly create K3s cluster and add K3s nodes with GUI Tool using AutoK3s (Installation guide in WSL)](https://dev.to/msh2050/quickly-create-k3s-cluster-and-add-k3s-nodes-with-gui-tool-using-autok3s-installation-guide-in-wsl-3e5d)
## Developers' Guide
Use `dapper` to manage project compilation, testing and packaging.
- compilation: `make autok3s build`
- testing: `make autok3s unit`
- packing: `make autok3s package only`Install `dapper` please follow the [dapper](https://github.com/rancher/dapper) project.
## Source Code
AutoK3s is 100% open-source software. The project source code is spread across a number of repos:
- https://github.com/cnrancher/autok3s
- https://github.com/cnrancher/autok3s-ui
- https://github.com/cnrancher/kube-explorerContributed by SUSE(Rancher E&I) Team
# License
Copyright (c) 2024 [SUSE](https://www.suse.com/)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.