mirror of
https://github.com/kairos-io/packages.git
synced 2025-07-16 16:21:11 +00:00
Add k0s Packages (#1225)
* add k0s packages
Signed-off-by: William Rizzo <william.rizzo@gmail.com>
* add k0s v1.30.7 and v1.29.11
* fix typos and comments
Signed-off-by: William Rizzo <william.rizzo@gmail.com>
* add installer download
Signed-off-by: William Rizzo <william.rizzo@gmail.com>
* Rename variable for k0s
Signed-off-by: Mauro Morales <contact@mauromorales.com>
* Change url
Signed-off-by: Mauro Morales <contact@mauromorales.com>
* Force systemd service
Signed-off-by: Mauro Morales <contact@mauromorales.com>
* Feedback
Signed-off-by: Mauro Morales <contact@mauromorales.com>
* Add comments about karianos/service for future ref
Signed-off-by: Mauro Morales <contact@mauromorales.com>
* Move k0s under /usr/bin
Otherwise /usr/local/bin gets shadowed by persistent
Signed-off-by: Mauro Morales <contact@mauromorales.com>
* Add override for k0s unit
Signed-off-by: Mauro Morales <contact@mauromorales.com>
* Use alpine for openrc
Signed-off-by: Mauro Morales <contact@mauromorales.com>
* Add packages on alpine
Signed-off-by: Mauro Morales <contact@mauromorales.com>
* Order
* Add an update
Signed-off-by: Mauro Morales <contact@mauromorales.com>
* 🤦
Signed-off-by: Mauro Morales <contact@mauromorales.com>
---------
Signed-off-by: William Rizzo <william.rizzo@gmail.com>
Signed-off-by: Mauro Morales <contact@mauromorales.com>
Co-authored-by: Mauro Morales <contact@mauromorales.com>
This commit is contained in:
parent
9d9b645db1
commit
344346dc58
41
packages/k8s/k0s/build.yaml
Normal file
41
packages/k8s/k0s/build.yaml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{{ if eq .Values.name "k0s-openrc" }}
|
||||||
|
image: "alpine"
|
||||||
|
{{ else }}
|
||||||
|
requires:
|
||||||
|
- name: "toolchain-go-ubuntu"
|
||||||
|
category: "development"
|
||||||
|
version: ">=0"
|
||||||
|
{{ end }}
|
||||||
|
env:
|
||||||
|
- K0S_VERSION=v{{ regexReplaceAll "\\+\\d+$" .Values.version "" }}+k0s.{{.Values.k0s_version}}
|
||||||
|
steps:
|
||||||
|
{{ if eq .Values.name "k0s-openrc" }}
|
||||||
|
- apk update
|
||||||
|
- apk add openrc curl upx
|
||||||
|
{{ else }}
|
||||||
|
- apt-get update && apt-get install -y systemctl
|
||||||
|
- mkdir -p /etc/systemd/system/
|
||||||
|
# required by https://github.com/kardianos/service/blob/becf2eb62b83ed01f5e782cb8da7bb739ded2bb5/service_systemd_linux.go#L23
|
||||||
|
- mkdir -p /run/systemd/system
|
||||||
|
{{ end }}
|
||||||
|
- curl -sfL https://get.k0s.sh > installer.sh
|
||||||
|
- sh installer.sh
|
||||||
|
- rm -rf installer.sh
|
||||||
|
- k0s install controller --single --debug --verbose
|
||||||
|
- chmod +x /usr/local/bin/k0s
|
||||||
|
- upx -1 /usr/local/bin/k0s
|
||||||
|
- mv /usr/local/bin/k0s /usr/bin/k0s
|
||||||
|
- ls -las /usr/bin/k0s
|
||||||
|
|
||||||
|
includes:
|
||||||
|
- ^/usr/bin/k0s
|
||||||
|
{{ if eq .Values.name "k0s-openrc" }}
|
||||||
|
- ^/etc/init.d/$
|
||||||
|
- ^/etc/init.d/k0s*
|
||||||
|
- ^/etc/k0s/$
|
||||||
|
- ^/etc/k0s/k0s$
|
||||||
|
{{ else }}
|
||||||
|
- ^/etc/systemd$
|
||||||
|
- ^/etc/systemd/system$
|
||||||
|
- ^/etc/systemd/system/k0s*.service$
|
||||||
|
{{ end }}
|
79
packages/k8s/k0s/collection.yaml
Normal file
79
packages/k8s/k0s/collection.yaml
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
packages:
|
||||||
|
- name: k0s-openrc
|
||||||
|
category: k8s
|
||||||
|
version: "1.31.3"
|
||||||
|
k0s_version: "0"
|
||||||
|
labels:
|
||||||
|
github.owner: "k0sproject"
|
||||||
|
github.repo: "k0s"
|
||||||
|
autobump.sed_script: 's/\+k0s.[0-9]//g'
|
||||||
|
autobump.skip_if_contains: '["k0s"]' # disable autobump
|
||||||
|
uri:
|
||||||
|
- https://github.com/k0sproject/k0s
|
||||||
|
license: "APL-2"
|
||||||
|
description: " The Zero Friction Kubernetes "
|
||||||
|
- name: k0s-openrc
|
||||||
|
category: k8s
|
||||||
|
version: "1.30.7"
|
||||||
|
k0s_version: "0"
|
||||||
|
labels:
|
||||||
|
github.owner: "k0sproject"
|
||||||
|
github.repo: "k0s"
|
||||||
|
autobump.sed_script: 's/\+k0s.[0-9]//g'
|
||||||
|
autobump.skip_if_contains: '["k0s"]' # disable autobump
|
||||||
|
uri:
|
||||||
|
- https://github.com/k0sproject/k0s
|
||||||
|
license: "APL-2"
|
||||||
|
description: " The Zero Friction Kubernetes "
|
||||||
|
- name: k0s-openrc
|
||||||
|
category: k8s
|
||||||
|
version: "1.29.11"
|
||||||
|
k0s_version: "0"
|
||||||
|
labels:
|
||||||
|
github.owner: "k0sproject"
|
||||||
|
github.repo: "k0s"
|
||||||
|
autobump.sed_script: 's/\+k0s.[0-9]//g'
|
||||||
|
autobump.skip_if_contains: '["k0s"]' # disable autobump
|
||||||
|
uri:
|
||||||
|
- https://github.com/k0sproject/k0s
|
||||||
|
license: "APL-2"
|
||||||
|
description: " The Zero Friction Kubernetes "
|
||||||
|
- name: k0s-systemd
|
||||||
|
category: k8s
|
||||||
|
version: "1.31.3"
|
||||||
|
k0s_version: "0"
|
||||||
|
labels:
|
||||||
|
github.owner: "k0sproject"
|
||||||
|
github.repo: "k0s"
|
||||||
|
autobump.sed_script: 's/\+k0s.[0-9]//g'
|
||||||
|
autobump.skip_if_contains: '["k0s"]' # disable autobump
|
||||||
|
uri:
|
||||||
|
- https://github.com/k0sproject/k0s
|
||||||
|
license: "APL-2"
|
||||||
|
description: " The Zero Friction Kubernetes "
|
||||||
|
- name: k0s-systemd
|
||||||
|
category: k8s
|
||||||
|
version: "1.30.7"
|
||||||
|
k0s_version: "0"
|
||||||
|
labels:
|
||||||
|
github.owner: "k0sproject"
|
||||||
|
github.repo: "k0s"
|
||||||
|
autobump.sed_script: 's/\+k0s.[0-9]//g'
|
||||||
|
autobump.skip_if_contains: '["k0s"]' # disable autobump
|
||||||
|
uri:
|
||||||
|
- https://github.com/k0sproject/k0s
|
||||||
|
license: "APL-2"
|
||||||
|
description: " The Zero Friction Kubernetes "
|
||||||
|
- name: k0s-systemd
|
||||||
|
category: k8s
|
||||||
|
version: "1.29.11"
|
||||||
|
k0s_version: "0"
|
||||||
|
labels:
|
||||||
|
github.owner: "k0sproject"
|
||||||
|
github.repo: "k0s"
|
||||||
|
autobump.sed_script: 's/\+k0s.[0-9]//g'
|
||||||
|
autobump.skip_if_contains: '["k0s"]' # disable autobump
|
||||||
|
uri:
|
||||||
|
- https://github.com/k0sproject/k0s
|
||||||
|
license: "APL-2"
|
||||||
|
description: " The Zero Friction Kubernetes "
|
@ -1,4 +1,4 @@
|
|||||||
packages:
|
packages:
|
||||||
- name: "kairos-overlay-files"
|
- name: "kairos-overlay-files"
|
||||||
category: "static"
|
category: "static"
|
||||||
version: "1.6.3"
|
version: "1.6.4"
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
[Unit]
|
||||||
|
ConditionFileIsExecutable=
|
||||||
|
ConditionFileIsExecutable=/usr/bin/k0s
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=/usr/bin/k0s controller --debug=true --single=true --verbose=true
|
Loading…
Reference in New Issue
Block a user