Accepting request 906672 from home:RBrownSUSE
OBS-URL: https://build.opensuse.org/request/show/906672 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/k3s-install?expand=0&rev=1
This commit is contained in:
commit
1d25478783
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
19
_service
Normal file
19
_service
Normal file
@ -0,0 +1,19 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="url">https://github.com/k3s-io/k3s.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">v1.21.2+k3s1</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
</service>
|
||||
<service mode="disabled" name="set_version">
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">gz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled">
|
||||
<param name="basename">k3s</param>
|
||||
</service>
|
||||
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/k3s-io/k3s.git</param>
|
||||
<param name="changesrevision">5a67e8dc473f8945e8e181f6f0b0dbbc387f6fca</param></service></servicedata>
|
38
inform-user-of-current-k3s-SELinux-support.patch
Normal file
38
inform-user-of-current-k3s-SELinux-support.patch
Normal file
@ -0,0 +1,38 @@
|
||||
From c7aaa079c0669aa550a525e0c848c8cfc9e114cc Mon Sep 17 00:00:00 2001
|
||||
From: Richard Brown <rbrownccb@opensuse.org>
|
||||
Date: Wed, 17 Mar 2021 16:18:51 +0100
|
||||
Subject: [PATCH] install.sh: Inform user of current k3s+SELinux support status
|
||||
for SUSE/openSUSE systems
|
||||
|
||||
Signed-off-by: Richard Brown <rbrownccb@opensuse.org>
|
||||
---
|
||||
install.sh | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/install.sh b/install.sh
|
||||
index 00101ae0e7..b356fcc646 100755
|
||||
--- a/install.sh
|
||||
+++ b/install.sh
|
||||
@@ -455,10 +455,18 @@ setup_selinux() {
|
||||
rpm_site="rpm-testing.rancher.io"
|
||||
fi
|
||||
|
||||
- policy_hint="please install:
|
||||
+ . /etc/os-release
|
||||
+ if [ "${ID_LIKE:-}" = suse ] ; then
|
||||
+ policy_hint='k3s with SELinux is currently not supported on SUSE/openSUSE systems.
|
||||
+ please disable SELinux before installing k3s
|
||||
+'
|
||||
+ else
|
||||
+ policy_hint="please install:
|
||||
yum install -y container-selinux selinux-policy-base
|
||||
yum install -y https://${rpm_site}/k3s/${rpm_channel}/common/centos/7/noarch/k3s-selinux-0.2-1.el7_8.noarch.rpm
|
||||
"
|
||||
+ fi
|
||||
+
|
||||
policy_error=fatal
|
||||
if [ "$INSTALL_K3S_SELINUX_WARN" = true ] || grep -q 'ID=flatcar' /etc/os-release; then
|
||||
policy_error=warn
|
||||
--
|
||||
2.32.0
|
||||
|
3
k3s-1.21.2+k3s1.tar.gz
Normal file
3
k3s-1.21.2+k3s1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cf9b46912afe4ee49e7000536fb7bb150bf9cf19e565311362d2eb01cbe23c3d
|
||||
size 26393395
|
20
k3s-install.changes
Normal file
20
k3s-install.changes
Normal file
@ -0,0 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 16 10:57:22 UTC 2021 - rbrown@suse.com
|
||||
|
||||
- Update to version 1.21.2+k3s1:
|
||||
* Update to v1.21.2 (#3479)
|
||||
* Renamed client-cloud-controller crt and key (#3472)
|
||||
* Send systemd notifications for both server and agent (#3430) (#3460)
|
||||
* Changed iptables version check for fail if version is between 1.8.0 and 1.8.3 and using nf_tables mode (#3454)
|
||||
* Add kubernetes.default.svc to serving certs
|
||||
* Fix RBAC cloud-controller-manager name 3308 (#3388) (#3408)
|
||||
* Add a path for wireguard's privatekey
|
||||
* Update flannel version
|
||||
* move object channel defer close to goroutine
|
||||
* add retention default and wire in s3 prune
|
||||
* add etcd snapshot save subcommand
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 16 10:55:07 UTC 2021 - Richard Brown <rbrown@suse.com>
|
||||
|
||||
- Initial Package
|
70
k3s-install.spec
Normal file
70
k3s-install.spec
Normal file
@ -0,0 +1,70 @@
|
||||
#
|
||||
# spec file for package k3s-install
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: k3s-install
|
||||
Version: 1.21.2+k3s1
|
||||
Release: 0
|
||||
Summary: Installer for k3s optimised for openSUSE MicroOS
|
||||
License: Apache-2.0
|
||||
Group: System/Management
|
||||
URL: https://k3s.io
|
||||
Source0: https://github.com/k3s-io/k3s/archive/v%{version}.tar.gz#/k3s-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM inform-user-of-current-k3s-SELinux-support.patch gh#k3s-io/k3s/#3088
|
||||
Patch1: inform-user-of-current-k3s-SELinux-support.patch
|
||||
Requires: cni-plugins
|
||||
Requires: conntrack-tools
|
||||
Requires: containerd
|
||||
Requires: iptables
|
||||
Requires: runc
|
||||
Conflicts: kubectl
|
||||
Conflicts: cri-tools
|
||||
Conflicts: kubernetes-client
|
||||
Conflicts: kubernetes-client-provider
|
||||
|
||||
%description
|
||||
Based on the official upstream k3s install.sh, this k3s-install
|
||||
package provides a curated, MicroOS-optimised, securely delivered
|
||||
alternative to running a script directly from the internet.
|
||||
|
||||
k3s is a container orchestration system for automating application
|
||||
deployment, scaling, and management. It is a Kubernetes-compliant
|
||||
distribution that differs from the original Kubernetes (colloquially
|
||||
"k8s") in that:
|
||||
|
||||
* Legacy, alpha, or non-default features are removed.
|
||||
* Most in-tree plugins (cloud providers and storage plugins) were
|
||||
removed, since they can be replaced with out-of-tree addons.
|
||||
* sqlite3 is the default storage mechanism.
|
||||
etcd3 is still available, but not the default.
|
||||
* There is a new launcher that handles a lot of the complexity of
|
||||
TLS and options.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n k3s-%{version}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
install -p -m 755 install.sh %{buildroot}%{_bindir}/k3s-install
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/k3s-install
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user