Initial Implementation of KUBECONFIG

This commit is contained in:
2024-10-19 23:12:20 -03:00
parent a390e8a785
commit 95eba14975
5 changed files with 59 additions and 56 deletions

View File

@@ -118,7 +118,7 @@ resource "aws_instance" "worker" {
instance_market_options {
market_type = "spot"
spot_options {
max_price = 0.0014
max_price = 0.0017
instance_interruption_behavior = "stop"
spot_instance_type = "persistent"
}
@@ -166,14 +166,12 @@ output "pool_master_public_ip" {
}
output "pool_master_instance" {
value = [
{
host: aws_instance.main.public_ip
port: 22
user: "ubuntu"
private_key: tls_private_key.terraform_ssh_key.private_key_pem
}
]
value = {
host: aws_instance.main.public_ip
port: 22
user: "ubuntu"
private_key: tls_private_key.terraform_ssh_key.private_key_pem
}
}
output "pool_worker_instances" {