Skip to content

Instantly share code, notes, and snippets.

@kainlite
Created May 5, 2019 22:13
Show Gist options
  • Select an option

  • Save kainlite/18205b3ba693be054e2ea22832f4ecef to your computer and use it in GitHub Desktop.

Select an option

Save kainlite/18205b3ba693be054e2ea22832f4ecef to your computer and use it in GitHub Desktop.
terraform output
# Export the kubectl configuration file
resource "local_file" "kubernetes_config" {
content = "${digitalocean_kubernetes_cluster.dev-k8s.kube_config.0.raw_config}"
filename = "kubeconfig.yaml"
}
# Print the load balancer ip
output "digitalocean_loadbalancer" {
value = "${digitalocean_loadbalancer.public.ip}"
description = "The public IP address of the load balancer."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment