Juju 2.5 beta1 due out real soon now will support Kubernetes bundles. This includes:
- deployment
- export-bundle
- diff-bundle
The feature landed in commit e204449 so you can also grab it early from the corresponding 2.5 edge snap once that builds.
A Kubernetes bundle is similar to a cloud bundle except for a few key differences:
-
bundle
keyword is set tokubernetes
(this is what denotes the bundle as a Kubernetes one) - use
scale
instead ofnum_units
- use
placement
instead ofto
(placement is a set of key/value pairs used as a node selector)
A small example to get started:
bundle: kubernetes
applications:
mariadb:
charm: cs:~wallyworld/mariadb-k8s
scale: 2
constraints: mem=1G
options:
dataset-size: 70%
storage:
database: 20M,mariadb-pv
gitlab:
charm: cs:~wallyworld/gitlab-k8s
placement: foo=bar
scale: 1
relations:
- - gitlab:mysql
- mariadb:server