Skip to content

Commit

Permalink
Initial update server channels
Browse files Browse the repository at this point in the history
Signed-off-by: Jussi Nummelin <[email protected]>
  • Loading branch information
jnummelin committed Sep 25, 2023
1 parent 3408f94 commit 3cad600
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 16 deletions.
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# k0s Update Server - Reference implementation

This repo serves as k0s update server reference implementation. It provides the basic channels descriptions that is expected from an update server.

Essentially k0s autopilot assumes the folowing structure for update channels:

```text
channels/
<channel-name>/
index.yaml
```

Each the channel name can contain e.g. forward slashes so you can structure the channels for example like so:

```text
channels/
stable/v1.28/
index.yaml
unstable/v1.28/
index.yaml
```

Each channel `index.yaml` need to provide following information:

```yaml
channel: v1.27
eolDate: "2024-06-28"
version: 1.27.8+k0s.0
downloadURLs:
- arch: amd64
os: linux
k0s: https://github.com/k0sproject/k0s/releases/download/v1.27.0%2Bk0s.0/k0s-v1.27.0+k0s.0-amd64
k0sSha256: deadbeef
airgapBundle: someurlhere
airgapSha256: deadbeef
- arch: arm64
os: linux
url: https://github.com/k0sproject/k0s/releases/download/v1.27.0%2Bk0s.0/k0s-v1.27.0+k0s.0-arm64
- arch: arm
os: linux
url: https://github.com/k0sproject/k0s/releases/download/v1.27.0%2Bk0s.0/k0s-v1.27.0+k0s.0-arm
- arch: amd64
os: windows
url: https://github.com/k0sproject/k0s/releases/download/v1.27.0%2Bk0s.0/k0s-v1.27.0+k0s.0-amd64.exe
```
So each channel can offer only single version to k0s autopilot client. In general the design pattern here is that each major.minor version will have their own channel where the latest patch release is offered.
15 changes: 15 additions & 0 deletions channels/latest/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
channel: latest
version: 1.28.2+k0s.0 # This is the version which is offered by this channel
downloadURLs:
- arch: amd64
os: linux
k0s: https://github.com/k0sproject/k0s/releases/download/v1.28.2%2Bk0s.0/k0s-v1.28.2+k0s.0-amd64
k0sSha256: deadbeef # SHA256 checksum of the k0s binary
airgapBundle: someurlhere # URL to the airgap bundle
airgapSha256: deadbeef # SHA256 checksum of the airgap bundle
- arch: arm64
os: linux
k0s: https://github.com/k0sproject/k0s/releases/download/v1.28.2%2Bk0s.0/k0s-v1.28.2+k0s.0-arm64
- arch: arm
os: linux
k0s: https://github.com/k0sproject/k0s/releases/download/v1.28.2%2Bk0s.0/k0s-v1.28.2+k0s.0-arm
16 changes: 0 additions & 16 deletions channels/stable/v1.27/index.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions channels/stable/v1.28/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
channel: v1.28
version: 1.28.2+k0s.0 # This is the version which is offered by this channel
downloadURLs:
- arch: amd64
os: linux
k0s: https://github.com/k0sproject/k0s/releases/download/v1.28.2%2Bk0s.0/k0s-v1.28.2+k0s.0-amd64
k0sSha256: deadbeef # SHA256 checksum of the k0s binary
airgapBundle: someurlhere # URL to the airgap bundle
airgapSha256: deadbeef # SHA256 checksum of the airgap bundle
- arch: arm64
os: linux
k0s: https://github.com/k0sproject/k0s/releases/download/v1.28.2%2Bk0s.0/k0s-v1.28.2+k0s.0-arm64
- arch: arm
os: linux
k0s: https://github.com/k0sproject/k0s/releases/download/v1.28.2%2Bk0s.0/k0s-v1.28.2+k0s.0-arm

16 changes: 16 additions & 0 deletions channels/unstable/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
channel: latest-unstable
version: 1.28.2-rc.1+k0s.0 # This is the version which is offered by this channel
downloadURLs:
- arch: amd64
os: linux
k0s: https://github.com/k0sproject/k0s/releases/download/v1.28.2-rc.1%2Bk0s.0/k0s-v1.28.2-rc.1+k0s.0-amd64
k0sSha256: deadbeef # SHA256 checksum of the k0s binary
airgapBundle: someurlhere # URL to the airgap bundle
airgapSha256: deadbeef # SHA256 checksum of the airgap bundle
- arch: arm64
os: linux
k0s: https://github.com/k0sproject/k0s/releases/download/v1.28.2-rc.1%2Bk0s.0/k0s-v1.28.2-rc.1+k0s.0-arm64
- arch: arm
os: linux
k0s: https://github.com/k0sproject/k0s/releases/download/v1.28.2-rc.1%2Bk0s.0/k0s-v1.28.2-rc.1+k0s.0-arm

0 comments on commit 3cad600

Please sign in to comment.