Skip to content
Discussion options

You must be logged in to vote

Thanks to the suggestions by @zifeo, I was able to get it working with these resources in a new terraform project (not the one creating the cluster):

data "openstack_networking_secgroup_v2" "rke2_cluster_server" {
  name = "rke2-cluster-server" // change this to the name of your secgroup (based on the name of the cluster)
}

resource "openstack_networking_secgroup_rule_v2" "ingress_http" {
  direction         = "ingress"
  ethertype         = "IPv4"
  protocol          = "tcp"
  port_range_min    = 80
  port_range_max    = 80
  remote_ip_prefix  = "0.0.0.0/0"
  security_group_id = data.openstack_networking_secgroup_v2.rke2_cluster_server.id
}

resource "openstack_networking_secgroup_rule_v2"

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@UncleSamSwiss
Comment options

Comment options

You must be logged in to vote
1 reply
@zifeo
Comment options

Comment options

You must be logged in to vote
7 replies
@zifeo
Comment options

@UncleSamSwiss
Comment options

@UncleSamSwiss
Comment options

@zifeo
Comment options

@UncleSamSwiss
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by zifeo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants