Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/descomplicando-terraform/granato_module-magalu-kubernetes

Um módulo Terraform para a criação de clusters Kubernetes na Magalu Cloud.
https://github.com/descomplicando-terraform/granato_module-magalu-kubernetes

kubernetes magalucloud mgc terraform terraform-module

Last synced: 13 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://github.com/descomplicando-terraform/granato_module-magalu-kubernetes/actions/workflows/tfscan.yml/badge.svg)](https://github.com/descomplicando-terraform/granato_module-magalu-kubernetes/actions/workflows/tfscan.yml)

## Como Usar

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

```hcl
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](#requirement\_local) | 2.5.1 |

## Providers

| Name | Version |
| ------------------------------------------------------- | ------- |
| [local](#provider\_local) | 2.5.1 |
| [mgc](#provider\_mgc) | 0.27.1 |

## Modules

No modules.

## Resources

| Name | Type |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| [local_file.kubeconfig](https://registry.terraform.io/providers/hashicorp/local/2.5.1/docs/resources/file) | resource |
| [mgc_kubernetes_cluster.cluster](https://registry.terraform.io/providers/magalucloud/mgc/latest/docs/resources/kubernetes_cluster) | resource |
| [mgc_kubernetes_nodepool.nataliagranato](https://registry.terraform.io/providers/magalucloud/mgc/latest/docs/resources/kubernetes_nodepool) | resource |
| [mgc_kubernetes_cluster_kubeconfig.cluster](https://registry.terraform.io/providers/magalucloud/mgc/latest/docs/data-sources/kubernetes_cluster_kubeconfig) | data source |

## Inputs

| Name | Description | Type | Default | Required |
| -------------------------------------------------------------------------------------------------- | --------------------------- | -------- | ------------------------------------------------- | :------: |
| [cluster\_description](#input\_cluster\_description) | Cluster description | `string` | `"A Kubernetes cluster managed by Magalu Cloud."` | no |
| [cluster\_name](#input\_cluster\_name) | Cluster name | `string` | `"mgc-cluster"` | no |
| [kubernetes\_version](#input\_kubernetes\_version) | Kubernetes version | `string` | `"v1.30.2"` | no |
| [nodepool\_flavor\_name](#input\_nodepool\_flavor\_name) | Nodepool flavor | `string` | `"cloud-k8s.gp1.small"` | no |
| [nodepool\_name](#input\_nodepool\_name) | Nodepool name | `string` | `"mgc-nodepool"` | no |
| [nodepool\_replicas](#input\_nodepool\_replicas) | Number of nodepool replicas | `number` | `1` | no |
| [timer\_duration](#input\_timer\_duration) | Timer duration | `string` | `"15m"` | no |

## Outputs

| Name | Description |
| -------------------------------------------------------------------------- | ----------- |
| [cluster\_id](#output\_cluster\_id) | n/a |
| [cluster\_name](#output\_cluster\_name) | n/a |