Erik Wilson
dddbd16305
Use channel server for install script
5 years ago
sen-subhabrata
4006bb57d0
Fix for issue 1326, updated install.sh
...
Fix for issue 1326, added lines to delete /run/k3s and /run/flannel in create_uninstall() function.
5 years ago
Erik Wilson
ce10c1f080
Check for k3s policy and provide install hints
5 years ago
Viet Hung Nguyen
f741e8f9c5
Fix error when get version using Wget
...
GitHub now returns lowercase:
wget -SqO /dev/null https://github.com/rancher/k3s/releases/latest |& grep -i location
location: https://github.com/rancher/k3s/releases/tag/v1.17.3+k3s1
5 years ago
Erik Wilson
5753dbd6ae
Merge branch 'master' into selinux-install
5 years ago
Erik Wilson
3410986357
Update install script for rpm install
5 years ago
Darren Shepherd
429e9d4966
Don't require selinux utils and require k3s_selinux
...
If you are installing k3s on a selinux enforcing system then we
required that you also install k3s_selinux RPM to put in the proper
policy.
5 years ago
William Johansson
37ebb93a77
Start cgroups service in OpenRC script
...
cgroups init script is present in Alpine Linux since 3.8.
Fixes #660
5 years ago
Erik Wilson
95689687c3
Add INSTALL_K3S_COMMIT option to installer
5 years ago
Johan Kok
51f8a1a0b9
Verify selinux status before downloading
5 years ago
Erik Wilson
e810ee1678
Merge pull request #967 from erikwilson/killall-cleanup
...
Cleanup k3s-killall
5 years ago
Erik Wilson
fecdee6fb5
Fix installs for older systemd
5 years ago
Erik Wilson
ef9c1f23f0
Cleanup k3s-killall
5 years ago
Erik Wilson
33f6a4e683
Merge pull request #965 from erikwilson/systemd-service-cleanup
...
Cleanup systemd service file
5 years ago
Erik Wilson
36dc38f361
Cleanup systemd service file
...
Move command with line continuations to bottom of service file to
prevent including systemd directives.
Changes After network-online to Wants network-online for air-gap.
5 years ago
Erik Wilson
e3cd52a49e
Remove iptables on k3s-killall.sh
5 years ago
Erik Wilson
ad4ea681ce
Hide the --disable-agent flag
5 years ago
Christian Tramnitz
7b37988fb1
make match case-insensitive
5 years ago
Christian Tramnitz
06f477410b
inherit proxy settings on install
...
Write proxy settings into FILE_K3S_ENV on install. This should address #627
5 years ago
Erik Wilson
0e0fbea23c
Uninstall/killall should clean up /var/lib/kubelet also
5 years ago
Erik Wilson
bb3aca1817
Cleanup killall and uninstall
5 years ago
Joakim Roubert
d982c33bfc
Merge branch 'master' into joakimr-axis_quotes
5 years ago
Joakim Roubert
f0bce02a62
Update install.sh
...
Signed-off-by: Joakim Roubert <joakimr@axis.com>
5 years ago
Joakim Roubert
2548f3ebaa
Update install.sh
...
Signed-off-by: Joakim Roubert <joakimr@axis.com>
5 years ago
Joakim Roubert
ce388e3788
Update install.sh
...
Signed-off-by: Joakim Roubert <joakimr@axis.com>
5 years ago
Joakim Roubert
2b5eff7237
Merge branch 'master' into joakimr-axis_noawk
5 years ago
Erik Wilson
76d685ae5d
Merge pull request #815 from dweomer/install/openrc
...
install.sh: fix openrc service depend in heredoc
5 years ago
Erik Wilson
ad7b2e0a5d
Merge pull request #756 from joakimr-axis/joakimr-axis_wget
...
install.sh: Add wget fallback if curl isn't available
5 years ago
Jacob Blain Christen
4d5cca6b50
install.sh: fix openrc service depend in heredoc
...
This change sets up the correct dependency on the `network-online`
service provided by openrc.
See:
- https://github.com/OpenRC/openrc/blob/0.39.2/service-script-guide.md#be-wary-of-need-net-dependencies
- https://github.com/OpenRC/openrc/blob/0.39.2/init.d/net-online.in#L18
5 years ago
Joakim Roubert
a0d2743868
Update install.sh
5 years ago
Joakim Roubert
0a67557c4a
Update install.sh after review comments
...
Change-Id: I8acf9f0fc0115dd8a45027b1d7610b47aa7462d9
5 years ago
Joakim Roubert
98410df788
Update install.sh according to yamt's suggestion
5 years ago
Joakim Roubert
e822bcafa1
Update install.sh
5 years ago
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'.
5 years ago
Erik Wilson
94167cdb4e
Merge branch 'master' into joakimr-axis_quotes
5 years ago
Joakim Roubert
6d07cb47b7
Merge branch 'master' into joakimr-axis_noawk
5 years ago
Erik Wilson
cc76ca6931
Merge branch 'master' into joakimr-axis_comparison
5 years ago
Joakim Roubert
b86d08a318
Merge branch 'master' into joakimr-axis_wget
5 years ago
Erik Wilson
59f0f004d0
Merge branch 'master' into master
5 years ago
Darren Shepherd
1c93798037
Check for semanage command availability
5 years ago
Joakim Roubert
76342565a2
Update install.sh
5 years ago
Joakim Roubert
7a96fbb3f8
install.sh: Cleanup of quotes
...
Where no variable expansion is done, " is replaced with '.
Copying content of one variable to another variable never needs quotes.
Some calls to echo and fatal need no quotes at all, but have been left
with ' to make it easier to see where the string begins and ends.
The fatal function now also sends output to stderr.
Change-Id: I2504707e5c550bc498e7663cedf58c224cd0a15b
Signed-off-by: Joakim Roubert <joakimr@axis.com>
5 years ago
Joakim Roubert
db441f28b8
install.sh: Add wget fallback if curl isn't available
...
Reportedly, some systems don't have curl but wget. With this patch,
install.sh will use wget instead of curl if the latter is not available
on the target system.
Change-Id: I0bc78feec6d8e1dbf7fbef7c2e10833b79bdbbdc
Signed-off-by: Joakim Roubert <joakimr@axis.com>
5 years ago
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>
5 years ago
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>
5 years ago
Joakim Roubert
1d220e33a5
install.sh: Use built-in shell functionality instead of awk
...
If install.sh relies on awk, install.sh malfunctions when run on a
device with a limited environment where awk is not available. This patch
replaces the use of awk with built-in shell script functionality.
Change-Id: I071d9f565ff7ef38445a6dd0ea9692b903721601
Signed-off-by: Joakim Roubert <joakimr@axis.com>
5 years ago
Erik Wilson
d8c4f3811e
Fix logging for openrc
5 years ago
Erik Wilson
23501c08cb
Merge pull request #662 from cryptk/systemd-delay
...
Add a little extra delay between restart attempts
5 years ago
cryptk
f9dd8dedc8
Add a little extra delay between restart attempts
...
This extra delay prevents systemd from determining that the service is restarting "too quickly".
5 years ago
Erik Wilson
c443101bfc
Install symlink skip or force, links ctr
5 years ago
Ray Tsang
32f1d66932
Added K3S_INSTALL_SKIP_SYMLINK flag
5 years ago
peter_he
d140911b55
Fix install.sh comment typo ( #638 )
5 years ago
Erik Wilson
deb4178459
Quote installer arguments
6 years ago
galal-hussein
8188bc62aa
Add Restart=always to systemd unit
6 years ago
Erik Wilson
7ca50efb8b
Add k3s-killall.sh script to installer
6 years ago
Darren Shepherd
0726ce75e9
Merge pull request #416 from galal-hussein/change_systemd_target
...
Change systemd unit file target to network-online.target
6 years ago
galal-hussein
c30c809642
Change systemd unit file target to network-online.target
6 years ago
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.
6 years ago
Erik Wilson
3af2618393
Fix systemd install not starting
6 years ago
Erik Wilson
fa673468ce
Add INSTALL_K3S_BIN_DIR_READ_ONLY variable
6 years ago
Erik Wilson
3543ba4b56
Only start service if something changed
6 years ago
Erik Wilson
6a80350dda
OpenRC install to BIN_DIR
6 years ago
Erik Wilson
100e2f6c2f
Provide INSTALL_K3S_SKIP_START environment variable
6 years ago
Erik Wilson
eabc1154b1
Add OpenRC support to installer
6 years ago
Erik Wilson
1bc7042bd5
Fix systemd TimeoutStartSec
...
Set TimeoutStartSec to 0 instead of infinity for systemd versions older
than 229.
6 years ago
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.
6 years ago
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.
6 years ago
Brandon Wulf
397ae335fd
Set the selinux context during the install ( #228 )
...
* Set the selinux context
6 years ago
Erik Wilson
e05964d1dd
Allow agent install
...
Modify the install script to allow defining arbitrary service names and
commands for k3s.
6 years ago
Darren Shepherd
0414f97c78
Revert "Enable systemd ready notification for k3s server"
...
This reverts commit c73e9187bb
.
6 years ago
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.
6 years ago
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.
6 years ago
Darren Shepherd
7d1baa919b
Remove wget
6 years ago
Darren Shepherd
f14a1ae2de
Bump to v0.1.0
6 years ago
Darren Shepherd
37caa68cce
Bump to rc8
6 years ago
Darren Shepherd
6602756aea
Bump scripts to rc6
6 years ago
Darren Shepherd
b07727ae24
Move default config location to /etc/rancher/k3s/k3s.yaml
6 years ago
Darren Shepherd
4e2d6c9b1c
Fix suffix for arm
6 years ago
Darren Shepherd
263722ccf2
Add install script for get.k3s.io
6 years ago