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

67 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
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
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
77d9c88653 Enforce double quotes with Black (#1968) 2021-02-04 22:25:27 +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
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
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
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
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
f9f40a9d0f Multus CI tests fixes (#1593) 2020-09-23 12:19:45 +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
Konstantinos Tsakalozos
de16ce4f7e Disabling linkerd testing (#1523) 2020-08-27 18:13:24 +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
Konstantinos Tsakalozos
2f486d4e91 Re-enable knative testing (#1426) 2020-07-22 10:43:29 +03:00
Konstantinos Tsakalozos
585804f6bc Removing multus from arm64 (#1413) 2020-07-17 13:40:46 +03:00
Konstantinos Tsakalozos
73039c4623 Stop testing knative (#1411)
* Reposition ambassador

* Disable knative test

* Fix GH workflow
2020-07-16 23:14:19 +03:00
Siddharth Srinivasan
69040b715f Support for multiple IP Ranges in Metallb config (#1367) 2020-07-13 14:31:46 +03:00
Alvaro
8bfe7020d2 Support for Ambassador (#1318)
Support for Ambassador as an API Gateway and Ingress Controller.

Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
2020-07-10 09:47:03 +03:00
apnar
3248117d98 Add new add-on for Multus CNI (#1276)
* move default cni bin directory from SNAP to SNAP_DATA

* create multus add-on using daemonset

Co-authored-by: Konstantinos <kos.tsakalozos@canonical.com>
2020-06-30 12:15:07 +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
c256d7a007 Fixes for default track tan testing istio (#1238) 2020-05-27 11:25:21 +03:00
Hardik Jain
03626ae5c6 Upgrade istio to v1.5.1. (#1137)
Co-authored-by: Konstantinos <kos.tsakalozos@canonical.com>
2020-05-18 16:49:19 +03:00
Konstantinos Tsakalozos
2a9870a308 Build k8s binaries from source (#1102)
* Build k8s from source
* Init dqlite but do not use it
2020-04-16 10:39:34 +03:00
Joe Borg
575d4159df Pass through subcommands as if there were called directly (#1057) 2020-03-25 09:54:07 +02:00
balchua
1ce4147d63 disable all addons upon reset to have clean uninstall and doesnt hang. (#878)
* add argument when disabling storage to auto destroy storage.

* update pip3, and see if tests still fails.
2020-02-10 12:34:15 +02:00
balchua
b84db7514e use python3 for tests (#848) 2020-01-09 13:17:34 +02:00
Konstantinos Tsakalozos
528b83628a Disable kf testing (#804) 2019-11-15 10:16:50 -08:00
Konstantinos Tsakalozos
74dcd95eed kubeflow addon (#528) 2019-11-04 13:44:18 +02:00
Konstantinos Tsakalozos
da16cfabf3 Upgrade linkerd and ingress (#662)
* upgrade linkerd to v2.5.0
* Nginx ingress changes: upgrade to 0.25.1, remove default-http-backend, move to ingress namespace.  Linkerd update to v 2.5.0.

Co-authored-by: balchua <balchua@yahoo.com>
2019-09-20 21:16:55 +02:00
Konstantinos Tsakalozos
7f29bd12b8 Hacks to get knative 0.9.0 in 1.16 working (#660) 2019-09-20 11:09:54 +02:00
Konstantinos Tsakalozos
b9b7990a32 Knative not available yet in 1.16. Fixes in istio testing (#659) 2019-09-19 16:39:33 +02:00
Konstantinos Tsakalozos
7e353fc5fe Disabling linkerd on 1.16 untill the addon is fixed (#658) 2019-09-19 10:50:27 +02:00
Konstantinos Tsakalozos
6b800f2f63 Fix the reset wrapper - do a proper reset (#626) 2019-09-03 18:36:10 +03:00
Joe Stringer
6a5c9f299b Add helm, cilium addons (#594)
* Update sed commands to use ';' delimiter

The previous implementation which used '/' as the delimiter meant that
replacing lines in files that contain '/' (such as file paths) would
fail because the sed expression would be terminated earlier than
expected. Change it to use something that's less likely to cause trouble
when configuring config options.

The alternative is escaping in all of the users, which I opted to avoid
because there's already examples in the tree where plugins attempt to
use this function with paths, and also an upcoming commit will add an
additional example of this.

* Add helm addon

Create a helm addon which wraps around snap install to provide the
dependency for the upcoming Cilium addon.

Signed-off-by: Joe Stringer <joe@cilium.io>

* Refactor service shutdown function into utils.sh

Make this functionality a bit more generic to be shared with other
components.

Signed-off-by: Joe Stringer <joe@cilium.io>
2019-08-19 11:10:17 +03:00
Konstantinos Tsakalozos
b833e74d48 Fixes on knative addon enable and tests (#505)
* Fixes on knative addon enable and tests

* Do not run Istio and Knative tests when under time pressure
2019-06-14 11:19:31 +03:00
Ola Theander
8e44f3b12b Added support for Knative (#320) (#501) 2019-06-13 14:55:56 +03:00
Magne Rasmussen
0d46566813 RBAC addon (#329) 2019-05-15 17:04:18 +03:00
balchua
f83c6b0cac Feature - linkerd addon. (#352)
*  add linkerd addon.

* download linkerd during enable. to minimize the size of the snap binary. Also allow arguments to be passed during enabling of addon.

* delete all binaries in /bin during reset.

* delete binaries inside SNAP_DATA/bin during reset.

* check if SNAP_DATA/bin directory exist then delete the directory on reset.
2019-04-19 19:37:08 +03:00
Konstantinos Tsakalozos
dedbbab386 Skip tests under time presure 2019-03-12 16:36:29 +02:00