Skip to content

A fork of kubespray with a Rackspace OpenStack Public Cloud flavor

License

Notifications You must be signed in to change notification settings

os-pc/k8s-deploy

Repository files navigation

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

About

A fork of kubespray with a Rackspace OpenStack Public Cloud flavor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •