# lework/kainstall

Use shell scripts to install kubernetes(k8s) high availability clusters and addon components based on kubeadmin with one click.使用shell脚本基于kubeadmin一键安装kubernetes 高可用集群和addon组件。

Repository: https://github.com/lework/kainstall
Canonical: https://ross.abutalabs.com/products/kainstall
Language: Shell
License: MIT
License Family: permissive
Topics: install, kubeadm, kubernetes, kubernetes-cluster, kubernetes-setup, kubeadmin-kubernetes, kubernetes-install, kainstall, bash
Last push: 2024-01-05T08:47:34+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2175, "days_push": 971, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1057, forks 269 (observed 2026-08-28T04:03:24.723933+00:00)

## What it is
A single-file shell script that installs Kubernetes high-availability clusters based on kubeadm with one command, including server initialization and optional addon components. It supports offline deployment, cluster upgrades, certificate renewal, and adding or removing nodes.

## Use cases
- install a kubernetes HA cluster with one command
- deploy k8s without ansible or python dependencies
- set up a kubernetes cluster in an air-gapped offline environment
- add or remove worker nodes from an existing kubeadm cluster
- renew kubernetes cluster certificates
- install ingress, network, storage, and monitoring addons alongside k8s
- initialize servers for kubernetes with kernel and sysctl tuning

## When to choose
- you want a lightweight, dependency-free shell script instead of ansible playbooks
- you need fast one-command kubeadm-based HA cluster deployment
- you must install kubernetes on servers without internet access using offline packages
- you want bundled installation of common addons like calico, ingress, and dashboard

## When to avoid
- you need declarative, idempotent infrastructure management at scale
- your environment requires managed kubernetes or gitops workflows
- you need support for operating systems outside the supported centos/debian/ubuntu list
- you prefer tools like kubespray, k3s, or kubeadm directly with custom automation

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: deployment, infrastructure-as-code, container-orchestration, developer-tools
- domain: cloud-computing, infrastructure-as-code, self-hosted
- platform: cli
- tags: kubernetes, kubeadm, high-availability, cluster-installation, bash-script, offline-install, addon-components, devops, containers, linux, shell

## Member repositories
- lework/kainstall (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.723933+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:57:59.083247+00:00, confidence not recorded.
  - readme: https://github.com/lework/kainstall (fetched 2026-08-28T04:03:24.723933+00:00, sha e66131432e45)
- Data as of 2026-08-30T08:39:29.467469+00:00.
