UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 36ac449b authored by joshwolf's avatar joshwolf
Browse files

Merge branch 'nightly' into 'master'

update nightly cluster to use latest n-1

See merge request platform-one/big-bang/bigbang!435
parents 6060cad7 1f0de5f8
No related branches found
No related tags found
1 merge request!435update nightly cluster to use latest n-1
Pipeline #227975 passed with warnings
...@@ -31,3 +31,12 @@ module "dev" { ...@@ -31,3 +31,12 @@ module "dev" {
public_subnets = data.terraform_remote_state.networking.outputs.public_subnets public_subnets = data.terraform_remote_state.networking.outputs.public_subnets
ssh_authorized_keys = [tls_private_key.ssh.public_key_openssh] ssh_authorized_keys = [tls_private_key.ssh.public_key_openssh]
} }
resource "aws_security_group_rule" "dev-ssh" {
from_port = 22
to_port = 22
protocol = "tcp"
security_group_id = module.dev.cluster_sg
type = "ingress"
cidr_blocks = ["0.0.0.0/0"]
}
\ No newline at end of file
...@@ -43,6 +43,11 @@ module "rke2" { ...@@ -43,6 +43,11 @@ module "rke2" {
controlplane_internal = var.controlplane_internal controlplane_internal = var.controlplane_internal
rke2_version = var.rke2_version rke2_version = var.rke2_version
rke2_config = <<EOF
disable:
- rke2-ingress-nginx
EOF
enable_ccm = var.enable_ccm enable_ccm = var.enable_ccm
download = var.download download = var.download
...@@ -106,4 +111,9 @@ resource "aws_ec2_tag" "private_subnets_tags" { ...@@ -106,4 +111,9 @@ resource "aws_ec2_tag" "private_subnets_tags" {
resource_id = var.private_subnets[count.index] resource_id = var.private_subnets[count.index]
key = "kubernetes.io/cluster/${module.rke2.cluster_name}" key = "kubernetes.io/cluster/${module.rke2.cluster_name}"
value = "shared" value = "shared"
}
output "cluster_sg" {
description = "Cluster SG ID, used for dev ssh access"
value = module.rke2.cluster_data.cluster_sg
} }
\ No newline at end of file
...@@ -47,8 +47,8 @@ variable "download" { ...@@ -47,8 +47,8 @@ variable "download" {
# Server variables # Server variables
# #
variable "server_ami" { variable "server_ami" {
# RHEL 8 RKE2 STIG: https://repo1.dso.mil/platform-one/distros/rancher-federal/rke2/rke2-image-builder # RHEL 8.3 RKE2 v1.20.5+rke2r1 STIG: https://repo1.dso.mil/platform-one/distros/rancher-federal/rke2/rke2-image-builder
default = "ami-09d02b6cbe719f221" default = "ami-017e342d9500ef3b2"
} }
variable "server_instance_type" { variable "server_instance_type" {
default = "m5a.large" default = "m5a.large"
...@@ -57,15 +57,15 @@ variable "servers" { ...@@ -57,15 +57,15 @@ variable "servers" {
default = 1 default = 1
} }
variable "rke2_version" { variable "rke2_version" {
default = "v1.18.12+rke2r2" default = "v1.20.5+rke2r1"
} }
# #
# Generic agent variables # Generic agent variables
# #
variable "agent_ami" { variable "agent_ami" {
# RHEL 8 RKE2 STIG: https://repo1.dso.mil/platform-one/distros/rancher-federal/rke2/rke2-image-builder # RHEL 8.3 RKE2 v1.20.5+rke2r1 STIG: https://repo1.dso.mil/platform-one/distros/rancher-federal/rke2/rke2-image-builder
default = "ami-09d02b6cbe719f221" default = "ami-017e342d9500ef3b2"
} }
variable "agent_instance_type" { variable "agent_instance_type" {
default = "m5a.4xlarge" default = "m5a.4xlarge"
......
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