• Stars
    star
    685
  • Rank 65,982 (Top 2 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Run K3s Everywhere

AutoK3s

Build Status Go Report Card GitHub release (latest by date) GitHub release (latest by date including pre-releases)


What is AutoK3s

English / 简体中文

K3s is a fully certified Kubernetes offering, it can replace the "full-fat" K8s in some cases.

AutoK3s is a lightweight tool for simplifying the cluster management of K3s, it can help you Run K3s Everywhere.

Key Features

  • Shorter provisioning time with API, CLI and UI dashboard.
  • Cloud provider Integration(simplifies the setup process of CCM on cloud providers).
  • Flexible installation options, like K3s cluster HA and datastore(embedded etcd, RDS, SQLite, etc.).
  • Low cost(try spot instances in each cloud).
  • Simplify operations by UI dashboard.
  • Portability between clouds by leveraging tools like backup-restore-operator.
  • Airgap K3s package management and installation.
  • SSH Key Management can manage the SSH keys are used to provision K3s clusters.

Providers

Now supports the following providers, we encourage submitting PR contribution for more providers:

  • aws - Bootstrap K3s onto Amazon EC2
  • google - Bootstrap K3s onto Google Compute Engine
  • alibaba - Bootstrap K3s onto Alibaba ECS
  • tencent - Bootstrap K3s onto Tencent CVM
  • k3d - Bootstrap K3d onto Local Machine
  • native - Bootstrap K3s onto any VM

Quick Start (tl;dr)

Scenario 1 - Run with docker:

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

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

Scenario 2 - Run with docker-compose

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

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

/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:

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 project.

Source Code

AutoK3s is 100% open-source software. The project source code is spread across a number of repos:

License

Copyright (c) 2023 Rancher Labs, Inc.

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

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.

More Repositories

1

kube-explorer

A portable explorer for Kubernetes, without any dependency.
Go
218
star
2

octopus

Lightweight device management system for Kubernetes/k3s
Go
151
star
3

docs-rancher2

Rancher 中文文档,包括Rancher1.x、Rancher 2.x、RKE、K3s、Octopus、Harvester和 RKE2的中文文档,其中Rancher1.x、Octopus的文档已经不再维护;Rancher 2.x、RKE、K3s、Harvester和 RKE2会定期更新。
JavaScript
93
star
4

autok3s-ui

JavaScript
18
star
5

hangar

Mirror multi-platform container images between registry servers.
Go
12
star
6

pandaria-catalog

Rancher Prime GC Catalog
Go
12
star
7

octopus-ui

Vue
11
star
8

kuihua-ebook

rancher葵花宝典,专业研究疑难杂症30年
JavaScript
10
star
9

octopus-api-server

octopus api server
Go
8
star
10

octopus-simulator

Go
6
star
11

kube-explorer-ui

Vue
4
star
12

cce-operator

Kubernetes controller for managing Huawei Cloud Container Engine (CCE) in Rancher.
Go
3
star
13

euler-packer

Shell
3
star
14

docs-octopus

Rancher Octopus Docs(Beta)
JavaScript
2
star
15

go-zstack

Go
2
star
16

docker-machine-driver-zstack

Go
2
star
17

octopus-chart

A curated helm v3 chart of rancher octopus
Smarty
2
star
18

tcr-access-control

Command line tool for managing the Tencent Cloud TCR public access security policies.
Go
1
star
19

openeuler-conformance

1
star
20

huaweicloud-sdk

Go
1
star
21

os-tests

Python
1
star
22

ui-cluster-driver-baidu

JavaScript
1
star
23

rancher-upgrade-authtool

Go
1
star
24

pandaria-types

Rancher企业版
Go
1
star
25

image-build-skopeo

Build hardened skopeo image in SUSE bci image.
Shell
1
star
26

openldap-sql

Shell
1
star
27

tke-operator

KEv2 for TKE
1
star