Skip to content

Richardswe/terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Terraform

Different Terraform scripts that I've made :)

  • Create VM in Proxmox
  • Create network and k8s-cluster in OpenStack with the use of Magnum.

github: https://github.com/richardswe

Platforms


OpenStack In this case i used Binero. And Proxmox to provision VM's :)

Create Cluster

  1. First make sure you have setup Terraform properly installed on your local machine.
  2. Get your credential from you OpenStack provider, you will be asked to use them when running the Terraform plan.
  3. Due to some issues with the labels for the k8s template. Run the cli command

Openstack commands

Different OpenStack commands

List flavors

openstack flavor list

List internal or external networks

openstack network list --internal  

List images

openstack image list

List subnets

openstack subnet list

List availability zones

openstack availability zone list

Kubeconfig Connect to your cluster

To be able to connect to your newly created cluster, can we download the kube-config file from Horizon/Binero portal.

  1. Go in under CONTAINER INFRA, choose Cluster and then hover over to the right of the cluster you want to connect to, to the right choose more and then hämta certifcat.
  2. Download it and place it under /home/youruser/.kube/ Be sure to save your other kube-config files and make backups of them.

Author Information

Rickard Andersson

About

Different Terraform scripts that I've made :)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published