Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 693 Bytes

k0s-single-node.md

File metadata and controls

27 lines (20 loc) · 693 Bytes

Creating a single-node cluster

These instructions outline a quick method for running a local k0s master and worker in a single node.

NOTE: This method of running k0s is only recommended for dev, test or POC environments.

Prerequisites

Install k0s as documented in the installation instructions.

Start k0s

1. Generate a default cluster configuration

k0s default-config > k0s.yaml

2. Start k0s

$ sudo k0s install controller -c /full/path/to/k0s.yaml --enable-worker
INFO[2021-02-25 15:34:59] Installing k0s service
$ sudo systemctl start k0scontroller.service

Use k0s to access the cluster

$ k0s kubectl get nodes