Skip to content

HadadAvsha/k8s-with-Ansible-Terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up k8s cluster using Ansible and Terraform in Proxmox

Some prerequisite:

  1. install proxmox and setup requirement for terraform.
  2. create init-cloud image using this guide and install this before capturing.
  3. clone repo and create new terraform.tfvars and enter the following info:
    • proxmox_user = proxmox username created in step 1
    • proxmox_password = proxmox password created in step 1
    • ssh_key_path = ssh key location for ansible to manage created VMs.
  4. in variables.tf change values
  5. in main.tf enter the correct ip range (@ipconfig0 section)
  6. in ansible folder:
    • if you setup NFS share uncomment the corresponding line in all_pre.yml and SC-openEBS.yml
    • for use of load balancer in k8s uncomment the MetalLB.sh and change the values in the cidr_block line and ingress lines
  7. terraform init > terraform plan > terraform apply.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published