Skip to content
Demo repo for K3S Testing
Ruby Smarty Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
helm-charts
helm-values
kube-yml
mnt/rancher
samples
vagrant
.gitignore
README.md
demo-k3d.md
demo-k3s.md
demo-with-multipass.md
loopcurl
requirements.md

README.md

K3S DEMONSTRATION

This is a repository containing technical procedure and configs to test a k3s installation (locally and in VM).

Requirements

You should first check the requirements to install before launching the demo.

Demos

3 demos are available:

Monitoring results

Server installation

Verify installation

systemctl k3s status
journalctl -u k3s -e -f
kubectl get all --all-namespaces

Locate config files

# Kubeconfig
/etc/rancher/k3s/k3s.yaml

# K3S Installation
/var/lib/rancher/k3s

Agents installation

Verify installation

kubectl get nodes
multipass exec k3s-server -- /bin/bash -c "sudo cat /var/lib/rancher/k3s/server/cred/node-passwd"

Resources Consumption

For local multipass:

multipass info --all

Inside the VM:

# Get process comsumption
ps aux | grep k3s

# Get the top 10 CPU consuming process
ps aux | sort -n -k 3 | tail -10

# Get the top 10 memory consuming process
ps aux | sort -n -k 4 | tail -10
You can’t perform that action at this time.