在 AWS 上使用 Universal 安装工具的可替换管理节点
在 AWS 上使用 Universal 安装工具的可替换管理节点
Prerequisites
- Same as in .
- The account you’re using is able to create AWS buckets.
Fully Managed Replaceable Masters
provider "aws" {
# Change your default region here
region = "us-east-1"
}
# Used to determine your public IP for forwarding rules
data "http" "whatismyip" {
url = "http://whatismyip.akamai.com/"
}
source = "dcos-terraform/dcos/aws"
version = "~> 0.2.0"
providers = {
aws = "aws"
}
cluster_name = "my-dcos-demo"
ssh_public_key_file = "<path-to-public-key-file>"
admin_ips = ["${data.http.whatismyip.body}/32"]
num_masters = "3"
num_private_agents = "2"
num_public_agents = "1"
dcos_version = "1.13.3"
dcos_variant = "ee"
dcos_license_key_contents = "${file("./license.txt")}"
# Make sure to set your credentials if you do not want the default EE
# dcos_superuser_username = "superuser-name"
# dcos_superuser_password_hash = "${file("./dcos_superuser_password_hash.sha512")}"
with_replaceable_masters = true
}
output "cluster-address" {
value = "${module.dcos.masters-loadbalancer}"