Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.09 KB

README.md

File metadata and controls

51 lines (37 loc) · 1.09 KB

k8s-deploy

Install steps:

  1. Clone this repo.
  2. Ensure you have ansible collections for terrform module.
  3. Ensure you have the right python requirements setup.

Install bits

$ 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

Getting OpenStack credentials

$ nova credentials

or

$ OS_CLOUD=<mycloud> openstack token issue

Setup the environment to run

$ 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

Building the cluster

$ 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