Table of Contents
brew install k3sup
Return to k3sup, K3S, K3S Installation, brew install, Cloud Monk's Development PC DevOps Automation via Ansible-Chocolatey-PowerShell-Homebrew-DNF-APT, choco install k3s
https://formulae.brew.sh/formula/k3sup
https://github.com/alexellis/k3sup
bootstrap K3s over SSH in < 60s 🚀
k3sup is a light-weight K8S utility to get from zero to KUBECONFIG with k3s on any local VM or remote VM. All you need is ssh access and the k3sup binary to get kubectl access immediately.
The K8S tool is written in Go and is cross-compiled for Linux, Windows, macOS and even on Raspberry Pi.
How do you say it? Ketchup, as in tomato.
What's this for? 💻 This tool uses ssh to install k3s to a remote Linux host. You can also use it to join existing Linux hosts into a k3s cluster as agents. First, k3s is installed using the utility script from Rancher, along with a flag for your host's public IP so that TLS works properly. The kubeconfig file on the server is then fetched and updated so that you can connect from your laptop using kubectl.
You may wonder why a tool like this needs to exist when you can do this sort of thing with bash.
k3sup was developed to automate what can be a very manual and confusing process for many developers, who are already short on time. Once you've provisioned a VM with your favourite tooling, k3sup means you are only 60 seconds away from running kubectl get pods on your own computer. If you are a local computer, you can bypass SSH with k3sup install –local
Uses
- Bootstrap Kubernetes with k3s onto any VM with k3sup install - either manually, during CI or through cloud-init
- Get from zero to kubectl with k3s on Raspberry Pi (K8S RPi), k3s on VMs, k3s on AWS EC2, k3s on Packet bare-metal, k3s on DigitalOcean, k3s on Civo, k3s on Scaleway, and others
- Build a HA, multi-master (server) cluster
- Fetch the KUBECONFIG from an existing k3s cluster
- Join nodes into an existing k3s cluster with k3sup join
macOS
brew install k3sup
Running `brew update –auto-update`…
=⇒ Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
You have 1 outdated formula installed.
You can upgrade it with brew upgrade or list it with brew outdated.
=⇒ Downloading https://ghcr.io/v2/homebrew/core/k3sup/manifests/0.12.10
=⇒ Downloading https://ghcr.io/v2/homebrew/core/k3sup/blobs/sha256:5ceae0674f5361d7414923f69f479456490454ef8c821566422d90d06825dc23
=⇒ Pouring k3sup–0.12.10.monterey.bottle.tar.gz
=⇒ Caveats
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
=⇒ Summary
🍺 /usr/local/Cellar/k3sup/0.12.10: 8 files, 5.5MB
=⇒ Running `brew cleanup k3sup`…
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
k3sup –help Usage:
k3sup [flags] k3sup [command]
Examples:
# Install k3s on a server with embedded etcd k3sup install \ --cluster \ --host $SERVER_1 \ --user $SERVER_1_USER \ --k3s-channel stable
# Join a second server k3sup join \ --server \ --host $SERVER_2 \ --user $SERVER_2_USER \ --server-host $SERVER_1 \ --server-user $SERVER_1_USER \ --k3s-channel stable
# Join an agent to the cluster k3sup join \ --host $SERVER_1 \ --user $SERVER_1_USER \ --k3s-channel stable
🐳 k3sup needs your support: https://github.com/sponsors/alexellis
Available Commands:
completion Generate the autocompletion script for the specified shell help Help about any command install Install k3s on a server via SSH join Install the k3s agent on a remote host and join it to an existing server ready Check if a cluster is ready using kubectl. update Print update instructions version Print the version
Flags:
-h, --help help for k3sup
Use “k3sup [command] –help” for more information about a command. bowman@a4ra8pa2ch7an6ad9hi ~ % >….
# Join a second server k3sup join \ --server \ --host $SERVER_2 \ --user $SERVER_2_USER \ --server-host $SERVER_1 \ --server-user $SERVER_1_USER \ --k3s-channel stable
# Join an agent to the cluster k3sup join \ --host $SERVER_1 \ --user $SERVER_1_USER \ --k3s-channel stable
🐳 k3sup needs your support: https://github.com/sponsors/alexellis
Available Commands:
completion Generate the autocompletion script for the specified shell help Help about any command install Install k3s on a server via SSH join Install the k3s agent on a remote host and join it to an existing server ready Check if a cluster is ready using kubectl. update Print update instructions version Print the version
Flags:
-h, --help help for k3sup
Linux
Homebrew: Cloud Monk's Package Manager Book Homebrew Chapter, Cloud Monk's Development PC DevOps Automation via Ansible-Chocolatey-PowerShell-Homebrew-DNF-APT, Homebrew Glossary, Homebrew Fundamentals, Homebrew Inventor - Homebrew Designer: Mike McQuaid, Brew DevOps - Homebrew on macOS - macOS DevOps - MacOps, Homebrew on Linux - Linux DevOps - LinuxOps, Homebrew Automation, Idempotent, Refreshenv, Homebrew Topics, macOS Package Managers, Package managers, macOS Configuration Management, PowerShell on macOS Ansible on macOS, Chef on macOS, Puppet on macOS (navbar_brew - see also navbar_choco, navbar_package_manager)
See navbar_k8s
© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers
SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.