Improve cluster definition examples in docs
This commit is contained in:
parent
39876e455f
commit
455a4af27e
11
README.md
11
README.md
|
@ -55,18 +55,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..."
|
||||||
|
|
||||||
# output assets dir
|
|
||||||
asset_dir = "/home/user/.secrets/clusters/yavin"
|
asset_dir = "/home/user/.secrets/clusters/yavin"
|
||||||
|
|
||||||
|
# optional
|
||||||
|
worker_count = 2
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
15
docs/aws.md
15
docs/aws.md
|
@ -106,19 +106,18 @@ module "aws-tempest" {
|
||||||
tls = "tls.default"
|
tls = "tls.default"
|
||||||
}
|
}
|
||||||
|
|
||||||
cluster_name = "tempest"
|
|
||||||
|
|
||||||
# AWS
|
# AWS
|
||||||
|
cluster_name = "tempest"
|
||||||
dns_zone = "aws.example.com"
|
dns_zone = "aws.example.com"
|
||||||
dns_zone_id = "Z3PAABBCFAKEC0"
|
dns_zone_id = "Z3PAABBCFAKEC0"
|
||||||
controller_count = 1
|
|
||||||
controller_type = "t2.medium"
|
|
||||||
worker_count = 2
|
|
||||||
worker_type = "t2.small"
|
|
||||||
ssh_authorized_key = "ssh-rsa AAAAB3Nz..."
|
|
||||||
|
|
||||||
# bootkube
|
# configuration
|
||||||
|
ssh_authorized_key = "ssh-rsa AAAAB3Nz..."
|
||||||
asset_dir = "/home/user/.secrets/clusters/tempest"
|
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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Digital Ocean
|
||||||
|
cluster_name = "nemo"
|
||||||
region = "nyc3"
|
region = "nyc3"
|
||||||
dns_zone = "digital-ocean.example.com"
|
dns_zone = "digital-ocean.example.com"
|
||||||
|
|
||||||
cluster_name = "nemo"
|
# configuration
|
||||||
image = "coreos-stable"
|
ssh_fingerprints = ["d7:9d:79:ae:56:32:73:79:95:88:e3:a2:ab:5d:45:e7"]
|
||||||
controller_count = 1
|
asset_dir = "/home/user/.secrets/clusters/nemo"
|
||||||
controller_type = "s-2vcpu-2gb"
|
|
||||||
|
# optional
|
||||||
worker_count = 2
|
worker_count = 2
|
||||||
worker_type = "s-1vcpu-1gb"
|
worker_type = "s-1vcpu-1gb"
|
||||||
ssh_fingerprints = ["d7:9d:79:ae:56:32:73:79:95:88:e3:a2:ab:5d:45:e7"]
|
|
||||||
|
|
||||||
# output assets dir
|
|
||||||
asset_dir = "/home/user/.secrets/clusters/nemo"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -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..."
|
||||||
|
|
||||||
# output assets dir
|
|
||||||
asset_dir = "/home/user/.secrets/clusters/yavin"
|
asset_dir = "/home/user/.secrets/clusters/yavin"
|
||||||
|
|
||||||
|
# optional
|
||||||
|
worker_count = 2
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -55,18 +55,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..."
|
||||||
|
|
||||||
# output assets dir
|
|
||||||
asset_dir = "/home/user/.secrets/clusters/yavin"
|
asset_dir = "/home/user/.secrets/clusters/yavin"
|
||||||
|
|
||||||
|
# optional
|
||||||
|
worker_count = 2
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue