169163334 - Adds public ips to k8s nodes for internet access
Temporary fix. This should be replaced with a NAT GW (which I need MSFT to enable or fix the registry registration)
This commit is contained in:
parent
8ec23b54a8
commit
b98bc5953f
@ -15,11 +15,12 @@ resource "azurerm_kubernetes_cluster" "k8s" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
default_node_pool {
|
default_node_pool {
|
||||||
name = "default"
|
name = "default"
|
||||||
vm_size = "Standard_D1_v2"
|
vm_size = "Standard_D1_v2"
|
||||||
os_disk_size_gb = 30
|
os_disk_size_gb = 30
|
||||||
vnet_subnet_id = var.vnet_subnet_id
|
vnet_subnet_id = var.vnet_subnet_id
|
||||||
node_count = 1
|
node_count = 1
|
||||||
|
enable_node_public_ip = true # Nodes need a public IP for external resources. FIXME: Switch to NAT Gateway if its available in our subscription
|
||||||
}
|
}
|
||||||
|
|
||||||
lifecycle {
|
lifecycle {
|
||||||
|
@ -47,13 +47,14 @@ variable "route_tables" {
|
|||||||
type = map
|
type = map
|
||||||
default = {
|
default = {
|
||||||
public = "Internet"
|
public = "Internet"
|
||||||
private = "VnetLocal"
|
private = "Internet"
|
||||||
|
#private = "VnetLocal"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "dns_servers" {
|
variable "dns_servers" {
|
||||||
type = list
|
type = list
|
||||||
default = ["10.1.2.4", "10.1.2.5"]
|
default = []
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "k8s_node_size" {
|
variable "k8s_node_size" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user