install_k8s is a one-click Kubernetes installation tool that supports both single-node and cluster deployments using RBAC and certificate-based security for production environments.
一键安装kubernets(k8s)系统,采用RBAC模式运行(证书安全认证模式),既可以单台安装、也可以集群安装,并且完全是生产环境的安装标准。有疑问大家可以加我微信沟通:bsh888
This tool is designed for DevOps engineers and system administrators who need to quickly deploy a secure, production-grade Kubernetes cluster either on a single machine or across multiple nodes. It automates the installation and configuration of Kubernetes and related components with built-in RBAC and TLS certificate management, simplifying cluster setup and management.
Ensure the sysbase database is created before starting the installation service. The tool requires modifying configuration files to set correct database and binary paths as well as the API host IP. Kernel upgrades may cause machine reboots, so plan accordingly. The generated TLS certificates should be trusted on client systems to avoid security warnings. Single-node deployments require at least 4 CPU cores and 8GB RAM, though 8 cores and 16GB RAM are recommended for production stability.
Download and extract the binary installation package (e.g., installk8s-v1.32.3-20250401.gz) to /data/
Navigate to /data/installk8s/sysbase
Modify config.yaml to set database and binary file paths; create the sysbase database beforehand
Modify static/config.js to set apiHost to the IP address of the machine running the installation service
Run the installation service executable matching your platform (e.g., ./bin/sysbase-v1.0.0-linux-amd64)
Access the installation web interface at http://<service-ip>:8081/static/
Add VPS resources specifying roles like etcd, master, and node; single-machine deployment is supported
Create a K8sCluster record by selecting the configured resources
Optionally perform a kernel upgrade before installation to ensure compatibility
Execute the one-click installation from the web interface
cd /data/ && tar zxvf installk8s-v1.32.3-20250401.gz -C /data
Extract the downloaded Kubernetes installation package to /data directory
cd /data/installk8s/sysbase
Navigate to the installation service directory
./bin/sysbase-v1.0.0-linux-amd64
Start the installation service executable for Linux AMD64 platform
Access installation service at http://<service-ip>:8081/static/
Open the web-based installation GUI in a browser
Add VPS resources via the web interface
Configure cluster nodes and roles before creating the Kubernetes cluster
Create K8sCluster record selecting added resources
Define the Kubernetes cluster configuration for installation
Click kernel upgrade before installation
Upgrade the system kernel if needed; this step may reboot the machine
Click one-click install
Trigger the automated Kubernetes cluster installation process