Skip to content

Commit

Permalink
Change instance type to t2.medium
Browse files Browse the repository at this point in the history
On rhel t2.micro vm, antrea-agent installation
and setting up apache web server was exceeding the
timeout. So as a workaround, upgrading the instance
size

Signed-off-by: Anand Kumar <[email protected]>
  • Loading branch information
Anandkumar26 committed Dec 22, 2022
1 parent bca5a38 commit 6825a45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hack/terraform/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ variable owner {
}

variable aws_vm_type {
default = "t2.micro"
default = "t2.medium"
}

variable peer_vpc_id {
Expand Down
1 change: 1 addition & 0 deletions test/utils/cloud_provider_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func (p *awsVPC) Reapply(timeout time.Duration) error {
// Wait for servers on VMs come to live.
err = wait.Poll(time.Second*10, time.Second*600, func() (bool, error) {
for _, ip := range p.GetVMIPs() {
logf.Log.Info("Debug: Running curl", "ip", ip)
cmd := exec.Command("timeout", []string{"5", "curl", "http://" + ip}...)
if _, err = cmd.CombinedOutput(); err != nil {
return false, nil
Expand Down

0 comments on commit 6825a45

Please sign in to comment.