Skip to content

Commit

Permalink
[rke] switch ro the new high-memory nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
rconway committed Oct 5, 2023
1 parent 810d8da commit c386d45
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Binary file modified kubernetes/cluster.7z
Binary file not shown.
14 changes: 14 additions & 0 deletions kubernetes/create-cluster-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ EOF
done
}

function worker_nodes_hm() {
worker_nodes_hm=$(terraform output -state=../creodias/terraform.tfstate -json | jq -r '.k8s_node_hm_ips.value[]' 2>/dev/null) || unset worker_nodes_hm
for node in $worker_nodes_hm
do
cat - <<EOF
- address: $node
user: eouser
role:
- worker
EOF
done
}

function bastion_host() {
bastion=$(terraform output -state=../creodias/terraform.tfstate -json | jq -r '.bastion_fips.value[]' 2>/dev/null) || unset bastion
cat - <<EOF
Expand All @@ -70,6 +83,7 @@ kubernetes_version: "${KUBERNETES_VERSION}"
nodes:
$(master_nodes)
$(worker_nodes)
$(worker_nodes_hm)
ingress:
provider: none
Expand Down

0 comments on commit c386d45

Please sign in to comment.