This collections of playbooks/HCL files will permits you to deploy easily microshift on a cloud provider
- Ansible >= 2.10
- Terraform >= 1.2.6
- oc >= 4.8
- podman >= 4.1.1
- libvirt >= 8.0.0
- jq
$ ansible-galaxy install -r requirements.ymlExport HCLOUD_TOKEN
$ export HCLOUD_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxDeploy microshift
$ ansible-playbook deploy_microshift.yml -e provider=hetznerDownload Fedora CoreOS
$ FCOS_URL=$(curl -s https://builds.coreos.fedoraproject.org/streams/stable.json | jq -r '.architectures.x86_64.artifacts.qemu.formats."qcow2.xz"'.disk.location)
$ curl -s ${FCOS_URL} | xzcat > fcos-latest.qcow2Deploy microshift
$ ansible-playbook deploy_microshift.yml -e provider=libvirtExport KUBECONFIG
$ export KUBECONFIG=../kubeconfigValidate deployment
$ oc get po -APods should all be in
Runningstate
$ ansible-playbook deploy_microshift.yml -e tf_state=absent -e provider=<provider>