Overview
There are 2 types of datacenters:
- Seed datacenter, where Kubermatic kubernetes Platform’s (KKP) controller-manager and the control planes for each customer cluster are
running.
- Node datacenter, where the customer worker nodes are provisioned.
Both are defined in a file named datacenters.yaml
:
Sample datacenters.yaml
datacenters:
seed-1:
is_seed: true
spec:
bringyourown: ~
seed-2:
is_seed: true
spec:
bringyourown: ~
openstack-zone-1:
location: Datacenter 2
country: DE
seed: seed-1
spec:
openstack:
auth_url: https://our-openstack-api/v3
availability_zone: zone-1
region: "region-1"
dns_servers:
- "8.8.8.8"
- "8.8.4.4"
images:
ubuntu: "Ubuntu 18.04"
centos: "CentOS 7"
coreos: "CoreOS"
enforce_floating_ip: false
manage_security_groups: true
do-ams2:
location: Amsterdam
country: NL
seed: seed-1
spec:
digitalocean:
region: ams2
aws-us-east-1a:
location: US East (N. Virginia)
country: US
seed: seed-2
spec:
aws:
images:
ubuntu: "ami-07e101c2aebc37691"
centos: "ami-02eac2c0129f6376b"
coreos: "ami-08e58b93705fb503f"
region: us-east-1
hetzner-fsn1:
location: Falkenstein 1 DC 8
country: DE
seed: seed-1
spec:
hetzner:
datacenter: fsn1-dc8
vsphere-office1:
location: Office
country: DE
seed: europe-west3-c
spec:
vsphere:
endpoint: "https://some-vcenter.com"
datacenter: "Datacenter"
datastore: "example-datastore"
cluster: "example-cluster"
allow_insecure: true
root_path: "/Datacenter/vm/foo"
templates:
ubuntu: "ubuntu-template"
centos: "centos-template"
coreos: "coreos-template"
requiredEmailDomains:
- "kubermatic.com"
- "example.com"
azure-westeurope:
location: "Azure West europe"
country: NL
seed: europe-west3-c
spec:
azure:
location: "westeurope"
gcp-westeurope:
location: "Europe West (Germany)"
seed: europe-west3-c
country: DE
spec:
gcp:
region: europe-west3
zone_suffixes:
- c
packet-ams1:
location: "Packet AMS1 (Amsterdam)"
seed: europe-west3-c
country: NL
spec:
packet:
facilities:
- ams1
The datacenter structure contains the following fields:
seed
– Tells whether the DC is supposed to be a seed or a normal DC. true
or false
.spec
:seed
– Which seed to use to deploy the master components of this DCs clusters.country
– Country code of the DC location. It’s purely cosmetic and reflected by a flag shown in the UI.location
– Name of the DC’s location.provider
– Name of the providing entity. Optional.requiredEmailDomain
– (deprecated since v2.13) Optional string. Limits the availability of the datacenter to users with email addresses in the given domain.requiredEmailDomains
– (since v2.13) Optional string array. Limits the availability of the datacenter to users with email addresses in the given domains.digitalocean
– Cloud-specific configuration for DigitalOcean DCs.bringyourown
– Specifies a DC that doesn’t use any cloud-provider-specific featuresaws
– Cloud-specific configuration for AWS DCs.azure
– Cloud-specific configuration for Azure DCs.openstack
– Cloud-specific configuration for Openstack DCs.packet
– Cloud-specific configuration for Packet DCs.gcp
– Cloud-specific configuration for GCP DCs.hetzner
– Cloud-specific configuration for Hetzner DCs.vsphere
– Cloud-specific configuration for vSphere DCs.kubevirt
– Cloud-specific configuration for KubeVirt DCs.