Created
January 5, 2019 11:10
-
-
Save mlabouardy/b79def752430e7d36958025873982e85 to your computer and use it in GitHub Desktop.
Docker swarm port requirements in GCP
This file contains hidden or 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
| resource "google_compute_firewall" "swarm" { | |
| name = "swarm-firewall" | |
| network = "${google_compute_network.swarm.name}" | |
| allow { | |
| protocol = "icmp" | |
| } | |
| allow { | |
| protocol = "tcp" | |
| ports = ["22", "2377", "7946"] | |
| } | |
| allow { | |
| protocol = "udp" | |
| ports = ["7946", "4789"] | |
| } | |
| source_ranges = ["0.0.0.0/0"] | |
| } | |
| resource "google_compute_network" "swarm" { | |
| name = "swarm-network" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment