Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/descomplicando-terraform/granato_module-magalu-kubernetes
- Owner: descomplicando-terraform
- License: gpl-3.0
- Created: 2024-07-31T22:51:32.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-12T08:12:20.000Z (about 2 months ago)
- Last Synced: 2024-11-30T12:34:01.008Z (28 days ago)
- Topics: kubernetes, magalucloud, mgc, terraform, terraform-module
- Language: HCL
- Homepage: https://nataliagranato.xyz
- Size: 184 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
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 |