1
0
mirror of https://github.com/jcwimer/multi-cloud-kubernetes synced 2026-03-24 17:34:43 +00:00

Added asible to configure Kubernetes with RKE

This commit is contained in:
2020-07-02 16:57:29 -04:00
parent 4defd3a0b9
commit 0a6a7d03c7
19 changed files with 359 additions and 28 deletions

View File

@@ -23,6 +23,13 @@ resource "openstack_compute_secgroup_v2" "multicloud_ramnode" {
ip_protocol = "tcp"
cidr = "0.0.0.0/0"
}
rule {
from_port = 6443
to_port = 6443
ip_protocol = "tcp"
cidr = "0.0.0.0/0"
}
}
resource "openstack_compute_instance_v2" "ramnode-master" {
@@ -31,7 +38,7 @@ resource "openstack_compute_instance_v2" "ramnode-master" {
flavor_name = "2GB SKVM"
key_pair = "multicloud"
security_groups = [openstack_compute_secgroup_v2.multicloud_ramnode.name]
image_name = "Ubuntu 20.04 Server Cloud"
image_name = "Debian 10 Cloud"
user_data = data.template_file.user-data.rendered
network {
name = "Public"
@@ -49,7 +56,7 @@ resource "openstack_compute_instance_v2" "ramnode-worker" {
flavor_name = "2GB SKVM"
key_pair = "multicloud"
security_groups = [openstack_compute_secgroup_v2.multicloud_ramnode.name]
image_name = "Ubuntu 20.04 Server Cloud"
image_name = "Debian 10 Cloud"
user_data = data.template_file.user-data.rendered
network {
name = "Public"