File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -635,9 +635,7 @@ if ! ibmcloud ce pds get --name fleet-input-store >/dev/null 2>&1; then
635635fi
636636
637637
638- print_msg " \nCreating the Code Engine subnetpool 'fleet-subnetpool' ..."
639- create_or_update=update
640-
638+ print_msg " \nCreating the Code Engine subnetpools 'fleet-subnetpool' ..."
641639if ! ibmcloud ce connectivity subnetpool get --name fleet-subnetpool > /dev/null 2>&1 ; then
642640 security_group_crn=" $( ibmcloud is security-group ${vpc_name} -group --output json | jq -r ' .crn' ) "
643641 ibmcloud ce connectivity subnetpool create --name fleet-subnetpool \
@@ -648,6 +646,15 @@ if ! ibmcloud ce connectivity subnetpool get --name fleet-subnetpool >/dev/null
648646 --subnet-crn key_3=" $( ibmcloud is subnet ${vpc_name} -subnet-3 --output json | jq -r ' .crn' ) " \
649647 --security-group-crn key_3=" ${security_group_crn} "
650648fi
649+ for i in {1..3}
650+ do
651+ if ! ibmcloud ce connectivity subnetpool get --name fleet-subnetpool-zone-$i > /dev/null 2>&1 ; then
652+ security_group_crn=" $( ibmcloud is security-group ${vpc_name} -group --output json | jq -r ' .crn' ) "
653+ ibmcloud ce connectivity subnetpool create --name fleet-subnetpool-zone-$i \
654+ --subnet-crn key=" $( ibmcloud is subnet ${vpc_name} -subnet-$i --output json | jq -r ' .crn' ) " \
655+ --security-group-crn key=" ${security_group_crn} "
656+ fi
657+ done
651658
652659print_msg " \nCreating the Code Engine default secret 'codeengine-fleet-defaults' with observability and VPC subnet configurations ..."
653660create_or_update=update
You can’t perform that action at this time.
0 commit comments