Skip to content

Instantly share code, notes, and snippets.

@JeffLabonte
Created September 24, 2019 03:29
Show Gist options
  • Save JeffLabonte/ed4d518b9031fb66858e0a26c95a4584 to your computer and use it in GitHub Desktop.
Save JeffLabonte/ed4d518b9031fb66858e0a26c95a4584 to your computer and use it in GitHub Desktop.
gcloud compute networks create kubernetes-the-hard-way --subnet-mode custom
gcloud compute networks subnets create kubernetes \
--network kubernetes-the-hard-way \
--range 10.240.0.0/24
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
gcloud compute firewall-rules create kubernetes-the-hard-way-allow-external \
--allow tcp:22,tcp:6443,icmp \
--network kubernetes-the-hard-way \
--source-ranges 0.0.0.0/0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment