This repository holds the playbooks, scripts and templates for creating the infrastructure needed for the RTM.
In general, there are multiple ways how to bootstrap a Kubernetes cluster on OpenStack. The main difference lies between using a managed deployment option of self-deployment.
- Use an orchestration management service
- Magnum
- other options not explored are Rancher, Gardner
- Bootstrap with Kubespray
Each setup creates different API requests and flows, therefore it's necessary to investigate more than just one solution to further provide an understanding of which sources and likewise flows are relevant to the prototype.
The resources of this repository provide at least three different approaches to Cluster deployments on OpenStack. Some requirements are necessary for each solution. First, we need to install several tools required, create a ssh keypair and source the openrc.sh file to connect to the cloud.
OpenStack client documentation
Access project via command line
From Infomaniak Openstack Public Cloud 300 € free credits to be used within 3 months
- Create an API user
- Download the user RC-file
- Source RC-file
$ source <USER>--<REGION>--<PROJECT>--rc
# Generate key
ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_rsa.kubespray
# Launch an SSH Agent for the current shell
eval $(ssh-agent -s)
# Add generated key
ssh-add ~/.ssh/id_rsa.kubespray