Skip to main content

Documentation Index

Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt

Use this file to discover all available pages before exploring further.

K3s is a lightweight Kubernetes distribution designed for resource-constrained environments, making it ideal for running Kubernetes on a VPS.
Prerequisites
  • A VPS with OnetSolutions
  • SSH access to your server
  • Root or sudo privileges

Installation Steps

1

Connect to your VPS

Connect via SSH to your server.
2

Install K3s

Run the K3s installation script:
curl -sfL https://get.k3s.io | sh -
3

Wait for installation

The installation may take a few minutes. K3s will automatically start after installation.
4

Configure kubectl

Copy the K3s configuration for kubectl:
mkdir -p ~/.kube
sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
sudo chown $USER:$USER ~/.kube/config
5

Verify installation

Check that K3s is running:
kubectl get nodes
You should see your VPS listed as a node.

Deploying Applications

1

Create a manifest file

Create a Kubernetes manifest file (e.g., my-app.yaml) describing your application.
2

Deploy the application

kubectl apply -f my-app.yaml
3

Check deployment status

kubectl get pods
kubectl get services

Managing K3s

sudo systemctl stop k3s
sudo systemctl start k3s
/usr/local/bin/k3s-uninstall.sh
For more information, refer to the official K3s documentation.