DEV Community

Said Olano
Said Olano

Posted on

How to apply Terraform to deploy your Spring Boot apps to K8s

To apply Terraform to deploy your Spring Boot apps to K8s

Despliegue de Infraestructura # Navegar al directorio terraform cd terraform # Inicializar Terraform terraform init # Verificar configuración terraform validate # Generar plan terraform plan -out=tfplan # Ver resumen de cambios (opcional) terraform show -json tfplan | ConvertFrom-Json | Select-Object -ExpandProperty resource_changes | ForEach-Object { "$($_.change.actions): $($_.type).$($_.name)" } # Aplicar infraestructura (15-20 minutos aproximadamente) terraform apply tfplan # O aplicar directamente: terraform apply -auto-approve 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)