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

132 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
e7eb2752ca Fix Ambassador tests for xip (#2243) 2021-05-06 14:35:01 +03:00
Konstantinos Tsakalozos
f53908083d Do not re-issue certificates on clusters (#2217) 2021-05-05 08:30:38 +03:00
Konstantinos Tsakalozos
9526eeda66 Do not use xip.io (#2227) 2021-05-04 12:24:55 +03:00
Konstantinos Tsakalozos
3d8210f98a Style fixes in installer comments (#2208) 2021-04-27 23:20:14 +03:00
Konstantinos Tsakalozos
233fa43a91 Fixes for Centos7 support (#2182)
Build runc in its own part and patch-elf it
Move a number of binaries into a patched-elf part
Add a centos7 test option (eg test-distro.sh images_centos-7 latest/edge latest/beta)
2021-04-22 11:03:54 +03:00
Konstantinos Tsakalozos
af19a2e0a7 Update knative to 0.21 (#2153) 2021-04-08 16:56:47 +03:00
Konstantinos Tsakalozos
56065515b3 Do not ship openfaas on arm64 (#2142) 2021-04-02 17:53:30 +03:00
balchua
b202883c75 [Feature] Include OpenEBS Addon (#2080)
Co-authored-by: Travis McHenry <me@travisjmchenry.com>
2021-03-16 10:26:53 +02:00
Konstantinos Tsakalozos
40b5a857e6 Simplify multus test (#2084) 2021-03-09 09:33:56 -05:00
Lucas Roesler
39730cc7c9 Add OpenFaaS addon (#1839)
**What**
- Create addon that installs openfaas using helm3. The user can
  toggle if the installation should enable basic auth and if
  it should install the operator mode instead of the standard
  controller.  All other settings can be controlled via an
  external values files that can be passed as a flag.

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>

Co-authored-by: Konstantinos Tsakalozos <kos.tsakalozos@canonical.com>
2021-02-25 12:11:59 +02:00
Joe Borg
697d2f721b Enforce YAML formatting (#1963) 2021-02-17 10:43:30 -05:00
Chris Sanders
ea79c78f79 Lint (#1988)
* Fix linting and switch to tox

Switched linting to tox
Added codspell to tox
Fixed black and codespell identified mistakes
2021-02-09 08:18:34 +02:00
Chris Sanders
58b95631be Add pytest based nodetest (#1825)
* Add pytest based nodetest

This brings install and upgrade testing up to parity with the bash based
test-distro. Also reorganize the testnode code into a module instead of
one large file. Finally fixed linting on all testnode code.

* Add the microk8s profile to testnode

* Add a test coefficient for adjusting timeouts globally on a test run

* Add a retry when accessing a service proxy

* Adding methods to configure Docker, including explicit way to set
storage driver to stop Docker failing under LXD

Co-authored-by: Joe Borg <joseph.borg@canonical.com>
2021-02-08 15:37:23 -06:00
Joe Borg
77d9c88653 Enforce double quotes with Black (#1968) 2021-02-04 22:25:27 +02:00
Konstantinos Tsakalozos
3c905f24f9 Fix typos in the project (#1878) 2021-01-13 16:05:25 +02:00
Konstantinos Tsakalozos
037835e93d Ensure microk8s is running before testing (#1809) 2020-12-11 15:43:17 +02:00
Konstantinos Tsakalozos
90ecdd44a7 Pass the bpf in the lxc test containers (#1808) 2020-12-11 14:44:52 +02:00
Konstantinos Tsakalozos
f022b0bb14 Adding sh to lxc template creation (#1806) 2020-12-11 11:05:17 +02:00
Konstantinos Tsakalozos
865b4e5c8d Fix istio and dns (#1803)
* Reset CNI

* Disable linkerd and ambassador addons

* Disable Travis
2020-12-10 18:34:14 +02:00
Konstantinos Tsakalozos
bf6b9934cd Reset at the end of the tests not on every test 2020-12-09 17:59:01 +02:00
Riya John
fa61b2272f Add resolv.conf to forward list in coredns (#1625) 2020-12-08 19:14:07 +02:00
Konstantinos Tsakalozos
bcc4607ac3 Adding KEDA test 2020-12-08 12:00:33 +02:00
Kenneth Koski
ba7660025d Switch microk8s enable/disable wrappers to Python script (#1782) 2020-12-08 10:20:57 +02:00
Konstantinos Tsakalozos
1c43243f01 Do not test the upgrade of cilium (#1795) 2020-12-07 20:37:41 +02:00
balchua
96482a0fc4 Include KEDA in addons. (#1759) 2020-12-07 19:40:23 +02:00
balchua
5a52ce29a7 Enable prometheus on arm arch. (#1781) 2020-12-07 17:29:05 +02:00
Chris Sanders
57d30d1abe Fix pytest dependency for xenial testing (#1776) 2020-12-01 09:26:12 +02:00
balchua
e2b47053a7 [Fix] Enable linkerd cli on arm architecture (#1779) 2020-12-01 09:21:05 +02:00
Kenneth Koski
d84a0235d8 Fix traefik typo (#1769) 2020-11-24 09:49:12 +02:00
balasu
2b88deeb5d for enabling traefik ingress controller (#1687)
Co-authored-by: Konstantinos Tsakalozos <kos.tsakalozos@canonical.com>
2020-11-18 12:45:41 +02:00
Konstantinos Tsakalozos
8a712c465e Shorten the upgrade path test from 1.16 to now (#1745) 2020-11-17 20:42:40 +02:00
balchua
b4e93d1051 update ingress, relocate to the new repository k8s.gcr.io (#1556) 2020-11-17 13:29:01 +02:00
balasu
3a464db0bf Portainer add-on (#1650) 2020-11-16 17:27:01 +02:00
balchua
cc7382862c upgrade linkerd 2.9.0 (#1734)
* upgrade linkerd.

Co-authored-by: Konstantinos Tsakalozos <kos.tsakalozos@canonical.com>
2020-11-16 15:06:51 +02:00
Konstantinos Tsakalozos
2db20fdfdb Use a more reliable network configuration for multus network (#1630) 2020-10-08 10:16:36 +03:00
Konstantinos Tsakalozos
c6b23f5870 Retry dqlite failed queries (#1624) 2020-10-05 22:03:48 +03:00
balchua
54ccad64b0 fix disabling prometheus. (#1599)
* allow to enable prometheus tests by setting environment variable.  want to test prometheus with travis or github actions.

* add time pressure disable for ambassador.
2020-10-02 14:20:32 +03:00
Konstantinos Tsakalozos
953afce6cd Run containerd unconfined (#1579) 2020-09-23 22:21:23 +03:00
Konstantinos Tsakalozos
f9f40a9d0f Multus CI tests fixes (#1593) 2020-09-23 12:19:45 +03:00
Konstantinos Tsakalozos
9583ddfce3 Multus tests impovements. Not run on upgrade. (#1571)
* Multus tests impovements. Not run on upgrade.

* install setuptools for black gh workflow
2020-09-16 13:23:19 +03:00
Konstantinos Tsakalozos
eb13f84b25 Fix cilium tests flakiness (#1532) 2020-09-01 23:28:50 +03:00
Konstantinos Tsakalozos
c37db744f2 Move the upgrade-path-test to run first (#1530)
* Move the upgrade-path-test to run first

* Do not remove and reset on travis to save time
2020-09-01 20:33:01 +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
Kenneth Koski
3b3abd6bb1 Build K8s binaries in separate build step (#1488)
* Build K8s binaries in separate build step

Since these don't rely on local source code changes other than what's
under build-scripts/, if we build these in a separate snapcraft part,
we won't have to rebuild them when making changes in most of the
codebase. Building these binaries currently takes the majority of the
time spent doing incremental rebuilds.
2020-08-28 15:02:52 +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
de16ce4f7e Disabling linkerd testing (#1523) 2020-08-27 18:13:24 +03:00
Konstantinos Tsakalozos
55bd40bcfd dqlite for 1.19 release (#1519)
* dqlite for 1.19 release

* Update go to 1.15

* Run test-upgrade-path last
2020-08-27 09:44:07 +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
balchua
30f71f6e64 Update MetalLB to v0.9.3 and add support for CIDR notation (#1434)
* support cidr format and upgrade metallb.

* update metallb version v0.9.3
2020-08-10 18:17:39 +03:00