Skip to content

Commit

Permalink
Fix terraform module structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsgr committed Apr 20, 2020
1 parent 1065fbc commit afd4488
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 105 deletions.
39 changes: 16 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,31 @@
## Terraform module for deploy kubernetes infrastructure
This module use OpenStack API

## For using run:
```bash
git clone https://github.com/ptsgr/terraform-openstack-kubernetes.git
cd terraform-openstack-kubernetes
terraform init # for update dependence
terraform apply # for run module
```
## To use the module you must enter the parameters
```bash
TF_VAR_cloud_user_name = "your username"
TF_VAR_cloud_user_pass = "your password"
TF_VAR_cloud_auth_url = "openstack url"
TF_VAR_cloud_tenant_id ="openstack project name"
TF_VAR_external_network_name = "external network name"
TF_VAR_cloud_network_id = "internal network id"
TF_VAR_cluster_VIP = "false" # default = false
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.

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

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

TF_VAR_workers_count = "worker nodes count"
TF_VAR_worker_flavor_id = "worker flavor id"
workers_count = "worker nodes count"
worker_flavor_id = "worker flavor id"
```
## For HA scheme use parameters
```bash
TF_VAR_cluster_VIP = "true" # default = false
TF_VAR_master_count = "3" # default = 1
cluster_VIP = "true" # default = false
master_count = "3" # default = 1
```
## This module returns
```bash
Expand Down
1 change: 0 additions & 1 deletion create-k8s-infra/README.md

This file was deleted.

64 changes: 0 additions & 64 deletions create-k8s-infra/variables.tf

This file was deleted.

17 changes: 0 additions & 17 deletions create_infra.tf

This file was deleted.

File renamed without changes.
File renamed without changes.

0 comments on commit afd4488

Please sign in to comment.