zuul-jobs/roles/ensure-kubernetes/defaults/main.yaml
Ian Wienand 99678c46e0 ensure-kubernetes: add microk8s support
Add microk8s support to the ensure-kubernetes role.  This installs via
a snap, and is currently only implemented for Ubuntu Jammy.

Mostly this is a straight-forward installation.  I did notice though
it needs a little more time to be stable in the test, so the timeout
is bumped slightly.

microk8s is the Ubuntu "blessed" way of doing things.  This should be
a better choice for Ubuntu platforms, because minikube is tightly tied
to cri-o, which is only packaged through kubic, which is currently in
some sort of deprecated but best-effort supported mode [1].  This was
inspired by an outage where the kubic gpg expired.  This appears fixed
now.

[1] https://kubic.opensuse.org/blog/2022-06-10-kubic-retired/

Change-Id: Id3e31c70a35dde218e35e7c50964f8a3c0348150
2023-01-08 08:05:40 -08:00

15 lines
509 B
YAML

ensure_kubernetes_type: minikube
ensure_kubernetes_microk8s_channel: 'latest/stable'
# NOTE(ianw) : 2022-12-13
# - "storage" is deprecated and has become "hostpath-storage" in
# >1.24, but we still need to support 1.23. If it really goes away
# we might need to switch on the channel name
ensure_kubernetes_microk8s_addons:
- dns
- storage
install_kubernetes_with_cluster: True
minikube_version: latest
minikube_dns_resolvers: []
ensure_kubernetes_minikube_addons: []
kubernetes_runtime: docker