Minor updates
This commit is contained in:
parent
a14066a8d8
commit
1654b7c0cd
16
k8s-infra.tf
16
k8s-infra.tf
@ -36,7 +36,7 @@ resource "aws_security_group" "k8s" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_instance" "controlplane" {
|
resource "aws_instance" "controlplane" {
|
||||||
ami = "ami-0ee415e1b8b71305f"
|
ami = "ami-0fd8802f94ed1c969"
|
||||||
associate_public_ip_address = true
|
associate_public_ip_address = true
|
||||||
instance_type = "t3.large"
|
instance_type = "t3.large"
|
||||||
key_name = "overseer.ligthert.net"
|
key_name = "overseer.ligthert.net"
|
||||||
@ -44,10 +44,10 @@ resource "aws_instance" "controlplane" {
|
|||||||
Name = "controlplane"
|
Name = "controlplane"
|
||||||
}
|
}
|
||||||
root_block_device {
|
root_block_device {
|
||||||
volume_size = "128"
|
volume_size = "64"
|
||||||
volume_type = "gp2"
|
volume_type = "gp2"
|
||||||
}
|
}
|
||||||
user_data = "yum update -y"
|
#user_data = "sudo apt-get update -y; sudo apt-get upgrade -y"
|
||||||
vpc_security_group_ids = [aws_security_group.k8s.id]
|
vpc_security_group_ids = [aws_security_group.k8s.id]
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ output "controlplane_public_ip" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
output "controlplane_private_ip" {
|
output "controlplane_private_ip" {
|
||||||
value = aws_instance.controlplane.private_ip
|
value = aws_instance.controlplane.private_ip
|
||||||
}
|
}
|
||||||
|
|
||||||
output "controlplane_instance_id" {
|
output "controlplane_instance_id" {
|
||||||
@ -64,7 +64,7 @@ output "controlplane_instance_id" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_instance" "node" {
|
resource "aws_instance" "node" {
|
||||||
ami = "ami-0ee415e1b8b71305f"
|
ami = "ami-0fd8802f94ed1c969"
|
||||||
associate_public_ip_address = true
|
associate_public_ip_address = true
|
||||||
instance_type = "t3.large"
|
instance_type = "t3.large"
|
||||||
key_name = "overseer.ligthert.net"
|
key_name = "overseer.ligthert.net"
|
||||||
@ -72,10 +72,10 @@ resource "aws_instance" "node" {
|
|||||||
Name = "node"
|
Name = "node"
|
||||||
}
|
}
|
||||||
root_block_device {
|
root_block_device {
|
||||||
volume_size = "128"
|
volume_size = "64"
|
||||||
volume_type = "gp2"
|
volume_type = "gp2"
|
||||||
}
|
}
|
||||||
user_data = "yum update -y"
|
#user_data = "sudo apt-get update -y; sudo apt-get upgrade -y"
|
||||||
vpc_security_group_ids = [aws_security_group.k8s.id]
|
vpc_security_group_ids = [aws_security_group.k8s.id]
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ output "node_public_ip" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
output "node_private_ip" {
|
output "node_private_ip" {
|
||||||
value = aws_instance.node.private_ip
|
value = aws_instance.node.private_ip
|
||||||
}
|
}
|
||||||
|
|
||||||
output "node_instance_id" {
|
output "node_instance_id" {
|
||||||
|
Reference in New Issue
Block a user