Open SpamapS opened 7 years ago
Note this is an upstream issue now too https://github.com/cncf/demo/issues/198
Some notes as I hack on this more...
Regardless of what happens with using the demo repo for testing, it would benefit from getting support for provisioning demo nodes on an openstack cloud, it would at least allow us openstack nerds to play with it in the short-term. I have some code to do that by wrapping ansible in the cncfdemo-cli thing, that I'll push it up somewhere and link here
The demo repo currently contains some bare-bones ansible that gets used to build centos k8s host images using packer. I started wrapping this in DIB and porting to Ubuntu but found https://github.com/kubernetes/contrib/tree/master/ansible which looks a lot more complete and supports building by source. Buiding images with source checkouts of k8s/etc is the first step to pre-merge testing. DIB makes it really easy to prepare source checkouts, not sure about Packer. I think the demo's image building should be consuming that upstream ansible and, in the future, voting on changes to it.
Been chatting a bit (via github issues) with the people working on the cncf-demo. It sounds like the building, provisioning and deployment of the underlying k8s is just a means to an end, and we may be better off trying to provide a k8s cluster as a nodepool multinode label. They're in the process of moving the provisioning stuff to terraform, so in theory openstack support could be baked into that, thought I admit Terraform is not something I know much about.
Blocked on requirement for v3 auth system to spin up other cloud resources.
https://github.com/cncf/demo doesn't work with OpenStack. CNCF is looking at deploying that demo as a way to do cross-repo CI. If we wanted it to work with BonnyCI, we likely need to make sure the demo can install across multiple OpenStack nodes, and we may need to feed it credentials for the OpenStack cloud it is deployed in too.