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

Add cloud nat template #429

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sourced-nan
Copy link

Cloud nat template for native nat service

resources = [
{
'name': context.env['name'],
# compute.v1.router seems to be doing the job though
Copy link
Member

Choose a reason for hiding this comment

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

https://cloud.google.com/compute/docs/reference/rest/v1/routers Managed NAT got GA, so itś part of compute.v1

'name': context.env['name'],
# compute.v1.router seems to be doing the job though
# doc says compute.beta has the NAT feature.
'type': 'compute.v1.router',
Copy link
Member

Choose a reason for hiding this comment

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

Can you please use gcp-types/compute-v1:routers as type, we are moving towards the GCP types.

[[ "$output" =~ "udpIdleTimeoutSec: 55" ]]
[[ "$output" =~ "/regions/us-east1/addresses/ip-${RAND}" ]]
}

Copy link
Member

Choose a reason for hiding this comment

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

Can you please add the test from HA NAT which actually creates an pivate instance and able to reach the internet?

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I would be happy to see an instance using the managed NAT ( and maybe one not using it) and verifying it's internet connectivity via SSH.

@ocsig ocsig self-requested a review April 16, 2019 07:16
@ocsig ocsig added cloud-foundations Cloud Foundation Toolkit development enhancement labels Apr 16, 2019
@morgante
Copy link

@sourced-nan Will you have a chance to incorporate Adam's feedback?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cloud-foundations Cloud Foundation Toolkit development enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants