Created
May 5, 2019 22:12
-
-
Save kainlite/85185e39960765a189ee70b5c9489fea to your computer and use it in GitHub Desktop.
terraform load balancer
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
| # Create a load balancer associated with our cluster | |
| resource "digitalocean_loadbalancer" "public" { | |
| name = "loadbalancer-1" | |
| region = "nyc1" | |
| forwarding_rule { | |
| entry_port = 80 | |
| entry_protocol = "http" | |
| target_port = 30000 | |
| target_protocol = "http" | |
| } | |
| healthcheck { | |
| port = 30000 | |
| protocol = "tcp" | |
| } | |
| droplet_tag = "dev-k8s-nodes" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment