Commit graph

151 commits

Author SHA1 Message Date
Xan Manning
848a5457ff Add option for unsupported single node with database backend. Issue #27 2020-05-30 15:16:20 +01:00
Xan Manning
6090071982 Bugfix, issue with HA build for joining new nodes 2020-05-25 17:57:43 +01:00
Xan Manning
23ba527bc2 Bugfix, broke clustering with v1.6.2 2020-05-25 17:11:45 +01:00
Xan Manning
9524b07df0 Fix joining nodes to an existing cluster 2020-05-25 16:25:09 +01:00
Xan Manning
141b6f2018 Numerous bug fixes to do with permissions and regressions.
Fix issue #25, check k3s_bind_address for readiness check
Fix issue #24, become for tasks that require root
2020-05-20 19:55:33 +01:00
Xan Manning
5ce8dec6ff Added the ability to set k3s_release_version as a release channel 2020-05-18 20:45:48 +01:00
Xan Manning
e3301a59e4 Updated state tasks to dynamic include rather thn static import
This is an initial attempt to address issue #22, I have also included a
task to drain the node before deleting it.
2020-05-18 19:53:03 +01:00
Xan Manning
02e12e61a8 Bugfix: minimum version for secrets encryption reverted 2020-05-17 20:43:39 +01:00
Xan Manning
b42ffade29 Fixes to variable checks 2020-05-17 11:40:53 +01:00
Xan Manning
26467de186 Unknown issue with k3s-uninstall.sh exiting with 1.
The script looks to be completing without error in my testing as well as
in the original issue so I am forcing an exit with 0 until the cause can
be found.

Fixes #23
2020-05-16 21:19:48 +01:00
Xan Manning
aa1a0a9620 Added option to provision multiple standalone k3s
Fixes #21
2020-05-16 20:18:20 +01:00
Xan Manning
9b8cf85489
Merge pull request #20 from nolte/fix/permissions-fail
add permission become check
2020-05-10 18:26:56 +01:00
nolte
df44053349 add a permission check for write the systemd k3s config 2020-05-09 21:07:34 +02:00
Xan Manning
681cd981ab Updated README.md to remove compulsory become:true 2020-04-24 12:06:18 +01:00
Xan Manning
c5a8f03b35
Merge pull request #19 from SimonHeimberg/become
variables to activate become for some actions
2020-04-24 12:04:23 +01:00
SimonHeimberg
acedb08a1f variables to activate become for some steps 2020-04-22 16:42:45 +02:00
Xan Manning
bcb81e7c7d
Merge pull request #18 from t-nelis/readme-racher-typo
Fix typo in README: "Racher" -> "Rancher"
2020-04-09 13:15:14 +01:00
Thibault Nélis
9bace4a62f Fix typo in README: "Racher" -> "Rancher" 2020-04-08 23:58:20 +02:00
Xan Manning
e93b438ee0 Added secrets encryption at rest option 2020-03-28 12:58:58 +00:00
Xan Manning
f684f6d907 A retry has been added to task controlling secondary master startup.
Fixes #17

There appeared to be a race condition where starting all secondary
masters all at once would cause the k3s service to fail on a number of
the other masters. A retry has been added to the task to attempt to
bring them all up until they stop failing.
2020-03-07 16:15:41 +00:00
Xan Manning
f709caf371 Skip final checks when no-flannel option is used.
Fixes #16

This is because without a CNI, nodes will never be ready and the task
will fail. You need to deploy your choice of CNI manually (such as
Calico) then check the state of the cluster using `kubectl get nodes`.
2020-03-07 14:23:09 +00:00
Xan Manning
2c09d4711b
Merge pull request #15 from PyratLabs/tidy_up_additional_validation
Variable check for local storage path
2020-02-28 07:39:33 +00:00
Xan Manning
9dcfa954f9 Variable check for local storage path 2020-02-27 20:10:28 +00:00
Xan Manning
554fada914
Merge pull request #14 from PyratLabs/carpenike-master
Carpenike master
2020-02-27 20:10:00 +00:00
Xan Manning
12d01c2a60 Added tests and variable validation 2020-02-27 18:46:59 +00:00
Xan Manning
84bf657f1c Merge branch 'master' of github.com:carpenike/ansible-role-k3s into carpenike/master 2020-02-27 18:16:49 +00:00
Xan Manning
241dc24d59
Merge pull request #11 from onedr0p/state-uninstall
Add state-uninstalled
2020-02-27 07:54:11 +00:00
Ryan Holt
3f6ce99369
rephrase option to cloud controller
Signed-off-by: Ryan Holt <ryan@ryanholt.net>
2020-02-26 21:17:51 -05:00
Ryan Holt
db96168491
added example for kubelet_args in README
Signed-off-by: Ryan Holt <ryan@ryanholt.net>
2020-02-26 21:16:52 -05:00
Ryan Holt
c473f932c4
added kubelet args key
Signed-off-by: Ryan Holt <ryan@ryanholt.net>
2020-02-26 18:03:08 -05:00
Xan Manning
56b2d7bc03 Fixed path in k3s-uninstall.sh - my bad 2020-02-26 21:52:56 +00:00
Xan Manning
75fd17aac8 Slightly updated tasks and added validation checks
1. Now does not remove prerequisite packages, lvm2 was included in
these packages (not good when you use LVM2 for real).
  2. Added a bit more idempotency to the shell scripts - only delete if
it exists.
  3. Check that the process isn't running and binaries are gone.
2020-02-26 20:56:05 +00:00
Devin Buhl
5f7ff27f17
Fix 301 lint issue in uninstall-docker-amazon 2020-02-25 15:42:40 -05:00
Devin Buhl
a1e52fb660
fixed 301 lint issue in uninstall-k3s.yml 2020-02-25 15:41:29 -05:00
Devin Buhl
e7c787e10f
Fix other lint issue 2020-02-25 15:25:23 -05:00
Devin Buhl
8d0ee69012
Fix other yaml lint issue 2020-02-25 15:08:17 -05:00
Devin Buhl
fd7498303d
Fix first YAML lint issue 2020-02-25 15:07:05 -05:00
Devin Buhl
be85c9ccc5 state uninstalled 2020-02-25 12:39:34 -05:00
Devin Buhl
9bbf5fd746 add uninstall state 2020-02-25 12:29:39 -05:00
Devin Buhl
c4547306ce
add option to specify local storage path (#10) 2020-02-25 08:48:09 +00:00
Xan Manning
31debb2f5d Fix Travis-CI build 2020-02-22 14:33:12 +00:00
Xan Manning
f82f90aae0 Clearer licensing, included LICENSE.txt 2020-02-22 12:34:35 +00:00
Xan Manning
5517671477
Merge pull request #9 from PyratLabs/feature_better_checksum
Feature better checksum
2020-02-10 20:42:10 +00:00
Xan Manning
1f19e2b302 Updated flannel backend flag checks 2020-02-09 16:03:41 +00:00
Xan Manning
218b9d64c9 Slightly more robust selection of checksum from GitHub 2020-02-09 15:00:59 +00:00
Xan Manning
3da7599eab
Merge pull request #8 from jdmarble/master
Use correct checksums for arm downloads
2020-02-01 12:51:23 +00:00
James D. Marble
044ed5512c Use correct checksums for arm downloads
I attempted to install on arm64 and armhf. Both fail because the
[checksum filter](e07903a5cf/tasks/build/download-k3s.yml (L21))
finds the first line with "k3s". On the arm checksum files,
the first lines are for "k3s-airgap-images-arm64.tar" and "k3s-airgap-images-arm.tar"
so the wrong checksum is grabbed.

I attempted to fix this with a more specific filter:
`select('search', 'k3s'+k3s_arch_suffix)`.
This works for both arm architectures,
but fails for amd64 because the key is simply "k3s" and not "k3s-amd64".

The solution I settled on is not ideal for future proofing,
but works for now at least.
2020-01-31 21:10:55 -08:00
Xan Manning
e07903a5cf Fixed issue with SUSE docker installation 2020-01-21 22:33:11 +00:00
Xan Manning
04a92ee956 Reducing the number of tests in travis-ci for faster jobs 2020-01-19 16:49:21 +00:00
Xan Manning
927fd41036 Fixed dockerfile for high availability loadbalancer using HAProxy 2020-01-18 00:17:23 +00:00