Install steps:
- Clone this repo.
- Ensure you have ansible collections for terrform module.
- Ensure you have the right python requirements setup.
$ git clone [email protected]:os-pc/k8s-deploy.git
$ cd k8s-deploy
$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -r pip-requirements.txt
$ cd kubespray
$ ansible-galaxy collection install community.general
$ nova credentials
or
$ OS_CLOUD=<mycloud> openstack token issue
$ export OS_TENANT_ID='nova tenant id / openstack project_id'
$ export OS_USERNAME='nova username'
$ export OS_PASSWORD='user passwd' # temporarily required for the cloud provider acct must not have 2FA
$ export OS_AUTH_TOKEN='token id'
$ export OS_REGION_NAME='YOURPICK' # DFW, IAD, ORD, LON, SYD, HKG
$ ansible-playbook rax_cluster.yaml -vv
Optional flags to the rax_cluster.yaml
playbook:
-e pub_key_file=/path/to/ssh/public/key
allows you to set a different SSH key than$HOME/.ssh/id_rsa.pub