Skip to content

descomplicando-terraform/granato_module-magalu-kubernetes

Repository files navigation

Módulo Terraform para criação de clusters Kubernetes na Magalu Cloud

Um módulo Terraform para a criação de clusters Kubernetes na Magalu Cloud.

Verificar código Terraform com tfsec

Como Usar

  1. Adicione o módulo ao seu arquivo main.tf:

    module "magalu_kubernetes_cluster" {
      source  = "github.com/descomplicando-terraform/granato_module-magalu-kubernetes?ref=v1.0.0"
      
      cluster_name        = "seu_cluster_name"
      cluster_description = "descrição do seu cluster"
      kubernetes_version  = "v1.28.5"
      nodepool_name       = "seu_nodepool_name"
      nodepool_flavor     = "cloud-k8s.gp1.small"
      nodepool_replicas   = 1
      timer_duration      = "15m"
    }

Requirements

Name Version
local 2.5.1

Providers

Name Version
local 2.5.1
mgc 0.27.1

Modules

No modules.

Resources

Name Type
local_file.kubeconfig resource
mgc_kubernetes_cluster.cluster resource
mgc_kubernetes_nodepool.nataliagranato resource
mgc_kubernetes_cluster_kubeconfig.cluster data source

Inputs

Name Description Type Default Required
cluster_description Cluster description string "A Kubernetes cluster managed by Magalu Cloud." no
cluster_name Cluster name string "mgc-cluster" no
kubernetes_version Kubernetes version string "v1.30.2" no
nodepool_flavor_name Nodepool flavor string "cloud-k8s.gp1.small" no
nodepool_name Nodepool name string "mgc-nodepool" no
nodepool_replicas Number of nodepool replicas number 1 no
timer_duration Timer duration string "15m" no

Outputs

Name Description
cluster_id n/a
cluster_name n/a