Skip to content

Commit

Permalink
Update docs & resources for GCP org migration (GoogleCloudPlatform#659)
Browse files Browse the repository at this point in the history
* Update release manifests for GCP org change

* Update release steps for GCP org migration

* Fix install-dependencies.sh

Co-authored-by: askmeegs <megan037@gmail.com>
  • Loading branch information
NimJay and askmeegs committed Dec 21, 2021
1 parent 7404e8a commit 2dfd53d
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: Ingress
metadata:
name: frontend-ingress
annotations:
kubernetes.io/ingress.global-static-ip-name: ob-global-ip
networking.gke.io/managed-certificates: ob-cert
kubernetes.io/ingress.global-static-ip-name: online-boutique-ip
networking.gke.io/managed-certificates: online-boutique-certificate
spec:
backend:
serviceName: frontend-nodeport
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: networking.gke.io/v1beta2
apiVersion: networking.gke.io/v1
kind: ManagedCertificate
metadata:
name: ob-cert
name: online-boutique-certificate
spec:
domains:
- onlineboutique.dev
15 changes: 15 additions & 0 deletions .github/workflows/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,21 @@ echo "✅ dotnet installed"
sudo apt-get install -yqq kubectl git
echo "✅ kubectl installed"

# install go
wget https://golang.org/dl/go1.17.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz
echo 'export GOPATH=$HOME/go' >> ~/.profile
echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' >> ~/.profile
source ~/.profile
echo "✅ golang installed"

# install build-essential (gcc, used for go test)
sudo apt install -y build-essential

# install addlicense
go install github.com/google/addlicense@latest
sudo ln -s $HOME/go/bin/addlicense /bin

# install build-essential (gcc, used for go test)
sudo apt install -y build-essential

Expand Down
9 changes: 5 additions & 4 deletions hack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,16 @@ export REPO_PREFIX=gcr.io/google-samples/microservices-demo

#### 8. Once your pull-request is approved, merge it.

#### 9. Connect to our [onlineboutique-master GKE cluster](https://pantheon.corp.google.com/kubernetes/clusters/details/us-central1-c/online-boutique-master/details?project=onlineboutique-ci)
#### 9. Connect to our [online-boutique-release GKE cluster](https://pantheon.corp.google.com/kubernetes/clusters/details/us-central1-c/online-boutique-release/details?project=online-boutique-ci)

- To do this, you can use:
```
gcloud container clusters get-credentials online-boutique-master \
--zone us-central1-c --project onlineboutique-ci
gcloud container clusters get-credentials online-boutique-release \
--zone us-central1-c --project online-boutique-ci
```

#### 10. Deploy `release/kubernetes-manifests.yaml` to our [onlineboutique-master GKE cluster](https://pantheon.corp.google.com/kubernetes/clusters/details/us-central1-c/online-boutique-master/details?project=onlineboutique-ci).
#### 10. Deploy `release/kubernetes-manifests.yaml` to our [online-boutique-release GKE cluster](https://pantheon.corp.google.com/kubernetes/clusters/details/us-central1-c/online-boutique-release/details?project=online-boutique-ci).


```
kubectl apply -f ./release/kubernetes-manifests.yaml
Expand Down

0 comments on commit 2dfd53d

Please sign in to comment.