Created
September 24, 2019 03:29
-
-
Save JeffLabonte/ed4d518b9031fb66858e0a26c95a4584 to your computer and use it in GitHub Desktop.
Saved from https://github.com/kelseyhightower/kubernetes-the-hard-way/blob/master/docs/03-compute-resources.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud compute networks create kubernetes-the-hard-way --subnet-mode custom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud compute networks subnets create kubernetes \ | |
--network kubernetes-the-hard-way \ | |
--range 10.240.0.0/24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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