Skip to content

Commit 9f22f2e

Browse files
authored
Pull nomulus cluster credentials from the fleet (#2643)
After private endpoint is enabled, we cannot pull the credentials directly via `gcloud containers cluster get-credentials`.
1 parent 45c8b81 commit 9f22f2e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jetty/deploy-nomulus-for-env.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
# kills all running pods to force k8s to create new pods using the just-pushed
1818
# manifest.
1919

20+
# Abort on error.
21+
set -e
22+
2023
if [[ $# -ne 2 ]]; then
2124
echo "Usage: $0 alpha|crash|qa [base_domain]}"
2225
exit 1
@@ -30,8 +33,7 @@ while read line
3033
do
3134
parts=(${line})
3235
echo "Updating cluster ${parts[0]} in location ${parts[1]}..."
33-
gcloud container clusters get-credentials "${parts[0]}" \
34-
--project "${project}" --location "${parts[1]}"
36+
gcloud container fleet memberships get-credentials "${parts[0]}" --project "${project}"
3537
for service in frontend backend pubapi console
3638
do
3739
sed s/GCP_PROJECT/"${project}"/g "./kubernetes/nomulus-${service}.yaml" | \

0 commit comments

Comments
 (0)