Skip to content
Snippets Groups Projects
Commit 160fb46d authored by Rob Kooper's avatar Rob Kooper
Browse files

make kubeapi a variable

parent 238ff0ff
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ resource "openstack_networking_secgroup_rule_v2" "ingress_kubeapi" {
protocol = "tcp"
port_range_min = 6443
port_range_max = 6443
remote_ip_prefix = "141.142.0.0/16"
remote_ip_prefix = var.openstack_security_kubernetes
security_group_id = openstack_networking_secgroup_v2.cluster_security_group.id
depends_on = [openstack_networking_secgroup_v2.cluster_security_group]
}
......
......@@ -131,6 +131,12 @@ variable "openstack_zone" {
default = "nova"
}
variable "openstack_security_kubernetes" {
type = string
description = "IP address to allow connections to kube api port"
default = "141.142.0.0/16"
}
# ----------------------------------------------------------------------
# OPENSTACK NODES
# ----------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment