Skip to content

Commit

Permalink
Conformance results for v1.27/k0s (cncf#2562)
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Sakhnov <[email protected]>
  • Loading branch information
mikhail-sakhnov authored May 9, 2023
1 parent 322e1c7 commit 20f5e1a
Show file tree
Hide file tree
Showing 4 changed files with 33,477 additions and 0 deletions.
10 changes: 10 additions & 0 deletions v1.27/k0s/PRODUCT.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
vendor: Mirantis
name: k0s
version: v1.27.1+k0s.0
website_url: https://k0sproject.io
repo_url: https://github.com/k0sproject/k0s
documentation_url: https://docs.k0sproject.io/
product_logo_url: https://raw.githubusercontent.com/k0sproject/k0s/main/docs/img/k0s-logo-full-color-light.svg
type: Distribution
description: "k0s is a single binary all-inclusive Kubernetes distribution with all the required bells and whistles preconfigured to make building a Kubernetes clusters a matter of just copying an executable to every host and running it."
contact_email_address: [email protected]
84 changes: 84 additions & 0 deletions v1.27/k0s/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# k0s Conformance

## k0s - Zero Friction Kubernetes

Full instructions on how to set up a k0s cluster can be found [here](https://github.com/k0sproject/k0s/blob/main/docs/create-cluster.md).

## Requirements

k0s runs either as a single node (controller with `--enable-worker`), or as a controller/worker cluster.
These instructions assume you have one or more linux or arm boxes ready for installation.

Download the k0s v1.27.1+k0s.0 binary from [releases](https://github.com/k0sproject/k0s/releases/tag/v1.27.1%2Bk0s.0) and push it to all the nodes you wish to connect to the cluster.

## Cluster Setup

#### Single node

```
$ k0s controller --enable-worker
```

#### Multiple nodes

##### Controller

```
$ k0s controller
```

Once k0s on the controller is up, create a join token

```
$ k0s token create --role=worker
```

##### Joining Workers To The Cluster

```
$ k0s worker "long-join-token"
```

## Run the Conformance Test

To run the conformance test, download a [binary release](https://github.com/vmware-tanzu/sonobuoy/releases) of sonobuoy, or build it yourself by running:

```
$ go get -u -v github.com/vmware-tanzu/sonobuoy
```

Deploy a Sonobuoy pod to your cluster with:

```
$ export KUBECONFIG=/var/lib/k0s/pki/admin.conf
$ sonobuoy run --mode=certified-conformance --kube-conformance-image-version=v1.26.0
```

The test will take more than an hour to complete, but you can follow the logs by running:

```
$ sonobuoy logs -f
```

To view actively running pods:

```
$ sonobuoy status
```

Example:

```
root@controller-0:~# sonobuoy status
PLUGIN STATUS RESULT COUNT
e2e complete passed 1
systemd-logs complete passed 3
Sonobuoy has completed. Use `sonobuoy retrieve` to get results.
```

Once the tests complete, retrieve the results file by running:

```
$ sonobuoy retrieve
```
Loading

0 comments on commit 20f5e1a

Please sign in to comment.