Este repositório utiliza o módulo granato_module-magalu-kubernetes
para fazer deploy de clusters Kubernetes na Magalu Cloud.
Este projeto é um módulo Terraform para a criação e gerenciamento de clusters Kubernetes na Magalu Cloud.
module "magalu_kubernetes_cluster" {
source = "github.com/descomplicando-terraform/granato_module-magalu-kubernetes?ref=v1.0.0"
cluster_name = var.cluster_name
cluster_description = var.cluster_description
kubernetes_version = var.kubernetes_version
nodepool_name = var.nodepool_name
nodepool_flavor = var.nodepool_flavor
nodepool_replicas = var.nodepool_replicas
timer_duration = var.timer_duration
}
Crie um arquivo de workflow GitHub Actions no diretório .github/workflows
. Por exemplo, main.yml
:
name: Deploy Kubernetes Cluster
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
- name: Initialize Terraform
run: terraform init
- name: Plan Terraform
run: terraform plan -out=tfplan
Name | Version |
---|---|
local | 2.5.2 |
mgc | 0.27.1 |
No providers.
Name | Source | Version |
---|---|---|
magalu_kubernetes_cluster | github.com/descomplicando-terraform/granato_module-magalu-kubernetes | v1.0.0 |
No resources.
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 |
Name | Description |
---|---|
cluster_id | n/a |
cluster_name | n/a |
Para mais detalhes, consulte o README do módulo.