Skip to content

ptsgr/terraform-openstack-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-openstack-kubernetes

Terraform module for deploy kubernetes infrastructure

This module use OpenStack API

To use the module you must enter the parameters

cloud_user_name = "your username"
cloud_user_pass = "your password"
cloud_auth_url    = "openstack url"
cloud_tenant_id ="openstack project name"
external_network_name = "external network name"
cloud_network_id = "internal network id"
cluster_VIP = "false" # default = false
#cluster_VIP is cluster virtual ip, by default use keepalived.

cluster_name = "cluster name"
vms_image_id = "image id"
vms_ssh_key = "ssh public key" # use for create key-pair

master_count = "master nodes count" # default = "1"
master_flavor_id = "master flavor id"

workers_count = "worker nodes count"
worker_flavor_id = "worker flavor id"

For HA scheme use parameters

cluster_VIP = "true" # default = false
master_count = "3"   # default = 1

This module returns

master_name
master_inter_ip
master_fip
workers_names
workers_fips