Skip to content

nataliagranato/granato_iac-magalu-kubernetes

 
 

Repository files navigation

terraform-mgc-k8s-module

Terraform Workflow Verify Terraform code with tfsec

flowchart TD;
	subgraph Terraform
		data.mgc_kubernetes_cluster_kubeconfig.cluster["data.mgc_kubernetes_cluster_kubeconfig.cluster"]
		local_file.kubeconfig["local_file.kubeconfig"]
		mgc_kubernetes_cluster.cluster_with_nodepool["mgc_kubernetes_cluster.cluster_with_nodepool"]
		mgc_kubernetes_nodepool.gp1_small["mgc_kubernetes_nodepool.gp1_small"]
		time_sleep.wait_15_minutes["time_sleep.wait_15_minutes"]
		time_sleep.wait_for_cluster["time_sleep.wait_for_cluster"]
		data.mgc_kubernetes_cluster_kubeconfig.cluster --> time_sleep.wait_for_cluster
		local_file.kubeconfig --> data.mgc_kubernetes_cluster_kubeconfig.cluster
		mgc_kubernetes_nodepool.gp1_small --> time_sleep.wait_15_minutes
		time_sleep.wait_15_minutes --> mgc_kubernetes_cluster.cluster_with_nodepool
		time_sleep.wait_for_cluster --> mgc_kubernetes_cluster.cluster_with_nodepool
	end
Loading

Requirements

Name Version
local 2.5.1

Providers

Name Version
local 2.5.1
mgc 0.21.1
time 0.12.0

Modules

No modules.

Resources

Name Type
local_file.kubeconfig resource
mgc_kubernetes_cluster.cluster_with_nodepool resource
mgc_kubernetes_nodepool.gp1_small resource
time_sleep.wait_15_minutes resource
time_sleep.wait_for_cluster resource
mgc_kubernetes_cluster_kubeconfig.cluster data source

Inputs

Name Description Type Default Required
cluster_description Descrição do Cluster string "Um cluster de Kubernetes gerenciado pela Magalu Cloud." no
cluster_name Nome do Cluster string "nataliagranato" no
kubernetes_version Versão do Kubernetes string "v1.28.5" no
nodepool_flavor Flavor do Nodepool string "cloud-k8s.gp1.small" no
nodepool_name Nome do Nodepool string "nataliagranato" no
nodepool_replicas Número de Réplicas do Nodepool number 1 no
timer_duration Duração do Timer string "15m" no

Outputs

Name Description
cluster_id n/a
cluster_name n/a

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 66.9%
  • Dockerfile 33.1%