Add k8sw1 to rook and remove k8sc3 from deployment.

This commit is contained in:
Magnus Andersson 2024-10-21 17:40:24 +02:00
parent 5aef290639
commit f8fc2ab777
Signed by: mandersson
GPG key ID: 1F7C896B34B28164
3 changed files with 11 additions and 3 deletions

View file

@ -13,6 +13,7 @@ resource "openstack_networking_port_v2" "kubecport" {
data.openstack_networking_secgroup_v2.sshfromjumphosts.id, data.openstack_networking_secgroup_v2.sshfromjumphosts.id,
data.openstack_networking_secgroup_v2.allegress.id, data.openstack_networking_secgroup_v2.allegress.id,
resource.openstack_networking_secgroup_v2.microk8s.id, resource.openstack_networking_secgroup_v2.microk8s.id,
resource.openstack_networking_secgroup_v2.microk8s-dco.id,
resource.openstack_networking_secgroup_v2.https.id resource.openstack_networking_secgroup_v2.https.id
] ]
admin_state_up = "true" admin_state_up = "true"
@ -35,7 +36,8 @@ resource "openstack_compute_instance_v2" "controller-nodes" {
security_groups = [ security_groups = [
data.openstack_networking_secgroup_v2.sshfromjumphosts.name, data.openstack_networking_secgroup_v2.sshfromjumphosts.name,
data.openstack_networking_secgroup_v2.allegress.name, data.openstack_networking_secgroup_v2.allegress.name,
resource.openstack_networking_secgroup_v2.microk8s.name, resource.openstack_networking_secgroup_v2.microk8s.id,
resource.openstack_networking_secgroup_v2.microk8s-dco.id,
resource.openstack_networking_secgroup_v2.https.name resource.openstack_networking_secgroup_v2.https.name
] ]
block_device { block_device {

View file

@ -42,8 +42,14 @@ variable "workerdcreplicas" {
default = "2" default = "2"
} }
# Replicas per datacenter
variable "controllerdcreplicas" {
default = "2"
}
variable "controller_instance_count" { variable "controller_instance_count" {
default = "3" default = "2"
} }
variable "controller_instance_type" { variable "controller_instance_type" {

View file

@ -239,7 +239,7 @@ spec:
storage: # cluster level storage configuration and selection storage: # cluster level storage configuration and selection
useAllNodes: false useAllNodes: false
nodes: nodes:
# - name: k8sw1 - name: k8sw1
- name: k8sw2 - name: k8sw2
- name: k8sw3 - name: k8sw3
- name: k8sw4 - name: k8sw4