Create port for kubernetes nodes.
This commit is contained in:
parent
7a1bb687ed
commit
a7394b524a
11
kube.tf
Normal file
11
kube.tf
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
resource "openstack_networking_port_v2" "kubeport" {
|
||||
name = "kube${count.index + 1}-matrix-test-sunet-se-port"
|
||||
# We create as many ports as there are instances created
|
||||
count = ${kubesize} # size of cluster
|
||||
network_id = data.openstack_networking_network_v2.public.id
|
||||
# A list of security group ID
|
||||
#security_group_ids = [resource.openstack_networking_secgroup_v2.sshaccess.id, data.openstack_networking_secgroup_v2.defaultsg.id, resource.openstack_networking_secgroup_v2.pgserver.id ]
|
||||
admin_state_up = "true"
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
data "openstack_networking_subnet_v2" "public_sub" {
|
||||
name = "public-v4" # Name of subnet to be used
|
||||
data "openstack_networking_network_v2" "public" {
|
||||
name = "public" # Name of network to use.
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue