1
0
mirror of https://github.com/ubuntu/microk8s.git synced 2021-05-23 02:23:41 +03:00

81 Commits

Author SHA1 Message Date
Konstantinos Tsakalozos
b6acffb66f In lxc detect boot from /proc/1 stats (#2270)
* In lxc detect boot from /proc/1 stats

* Fix style checks
2021-05-18 09:11:55 +03:00
Konstantinos Tsakalozos
f53908083d Do not re-issue certificates on clusters (#2217) 2021-05-05 08:30:38 +03:00
Karl-Philipp Richter
6486a5bcc2 Fix yaml output of microk8s.status if not running (#2148)
Fix #2147

Signed-off-by: Karl-Philipp Richter <krichter@posteo.de>
2021-04-22 12:55:34 +03:00
Konstantinos Tsakalozos
41fe39b2cb Improved handling of joining cases (#2151) 2021-04-07 23:22:21 +03:00
Konstantinos Tsakalozos
35f1bf589a Ensure we display the token we wrote when joining (#2150) 2021-04-07 23:22:00 +03:00
Konstantinos Tsakalozos
3e38ac4011 inspect script should check for kubelite (#2073) 2021-03-08 09:47:31 -05:00
Konstantinos Tsakalozos
32b833ff3d Verify the cert of the master node to join (#1263) 2021-03-04 11:04:02 +02:00
Konstantinos Tsakalozos
1603084d2b Build microk8s for armhf and other architectures (#2048)
Build etcd from source

Co-authored-by: angelnu <git@angelnu.com>
2021-02-24 20:16:35 +02:00
Konstantinos Tsakalozos
5c36496e9d Pull CA_CERTS from core18 (#2046) 2021-02-24 17:08:51 +02:00
Konstantinos Tsakalozos
2f38d961c6 Move to core18 2021-02-23 13:11:48 +02:00
Merlijn Sebrechts
820950b1d4 fix instructions for joining microk8s group and cleanup build docs (#2021)
* suggest safe path for reloading group membership

* Suggest changing ownership of ~/.kube when joining microk8s group

* cleanup build docs
2021-02-17 15:12:53 +02:00
Konstantinos Tsakalozos
116b29cbbe Fix: in non-ha cluster etcd with kubelite (#2018) 2021-02-17 11:11:43 +02:00
Konstantinos Tsakalozos
3bf4a27202 With kubelite do not inspect control-plane-kicker (#1994) 2021-02-09 09:05:32 -05:00
Kenneth Koski
2bb8258baf Rewriting Kubeflow addon (#1953) 2021-02-05 21:00:16 +02:00
Joe Borg
77d9c88653 Enforce double quotes with Black (#1968) 2021-02-04 22:25:27 +02:00
Konstantinos Tsakalozos
de81008d3d Kubelite, consolidate k8s services (#1918) 2021-02-03 22:08:09 +02:00
Kenneth Koski
8d0b9e5d6c Fix subprocess calls in xable scripts (#1929)
The click wrapper was ignoring the exit status from addons that it
wrapped.
2021-01-26 11:10:23 +02:00
Konstantinos Tsakalozos
3c905f24f9 Fix typos in the project (#1878) 2021-01-13 16:05:25 +02:00
Peter Somogyvari
bf11ab5831 fix(inspect): calico interface ufw name check (#1858)
Change the check in the inspect script to
look for rules for vxlan.calico instead of cni0
which seems to be the interface that
Calico creates for itself when in VXLAN mode.

Fixes #1712

Signed-off-by: Peter Somogyvari <peter.metz@unarin.com>
2021-01-04 20:42:03 +02:00
Kenneth Koski
ba7660025d Switch microk8s enable/disable wrappers to Python script (#1782) 2020-12-08 10:20:57 +02:00
Konstantinos Tsakalozos
e63a30fd26 Revert "Switch microk8s enable wrapper to Python script (#1467)" (#1778)
This reverts commit a0ac699937.
2020-11-27 16:25:03 +02:00
Kenneth Koski
a0ac699937 Switch microk8s enable wrapper to Python script (#1467)
* Switch microk8s enable/disable wrappers to Python script

For now, they're just clones of the old bash scripts, with the ability
to handle unix-style flag arguments. Using click however, will allow
expanding the enable scripts to be full click subcommands, instead
of just bash scripts.
2020-11-26 14:27:29 +02:00
Konstantinos Tsakalozos
574ba3f1a7 Proper microk8s status msg when stopped (#1696) 2020-10-29 14:37:45 -04:00
Kenneth Koski
5e23ac6a00 Expand microk8s inspect debugging (#1670)
* Add Juju debugging to microk8s inspect

* Add kubeflow debugging to microk8s inspect
2020-10-26 15:07:16 +02:00
bowers
a29e69fb24 Fix help option for inspect command (#1641) 2020-10-16 12:34:44 +03:00
Konstantinos Tsakalozos
0ceb02fbd3 Do not fix dqlite permissions if dqlite is not enabled (#1573) 2020-09-23 09:08:15 +03:00
Konstantinos Tsakalozos
8e1367a23b Check machine hostname during inspection (#1562)
Co-authored-by: Nick Veitch <nick.veitch@canonical.com>
2020-09-14 21:07:16 +03:00
Konstantinos Tsakalozos
3784d89ff8 Fix upgrade from non-HA to HA (#1535) 2020-09-02 14:12:47 +03:00
Konstantinos Tsakalozos
6a398b5eb1 Make sure we reconfigure containerd and kubelet when moving cni bins (#1531) 2020-09-01 17:57:10 +03:00
Kenneth Koski
7c5607a6b6 Add flake8 to CI checks (#1482)
* Add flake8 to CI checks

black doesn't catch some things such as unused variables or trailing
spaces in docstrings, so add flake8 to the CI process.

flake8 and black disagree on a few things, and black is probably in the
right, at least according to pep8. So, add a few lint ignores, as in
https://github.com/psf/black/blob/master/docs/compatible_configs.md
2020-09-01 11:33:22 +03:00
Vladimir Grevtsev
00f57dfc84 Add memory cgroup check (#1501)
* Adding an additional check to ensure that memory
cgroup is explicitly enabled.

Co-authored-by: Konstantinos <kos.tsakalozos@canonical.com>
2020-08-31 15:50:17 +03:00
Kenneth Koski
e5f7ffe3cb Update formatting of files with black (#1516)
Current formatting is causing CI to fail
2020-08-28 11:13:36 +03:00
Konstantinos Tsakalozos
56a91115b4 Help calico autodetect routing paths (#1512) 2020-08-24 13:38:54 +03:00
Konstantinos Tsakalozos
43f701851a Bring your own CA (#1486) 2020-08-20 10:15:05 +03:00
Konstantinos Tsakalozos
7bb1b251af Feature: HA (#1208)
* First pass on microk8s enable

* Add pie chart to the grafana of prometheus operator

* Revert "Add pie chart to the grafana of prometheus operator"

This reverts commit 1c28dc6dec112d713f8257219be1ad3eb5424f8e.

* Handle distribute an operation across nodes (#1297)

* Handle dqlite and cluster agent ports on HA cluster

* Fix distributed ops on single node cluster (#1320)

* Start dqlite and calico by default

* Do not try to distribute configuration when cluster agent is stopped

* Dqlite without REST interface

* Remove the ha-cluster subcommand from status (#1374)

* Remove the ha-cluster subcommand from status

* fix enabling of dns when running HA. (#1403)

* Fix LXC deployments, umount kubelet when removing microk8s (#1424)

* Stopping control plane on HA (#1406)

* Change ownership of files under the dqlite path (#1429)

* Change ownership of files under the dqlite path

* Address review comments

* Add message in joining (#1452)

* Handle not reachable nodes (#1450)

* Fixes #1448 (#1457)

* microk8s.leave single leader guard (#1462)

* Fix cilium in an ha cluster (#1453)

* dbctl for dqlite backup and restore (#1435)

Co-authored-by: balchua <balchua@yahoo.com>
2020-08-20 10:14:32 +03:00
Justin Clark
03e403004e check for possible missing profile with vanilla LXD container (#1425)
* check for possible missing profile with vanilla LXD container
2020-07-23 13:11:45 +03:00
Justin Clark
c42aafa8d6 Bug/726 handle join with no parameters (#1421)
* check for no args in 'join' command

* handle ConnectionError message when trying to connect -- #726 comment
2020-07-21 14:16:17 +03:00
B Thomas
adfa069e77 Fix path to openssl (#1392)
* Fix path to openssl

Running microk8s on certain distributions such as Centos 7.4, resulted
in failure to execute openssl. This happend because the path to
openssl was not being correctly set within the snap. As a result
either no openssl was found or the worng one was selected leading
to linker relocation errors.

This commit fixes the issue by specifying the full path to openssl.

Co-authored-by: Balbir Thomas <balbir.thomas@canonical.com>
Co-authored-by: Konstantinos <kos.tsakalozos@canonical.com>
2020-07-09 14:47:44 +03:00
Kenneth Koski
c33cf75903 Add black to CI process (#1111)
* Enable code formatting check in CI

Checks that code has been properly formatted with black.

* Format code with Black
2020-06-09 15:39:11 +03:00
Konstantinos Tsakalozos
08e64e31fe No not inspect etcd and flannel when in HA mode (#1259) 2020-06-02 14:57:52 +03:00
Konstantinos
0f012e217b Use single admin token in cluster 2020-05-29 19:26:39 +03:00
Konstantinos
0ebb27bd0c Remove unused certs 2020-05-29 19:26:39 +03:00
Konstantinos
2b24e6feb4 Fix server certs 2020-05-29 19:26:39 +03:00
Konstantinos
46e61a79b3 improving the HA UX experience 2020-05-29 13:25:01 +03:00
Konstantinos
706e72e367 Use requests and not curl to delete node 2020-05-29 13:18:17 +03:00
Konstantinos
a665a651d4 Remove crashed nodes 2020-05-29 13:18:17 +03:00
balchua
033ee2d54c fix the get_token to loop through each line in the file. (#1225) 2020-05-25 10:13:09 +03:00
Joe Borg
afec975128 Adding dashboard-proxy command to MicroK8s snap... (#1198)
* Adding dashboard-proxy command to MicroK8s snap for parity with the Windows and MacOS wrappers

* Fix the build. Go get without building the master on runc and containerd


Co-authored-by: Konstantinos <kos.tsakalozos@canonical.com>
2020-05-19 17:27:32 +03:00
Konstantinos Tsakalozos
904d4ec7ec Have dqlite gracefully depart a cluster (#1186) 2020-05-12 08:54:07 +03:00
Shashi Ranjan
98a2bfeae1 Doc fixes and minor code improvement (#1185) 2020-05-11 08:17:25 +03:00