Commit Graph

39 Commits

Author SHA1 Message Date
Raimund Hook
2fe5d2768b Changed SELinux error to fatal
If the install errors out on semanage not found, a file not found is
thrown as a 'file not found' for error. Updating to 'fatal' resolves
this as the script then exits as intended and throws an 'error'.
2019-08-28 15:35:56 +01:00
Erik Wilson
cc76ca6931
Merge branch 'master' into joakimr-axis_comparison 2019-08-26 09:38:23 -07:00
Erik Wilson
59f0f004d0
Merge branch 'master' into master 2019-08-26 09:35:14 -07:00
Darren Shepherd
1c93798037 Check for semanage command availability 2019-08-24 23:32:11 -07:00
Joakim Roubert
7a01e0fae3 install.sh: Use -eq instead of = for integer comparison
For integer comparison, it is recommended to use '-eq' instead of the
broader comparison '='. From the manual:

n1 -eq n2  True if the integers n1 and n2 are algebraically equal.
s1 = s2    True if the strings s1 and s2 are identical.

Change-Id: I3a92c3944a19e7a618438a9e3e304d9de5d9874f
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2019-08-23 10:32:18 +02:00
Joakim Roubert
9982da1953 install.sh: Use contemporary command substitution syntax
The install.sh script currently uses a mix of the legacy backquote
syntax and the recommended contemporary $() syntax. This patch brings
consistency by replacing the occurrences of the legacy backquote ones
with the $() syntax.

Change-Id: I018f3250175064dcb22ef86a0240b2c804153641
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2019-08-23 10:26:43 +02:00
Erik Wilson
d8c4f3811e Fix logging for openrc 2019-08-07 23:07:16 -07:00
Erik Wilson
23501c08cb
Merge pull request #662 from cryptk/systemd-delay
Add a little extra delay between restart attempts
2019-07-27 07:57:45 -07:00
cryptk
f9dd8dedc8 Add a little extra delay between restart attempts
This extra delay prevents systemd from determining that the service is restarting "too quickly".
2019-07-25 13:02:19 -05:00
Erik Wilson
c443101bfc Install symlink skip or force, links ctr 2019-07-23 09:50:50 -07:00
Ray Tsang
32f1d66932 Added K3S_INSTALL_SKIP_SYMLINK flag 2019-07-19 11:27:57 -07:00
peter_he
d140911b55 Fix install.sh comment typo (#638) 2019-07-15 08:37:31 -07:00
Erik Wilson
deb4178459 Quote installer arguments 2019-06-18 09:45:05 -07:00
galal-hussein
8188bc62aa Add Restart=always to systemd unit 2019-05-08 02:54:40 +02:00
Erik Wilson
7ca50efb8b Add k3s-killall.sh script to installer 2019-05-01 14:27:39 -07:00
Darren Shepherd
0726ce75e9
Merge pull request #416 from galal-hussein/change_systemd_target
Change systemd unit file target to network-online.target
2019-04-30 11:24:17 -07:00
galal-hussein
c30c809642 Change systemd unit file target to network-online.target 2019-04-30 01:28:58 +02:00
Darren Shepherd
8867c509ce Add ability to set architecture
The ARCH env var can be set by the install.sh caller.  This is
specifically important if you want to install arm on arm64.
2019-04-29 09:14:43 -07:00
Erik Wilson
3af2618393 Fix systemd install not starting 2019-04-26 22:13:38 -07:00
Erik Wilson
fa673468ce Add INSTALL_K3S_BIN_DIR_READ_ONLY variable 2019-04-25 14:18:16 -07:00
Erik Wilson
3543ba4b56 Only start service if something changed 2019-04-25 10:06:22 -07:00
Erik Wilson
6a80350dda OpenRC install to BIN_DIR 2019-04-24 11:45:05 -07:00
Erik Wilson
100e2f6c2f Provide INSTALL_K3S_SKIP_START environment variable 2019-04-23 13:24:02 -07:00
Erik Wilson
eabc1154b1 Add OpenRC support to installer 2019-04-22 19:57:21 -07:00
Erik Wilson
1bc7042bd5 Fix systemd TimeoutStartSec
Set TimeoutStartSec to 0 instead of infinity for systemd versions older
than 229.
2019-04-17 11:27:03 -07:00
Matt Keas
f7e0017fed Extend systemd start timeout for slow systems
Cert generation may cause slow startup times for some systems such as
the Raspberry Pi, set the systemd service TimeoutStartSec to Infinity to
avoid startup timeouts.
2019-04-12 22:28:17 +00:00
Erik Wilson
43852f040b Fix shasum check
Airgap image checksums may accidentaly be used by the installer, be
more specific to grep only for the downloaded executable.
2019-03-29 03:55:55 +00:00
Brandon Wulf
397ae335fd Set the selinux context during the install (#228)
* Set the selinux context
2019-03-22 13:51:59 -07:00
Erik Wilson
e05964d1dd Allow agent install
Modify the install script to allow defining arbitrary service names and
commands for k3s.
2019-03-07 12:45:08 -07:00
Darren Shepherd
0414f97c78 Revert "Enable systemd ready notification for k3s server"
This reverts commit c73e9187bb.
2019-03-04 13:18:20 -07:00
Erik Wilson
a7640cfb90 Download latest release for install script
Check for latest release of k3s or pass a desired version as an
argument. Adds curl as a requirement and early exits if not available.
Fixes silent abort when wget is not available and `which` returns
non-zero exit code.
2019-03-01 11:16:24 -07:00
Erik Wilson
c73e9187bb Enable systemd ready notification for k3s server
Disables k8s generic api server systemd ready notification and send
our own ready notification after server available and kubeconfig
available.
2019-03-01 10:47:34 -07:00
Darren Shepherd
7d1baa919b Remove wget 2019-02-26 09:19:00 -07:00
Darren Shepherd
f14a1ae2de Bump to v0.1.0 2019-02-26 09:16:07 -07:00
Darren Shepherd
37caa68cce Bump to rc8 2019-02-24 12:16:20 -07:00
Darren Shepherd
6602756aea Bump scripts to rc6 2019-02-24 12:00:56 -07:00
Darren Shepherd
b07727ae24 Move default config location to /etc/rancher/k3s/k3s.yaml 2019-02-19 09:53:41 -08:00
Darren Shepherd
4e2d6c9b1c Fix suffix for arm 2019-02-14 11:27:26 -07:00
Darren Shepherd
263722ccf2 Add install script for get.k3s.io 2019-02-08 16:59:58 -07:00