-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial code to deploy core open match (#31)
* initial code to deploy core open match * Updated per suggestions and mapped to new folder structure * Updated README to include open match * Removed redundant namespace config
- Loading branch information
Showing
10 changed files
with
186 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# ./base/kustomization.yaml | ||
helmCharts: | ||
- name: open-match | ||
repo: https://open-match.dev/chart/stable | ||
version: 1.6.0 | ||
releaseName: open-match | ||
valuesInline: | ||
open-match-override: | ||
enabled: true | ||
open-match-customize: | ||
enabled: true | ||
evaluator: | ||
enabled: true | ||
|
||
resources: | ||
- open-match.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: open-match |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 2023 Google LLC All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
serviceAccount: projects/${PROJECT_ID}/serviceAccounts/cloudbuild-cicd@${PROJECT_ID}.iam.gserviceaccount.com | ||
steps: | ||
- name: gcr.io/google.com/cloudsdktool/cloud-sdk | ||
entrypoint: gcloud | ||
args: | ||
[ | ||
"deploy", "releases", "create", "${_RELEASE_NAME}", | ||
"--delivery-pipeline", "global-game-open-match-deploy-pipeline", | ||
"--region", "us-central1" | ||
] | ||
substitutions: | ||
_RELEASE_NAME: rel-0002 | ||
options: | ||
logging: CLOUD_LOGGING_ONLY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# ./kustomization.yaml | ||
resources: | ||
- base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: skaffold/v2beta29 | ||
kind: Config | ||
deploy: | ||
kustomize: | ||
paths: | ||
- "." | ||
buildArgs: ["--enable-helm"] | ||
flags: | ||
apply: ['--server-side'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
resource "google_container_cluster" "game-demo-open-match-gke" { | ||
name = var.open-match_gke_config.cluster_name | ||
location = var.open-match_gke_config.location | ||
|
||
network = google_compute_network.vpc.name | ||
subnetwork = google_compute_subnetwork.subnet[var.open-match_gke_config.location].name | ||
|
||
# See issue: https://github.com/hashicorp/terraform-provider-google/issues/10782 | ||
ip_allocation_policy {} | ||
|
||
# Enabling Autopilot for this cluster | ||
enable_autopilot = true | ||
|
||
# Private IP Config | ||
private_cluster_config { | ||
enable_private_nodes = true | ||
enable_private_endpoint = false | ||
} | ||
|
||
depends_on = [google_compute_subnetwork.subnet, google_project_service.project] | ||
} | ||
|
||
data "google_container_cluster" "game-demo-open-match-gke" { | ||
name = var.open-match_gke_config.cluster_name | ||
location = var.open-match_gke_config.location | ||
|
||
depends_on = [google_container_cluster.game-demo-open-match-gke] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters