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

added example to host a static website on GCS and containerized backend on MIG #1023

Closed
wants to merge 3 commits into from

Conversation

annamuscarella
Copy link
Contributor

Added an example that creates a load balancer which serves a static frontend hosted on GCS and containerized NodeJS backend hosted on a MIG.

@pull-request-size pull-request-size bot added the size/XL Denotes a PR that changes 500-999 lines. label May 8, 2023
Copy link
Contributor

@shakeebshams shakeebshams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs some changes


## Create the A record for your domain

From the outputs, copy the IP address of the newly created load balancer. Register a new A record with yoru domain provider. The domain must be an exact match to the one you set as variable before running the script.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
From the outputs, copy the IP address of the newly created load balancer. Register a new A record with yoru domain provider. The domain must be an exact match to the one you set as variable before running the script.
From the outputs, copy the IP address of the newly created load balancer. Register a new A record with your domain provider. The domain must be an exact match to the one you set as variable before running the script.

small nit


Authenticate against Artifact Registry:

`gcloud auth configure-docker REGION.pkg.dev`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

based off of https://cloud.google.com/artifact-registry/docs/docker/authentication#:~:text=run%20the%20command%3A-,gcloud,-auth%20configure%2Ddocker

The line should read

Suggested change
`gcloud auth configure-docker REGION.pkg.dev`
`gcloud auth configure-docker REGION-docker.pkg.dev`

[Service]
Environment="HOME=/home/nginx"
ExecStartPre=/usr/bin/docker-credential-gcr configure-docker --registries REGION-docker.pkg.dev
ExecStart=/usr/bin/docker run --rm --name webserver -p 80:80 /usr/bin/docker run --rm --name webserver -p 80:80 REGION.pkg.dev/gPROJECT_ID/image-repo/webserver:v1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intended for the /usr/bin/docker run --rm --name webserver -p 80:80 to run twice on this line

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@annamuscarella If you can resolve the suggestions, I can probably get this merged for you.

@agold-rh
Copy link
Contributor

Closed as stale. Please re-open if I'm wrong.

@agold-rh agold-rh closed this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XL Denotes a PR that changes 500-999 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants