Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Deploying a minimal, ephemeral k3s cluster within the free Google Cloud Shell.

License

Notifications You must be signed in to change notification settings

asterion-digital/k3s-gcp-cloud-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deploy K3s on Cloud Shell

Introduction

We needed to test the deployment of K3s and didn’t want to pay/set up a new virtual machine for this. Instead, we chose to deploy K3s inside a free Google Cloud Platform cloud shell.

Use the steps below to run K3s in Cloud Shell:

# Download the K3s binary from Github to Cloud Shell
wget https://github.com/k3s-io/k3s/releases/download/v1.21.1%2Bk3s1/k3s

# Make the binary executable
chmod +x k3s

# Run K3s in the background
sudo ./k3s server --snapshotter native&

Click the button below to clone the Github repo directly into Cloud Shell

./images/open-btn.png

After running this script, validate the node is ready

# Check K3s cluster
sudo ./k3s kubectl get nodes

About

Deploying a minimal, ephemeral k3s cluster within the free Google Cloud Shell.

Topics

Resources

License

Stars

Watchers

Forks

Languages