-
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.
Added Spanner Service Account, VPC additions, updated deploy instruct…
…ions, & re-arranged template files (#25) * Re-named template directory to better reflect usage * Added Spanner SA for application access * Added Cloud Router & NAT so GKE nodes can access container images outside of the local VPC * Added example nginx deploy to Spanner GKE cluster * Added instructions for running Spannerk GKE deploy * Re-named deploy directory to better match function
- Loading branch information
Showing
15 changed files
with
136 additions
and
9 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
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,37 @@ | ||
# 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/cloud-builders/gke-deploy" | ||
args: | ||
- run | ||
- --filename=spanner-system.yaml | ||
- --location=us-central1 | ||
- --cluster=global-game-gke-spanner | ||
- --output=output/spanner-deploy-us-central1-01 | ||
|
||
- name: gcr.io/google.com/cloudsdktool/cloud-sdk | ||
entrypoint: gcloud | ||
args: | ||
[ | ||
"deploy", "releases", "create", "${_RELEASE_NAME}", | ||
"--delivery-pipeline", "global-game-spanner-deploy-pipeline", | ||
"--region", "us-central1" | ||
] | ||
|
||
substitutions: | ||
_RELEASE_NAME: rel-0001 | ||
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,8 @@ | ||
# ./nginx/kustomization.yaml | ||
helmCharts: | ||
- name: nginx | ||
repo: https://charts.bitnami.com/bitnami | ||
releaseName: nginx | ||
version: 13.2.23 | ||
releaseName: example-web | ||
namespace: spanner |
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: | ||
- "./nginx" | ||
buildArgs: ["--enable-helm"] | ||
flags: | ||
apply: ['--server-side'] # Avoid the "Too long: must have at most 262144 bytes" problem |
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: spanner |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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