Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Terraform config for Windows clusters #2046

Merged
merged 2 commits into from
Apr 15, 2021
Merged

Add Terraform config for Windows clusters #2046

merged 2 commits into from
Apr 15, 2021

Conversation

jeremyje
Copy link
Contributor

@jeremyje jeremyje commented Apr 2, 2021

What type of PR is this?
/kind feature

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind hotfix

What this PR does / Why we need it:
This enhances the Agones Terraform module to support Windows clusters.

To enable Windows support via Terraform you'll need to use the windowsInitialNodeCount and optionally the windowsMachineType variables.

NOTE: If Windows support is enabled then IP aliasing will be turned on for the cluster as well.

Example HCL module usage:

module "agones" {
  source = "../modules/gke"
  cluster = {
    project                 = "your-project-name-here"
    zone                    = "us-central1-a"
    windowsInitialNodeCount = "2"
    windowsMachineType      = "e2-standard-8"
  }
}

Which issue(s) this PR fixes:
This is for issue #54.

Special notes for your reviewer:
I'm not sure how this module is used and the expectations. Also is there tests that need to run?

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 803b7aed-f613-480b-9fee-e7db1da73da1

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2046/head:pr_2046 && git checkout pr_2046
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.14.0-4e7566e

@roberthbailey roberthbailey self-assigned this Apr 2, 2021
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: d012cafd-f5c6-4515-ba15-0dc486d2f7f5

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@jeremyje
Copy link
Contributor Author

/retest

@roberthbailey
Copy link
Member

Helm upgrade failed:

helm upgrade --install --atomic --namespace=agones-system \
	--create-namespace \
	--set agones.image.tag=1.14.0-d4e2013,agones.image.registry=gcr.io/agones-images \
	--set agones.image.controller.pullPolicy="Always",agones.image.sdk.alwaysPull=true \
	--set agones.image.controller.pullSecret= \
	--set agones.ping.http.serviceType="LoadBalancer",agones.ping.udp.serviceType="LoadBalancer" \
	--set agones.allocator.http.serviceType="LoadBalancer" \
	--set agones.controller.logLevel="debug" \
	--set agones.crds.cleanupOnDelete=true \
	--set agones.featureGates="" \
	--set agones.allocator.http.loadBalancerIP=34.105.5.159 \
	 \
	agones /go/src/agones.dev/agones/install/helm/agones/
Handling connection for 8500
Error: UPGRADE FAILED: release agones failed, and has been rolled back due to atomic being set: cannot patch "fleets.agones.dev" with kind CustomResourceDefinition:  "" is invalid: patch: Invalid value: ...
make: *** [install] Error 1
Makefile:324: recipe for target 'install' failed

@roberthbailey
Copy link
Member

Re-trying to see if the e2e cluster is borked.

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jeremyje, roberthbailey

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 9c78d447-7a22-439f-bd2a-1aa3fd1ed1f3

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@google-oss-robot
Copy link

New changes are detected. LGTM label has been removed.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: d8074dd1-df80-4f2f-8491-0dfd85097234

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel
Copy link
Member

Weird - getting issues with CRD patching. But there's been no updates to CRD for a while. Clearing the helm install and retrying the tests.

Error: UPGRADE FAILED: release agones failed, and has been rolled back due to atomic being set: cannot patch "fleets.agones.dev" with kind CustomResourceDefinition:  "" is invalid: patch: Invalid value: "map[metadata:map[labels:map[chart:agones-1.14.0-dev]] ....

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 0ce6062e-7d05-42be-a1b8-0981aabcd8e3

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel
Copy link
Member

Ah I found it. A Namespace got stuck and a CRD got disconnected from Helm somehow. Cleaning it all up.

@markmandel
Copy link
Member

I think this should be good now. Retrying.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 70c0e696-fa6f-4484-9492-ed9a4fbc3791

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@roberthbailey
Copy link
Member

This time it errored out on the sdk conformance tests:

Could not run Allocate(): RpcFailure: 14-UNAVAILABLE Socket closed. Exiting!
includes/sdk.mk:145: recipe for target 'run-sdk-conformance-no-build' failed
make[2]: *** [run-sdk-conformance-no-build] Error 1
make[1]: *** [run-sdk-conformance-test] Error 2
includes/sdk.mk:152: recipe for target 'run-sdk-conformance-test' failed
make: *** [run-sdk-conformance-test-rust] Error 2
includes/sdk.mk:168: recipe for target 'run-sdk-conformance-test-rust' failed
includes/sdk.mk:88: recipe for target 'run-sdk-command' failed
make[3]: *** [run-sdk-command] Error 1

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 6f61f9ca-ecc1-410e-ace0-b093c7bb3c4a

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: bd6fcab4-a608-486c-b5be-24ee602e4b38

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2046/head:pr_2046 && git checkout pr_2046
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.14.0-7742330

@markmandel markmandel merged commit 066e811 into googleforgames:main Apr 15, 2021
@markmandel markmandel added this to the 1.14.0 milestone Apr 15, 2021
@roberthbailey roberthbailey added area/operations Installation, updating, metrics etc kind/feature New features for Agones labels Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/operations Installation, updating, metrics etc cla: yes kind/feature New features for Agones size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants