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

Unknown subnet 10.200.0.0/16 causing ERROR while creating firewall rules #760

Open
apoorv-chaudhary opened this issue Feb 9, 2024 · 1 comment

Comments

@apoorv-chaudhary
Copy link

apoorv-chaudhary commented Feb 9, 2024

Hi,
Beginner here following the guide Provisioning Compute Resources

Following the steps of creating the VPC,
gcloud compute networks create kubernetes-the-hard-way --subnet-mode custom

and then creating a subnet,
gcloud compute networks subnets create kubernetes \ --network kubernetes-the-hard-way \ --range 10.240.0.0/24

the step to create internal firewall rules (below) fails because there is another subnet in the source ranges:
gcloud compute firewall-rules create kubernetes-the-hard-way-allow-internal \ --allow tcp,udp,icmp \ --network kubernetes-the-hard-way \ --source-ranges 10.240.0.0/24,10.200.0.0/16

The command above fails with the following message:
ERROR: (gcloud.compute.firewall-rules.create) unrecognized arguments: 10.200.0.0/16] To search the help text of gcloud commands, run: gcloud help -- SEARCH_TERMS

Didn't see any other mention of the 10.200.0.0/16 subnet before this point. Not sure if I missed something.

@tzujui
Copy link

tzujui commented Jun 24, 2024

Hi @apoorv-chaudhary I have the same question when I walkthrough the lab. The cluster CIDR range is mentioned in an older commit of the 3rd lab. a9cb5f7#diff-da1cd405cb4576bc83a993eccecff98de30acec2ba1f560c6bcb9adfb504e035L121
In the latest code, it's mentioned in the controller manager's unit file a9cb5f7#diff-b3f8a18dcc3baf86b82f34f69caf1aa08e18fb6c670d798a743bc5ac05d81d58R8
In your case, I think it might be a formatting error with the \
Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants