Improve cluster definition examples in docs
This commit is contained in:
parent
39876e455f
commit
455a4af27e
21
README.md
21
README.md
|
@ -47,26 +47,25 @@ module "google-cloud-yavin" {
|
||||||
source = "git::https://github.com/poseidon/typhoon//google-cloud/container-linux/kubernetes?ref=v1.9.6"
|
source = "git::https://github.com/poseidon/typhoon//google-cloud/container-linux/kubernetes?ref=v1.9.6"
|
||||||
|
|
||||||
providers = {
|
providers = {
|
||||||
google = "google.default"
|
google = "google.default"
|
||||||
local = "local.default"
|
local = "local.default"
|
||||||
null = "null.default"
|
null = "null.default"
|
||||||
template = "template.default"
|
template = "template.default"
|
||||||
tls = "tls.default"
|
tls = "tls.default"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Google Cloud
|
# Google Cloud
|
||||||
|
cluster_name = "yavin"
|
||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
dns_zone = "example.com"
|
dns_zone = "example.com"
|
||||||
dns_zone_name = "example-zone"
|
dns_zone_name = "example-zone"
|
||||||
os_image = "coreos-stable"
|
|
||||||
|
|
||||||
cluster_name = "yavin"
|
# configuration
|
||||||
controller_count = 1
|
|
||||||
worker_count = 2
|
|
||||||
ssh_authorized_key = "ssh-rsa AAAAB3Nz..."
|
ssh_authorized_key = "ssh-rsa AAAAB3Nz..."
|
||||||
|
asset_dir = "/home/user/.secrets/clusters/yavin"
|
||||||
# output assets dir
|
|
||||||
asset_dir = "/home/user/.secrets/clusters/yavin"
|
# optional
|
||||||
|
worker_count = 2
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
21
docs/aws.md
21
docs/aws.md
|
@ -105,20 +105,19 @@ module "aws-tempest" {
|
||||||
template = "template.default"
|
template = "template.default"
|
||||||
tls = "tls.default"
|
tls = "tls.default"
|
||||||
}
|
}
|
||||||
|
|
||||||
cluster_name = "tempest"
|
|
||||||
|
|
||||||
# AWS
|
# AWS
|
||||||
dns_zone = "aws.example.com"
|
cluster_name = "tempest"
|
||||||
dns_zone_id = "Z3PAABBCFAKEC0"
|
dns_zone = "aws.example.com"
|
||||||
controller_count = 1
|
dns_zone_id = "Z3PAABBCFAKEC0"
|
||||||
controller_type = "t2.medium"
|
|
||||||
worker_count = 2
|
|
||||||
worker_type = "t2.small"
|
|
||||||
ssh_authorized_key = "ssh-rsa AAAAB3Nz..."
|
|
||||||
|
|
||||||
# bootkube
|
# configuration
|
||||||
asset_dir = "/home/user/.secrets/clusters/tempest"
|
ssh_authorized_key = "ssh-rsa AAAAB3Nz..."
|
||||||
|
asset_dir = "/home/user/.secrets/clusters/tempest"
|
||||||
|
|
||||||
|
# optional
|
||||||
|
worker_count = 2
|
||||||
|
worker_type = "t2.medium"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -190,11 +190,12 @@ module "bare-metal-mercury" {
|
||||||
matchbox_http_endpoint = "http://matchbox.example.com"
|
matchbox_http_endpoint = "http://matchbox.example.com"
|
||||||
container_linux_channel = "stable"
|
container_linux_channel = "stable"
|
||||||
container_linux_version = "1632.3.0"
|
container_linux_version = "1632.3.0"
|
||||||
ssh_authorized_key = "ssh-rsa AAAAB3Nz..."
|
|
||||||
|
|
||||||
# cluster
|
# configuration
|
||||||
cluster_name = "mercury"
|
cluster_name = "mercury"
|
||||||
k8s_domain_name = "node1.example.com"
|
k8s_domain_name = "node1.example.com"
|
||||||
|
ssh_authorized_key = "ssh-rsa AAAAB3Nz..."
|
||||||
|
asset_dir = "/home/user/.secrets/clusters/mercury"
|
||||||
|
|
||||||
# machines
|
# machines
|
||||||
controller_names = ["node1"]
|
controller_names = ["node1"]
|
||||||
|
@ -212,9 +213,6 @@ module "bare-metal-mercury" {
|
||||||
"node2.example.com",
|
"node2.example.com",
|
||||||
"node3.example.com",
|
"node3.example.com",
|
||||||
]
|
]
|
||||||
|
|
||||||
# output assets dir
|
|
||||||
asset_dir = "/home/user/.secrets/clusters/mercury"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -100,19 +100,18 @@ module "digital-ocean-nemo" {
|
||||||
tls = "tls.default"
|
tls = "tls.default"
|
||||||
}
|
}
|
||||||
|
|
||||||
region = "nyc3"
|
# Digital Ocean
|
||||||
dns_zone = "digital-ocean.example.com"
|
cluster_name = "nemo"
|
||||||
|
region = "nyc3"
|
||||||
|
dns_zone = "digital-ocean.example.com"
|
||||||
|
|
||||||
cluster_name = "nemo"
|
# configuration
|
||||||
image = "coreos-stable"
|
|
||||||
controller_count = 1
|
|
||||||
controller_type = "s-2vcpu-2gb"
|
|
||||||
worker_count = 2
|
|
||||||
worker_type = "s-1vcpu-1gb"
|
|
||||||
ssh_fingerprints = ["d7:9d:79:ae:56:32:73:79:95:88:e3:a2:ab:5d:45:e7"]
|
ssh_fingerprints = ["d7:9d:79:ae:56:32:73:79:95:88:e3:a2:ab:5d:45:e7"]
|
||||||
|
asset_dir = "/home/user/.secrets/clusters/nemo"
|
||||||
# output assets dir
|
|
||||||
asset_dir = "/home/user/.secrets/clusters/nemo"
|
# optional
|
||||||
|
worker_count = 2
|
||||||
|
worker_type = "s-1vcpu-1gb"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -108,18 +108,17 @@ module "google-cloud-yavin" {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Google Cloud
|
# Google Cloud
|
||||||
|
cluster_name = "yavin"
|
||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
dns_zone = "example.com"
|
dns_zone = "example.com"
|
||||||
dns_zone_name = "example-zone"
|
dns_zone_name = "example-zone"
|
||||||
os_image = "coreos-stable"
|
|
||||||
|
|
||||||
cluster_name = "yavin"
|
# configuration
|
||||||
controller_count = 1
|
|
||||||
worker_count = 2
|
|
||||||
ssh_authorized_key = "ssh-rsa AAAAB3Nz..."
|
ssh_authorized_key = "ssh-rsa AAAAB3Nz..."
|
||||||
|
asset_dir = "/home/user/.secrets/clusters/yavin"
|
||||||
# output assets dir
|
|
||||||
asset_dir = "/home/user/.secrets/clusters/yavin"
|
# optional
|
||||||
|
worker_count = 2
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -47,26 +47,25 @@ module "google-cloud-yavin" {
|
||||||
source = "git::https://github.com/poseidon/typhoon//google-cloud/container-linux/kubernetes?ref=v1.9.6"
|
source = "git::https://github.com/poseidon/typhoon//google-cloud/container-linux/kubernetes?ref=v1.9.6"
|
||||||
|
|
||||||
providers = {
|
providers = {
|
||||||
google = "google.default"
|
google = "google.default"
|
||||||
local = "local.default"
|
local = "local.default"
|
||||||
null = "null.default"
|
null = "null.default"
|
||||||
template = "template.default"
|
template = "template.default"
|
||||||
tls = "tls.default"
|
tls = "tls.default"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Google Cloud
|
# Google Cloud
|
||||||
|
cluster_name = "yavin"
|
||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
dns_zone = "example.com"
|
dns_zone = "example.com"
|
||||||
dns_zone_name = "example-zone"
|
dns_zone_name = "example-zone"
|
||||||
os_image = "coreos-stable"
|
|
||||||
|
|
||||||
cluster_name = "yavin"
|
# configuration
|
||||||
controller_count = 1
|
|
||||||
worker_count = 2
|
|
||||||
ssh_authorized_key = "ssh-rsa AAAAB3Nz..."
|
ssh_authorized_key = "ssh-rsa AAAAB3Nz..."
|
||||||
|
asset_dir = "/home/user/.secrets/clusters/yavin"
|
||||||
# output assets dir
|
|
||||||
asset_dir = "/home/user/.secrets/clusters/yavin"
|
# optional
|
||||||
|
worker_count = 2
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue