Description of change
initial work for bootstrapping into k8s (k8s template generation.).
Note: under development and currently only testing on microk8s
.
QA steps
- prepare microk8s and add as a juju cloud;
- bootstrapping;
console
$ juju bootstrap <microk8s-cloud> <controller-name>
</controller-name></microk8s-cloud>
- testing workloads;
console
$ juju add-model <model-name> <microk8s-cloud>
$ juju create-storage-pool mariadb-pv kubernetes storage-class=microk8s-hostpath
$ juju create-storage-pool operator-storage kubernetes storage-class=microk8s-hostpath
$ juju deploy cs:~juju/mariadb-k8s-0 --debug --storage database=500M,mariadb-pv
$ juju deploy cs:~juju/gitlab-k8s-0 --debug --config juju-external-hostname=127.0.0.1.xip.io
$ juju relate mariadb-k8s gitlab-k8s
</microk8s-cloud></model-name>
- monitoring status;
console
$ juju status --relations --color --storage --relations
$ mkubectl get all,pv,pvc,cm,po,secrets -o wide -n <model-name>
</model-name>
Documentation changes
Not ready yet.
Bug reference
None
该提问来源于开源项目:juju/juju