Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 git@github.com: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

Stars

0 stars

Watchers

11 watching

Forks

Releases

Packages

Used by

Contributors

Languages