OpenStack Terraform Practice / Kubernetes Environment Setup
1. Practice and Setup Environment
![[Figure 1] OpenStack Terraform Practice and Setup Environment](/blog-software/docs/record/openstack-terraform-kubernetes-setting/images/environment.png)
[Figure 1] OpenStack Terraform Practice and Setup Environment
[Figure 1] shows the Kubernetes environment to be built on OpenStack using Terraform. This was performed in an environment where External Network, external-router, and Ubuntu 18.04 Image were pre-created.
- Terraform: 0.12.5
- Node: Ubuntu 18.04
- OpenStack: Stein
- User, Tenant, Password: admin
- Auth URL:
- Network:
- Internal Network: Kubernetes Network, 30.0.0.0/24
- Flavor:
- Standard: 4 vCPU, 4GB RAM, 30GB Disk
2. Terraform Installation
(Deploy)$ apt-get update
(Deploy)$ apt-get install wget unzip
(Deploy)$ wget https://releases.hashicorp.com/terraform/0.12.5/terraform-0.12.5-linux-amd64.zip
(Deploy)$ unzip ./terraform-0.12.5-linux-amd64.zip -d /usr/local/bin/Install Terraform.
3. Terraform Configuration
| |
| |
| |
| |
| |
| |
| |
Create [File 1 ~ 7]. [File 1,2] must be changed according to the OpenStack environment.
4. Terraform Apply and Initialize
(Deploy)$ cd ~/terraform
(Deploy)$ terraform init
(Deploy)$ terraform applyApply Terraform.
(Deploy)$ cd ~/terraform
(Deploy)$ terraform destroyInitialize Terraform.