Last active
October 15, 2019 14:14
-
-
Save TheAifam5/7b99db9a86c8e6bef2a830868a2c4a39 to your computer and use it in GitHub Desktop.
k3s-bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Lightweight Kubernetes | |
Documentation=https://k3s.io | |
After=network-online.target | |
[Service] | |
Type=notify | |
EnvironmentFile=/etc/systemd/system/k3s.service.env | |
ExecStartPre=-/sbin/modprobe br_netfilter | |
ExecStartPre=-/sbin/modprobe overlay | |
ExecStart=/usr/bin/k3s server | |
KillMode=process | |
Delegate=yes | |
LimitNOFILE=infinity | |
LimitNPROC=infinity | |
LimitCORE=infinity | |
TasksMax=infinity | |
TimeoutStartSec=0 | |
Restart=always | |
RestartSec=5s | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# K3S_URL= | |
# K3S_TOKEN= | |
# K3S_CLUSTER_SECRET= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: duxet <duxetlg@gmail.com> | |
pkgname=k3s-bin | |
pkgver=0.9.1 | |
pkgrel=1 | |
pkgdesc="Lightweight Kubernetes" | |
url="https://k3s.io" | |
license=('Apache') | |
arch=('x86_64' 'armv7h' 'aarch64') | |
conflicts=('k3s-git') | |
source=( | |
"k3s.service" | |
"k3s.service.env" | |
) | |
source_x86_64=( | |
"k3s::https://github.com/rancher/k3s/releases/download/v${pkgver}/k3s" | |
"hyperkube::https://github.com/rancher/k3s/releases/download/v${pkgver}/hyperkube" | |
) | |
source_armv7h=( | |
"k3s::https://github.com/rancher/k3s/releases/download/v${pkgver}/k3s-armhf" | |
"hyperkube::https://github.com/rancher/k3s/releases/download/v${pkgver}/hyperkube-armhf" | |
) | |
source_aarch64=( | |
"k3s::https://github.com/rancher/k3s/releases/download/v${pkgver}/k3s-arm64" | |
"hyperkube::https://github.com/rancher/k3s/releases/download/v${pkgver}/hyperkube-arm64" | |
) | |
sha256sums=('f4ae496b69b3dd376a28298df50297728a47761b041be522adf2537aa8a8c3d8' | |
'667199fa6b811dde3aef3e626e2695a566ad64c9a03d19d0c94a1f104a7612d0') | |
sha256sums_x86_64=('9f8bea3fa6f88066ca51cc896000aab2794e3f585d6fc982dd5aa7da8ee9fe85' | |
'bc53b53c7586733720ad16dae91ee85a1f410cc4fdd62c1f8e287ae7e6e01589') | |
sha256sums_armv7h=('67fe371043b2ef23658e51fba8d7884e891ffee09419022161a411e4775d2afc' | |
'636af6617e863ed36c068d5b3e7c8d759bdaed91a7bfc8b2c5700452bc0d953b') | |
sha256sums_aarch64=('26f03c0723c8dd11fc72f2f6c3fe8c30e2894097fcedc6da98272821839caf94' | |
'cd9e56f9fb97347345b33ac67b018215a867073d582b2d8abb0d88a69194dcae') | |
package() { | |
install -Dm 755 $srcdir/k3s $pkgdir/usr/bin/k3s | |
install -Dm 755 $srcdir/hyperkube $pkgdir/usr/bin/hyperkube | |
install -dm 755 $pkgdir/usr/lib/systemd/system | |
install -dm 755 $pkgdir/etc/systemd/system | |
install -m 644 $srcdir/k3s.service $pkgdir/usr/lib/systemd/system/k3s.service | |
install -m 400 $srcdir/k3s.service.env $pkgdir/etc/systemd/system/k3s.service.env | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment