mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-26 07:29:32 +01:00
e79088baa0
* Allow kube-dns to respond to DNS queries with a custom suffix, instead of the default 'cluster.local' * Useful when multiple clusters exist on the same local network and wish to query services on one another
73 lines
1.6 KiB
HCL
73 lines
1.6 KiB
HCL
variable "cluster_name" {
|
|
description = "Cluster name"
|
|
type = "string"
|
|
}
|
|
|
|
variable "matchbox_http_endpoint" {
|
|
type = "string"
|
|
description = "Matchbox HTTP read-only endpoint (e.g. http://matchbox.example.com:8080)"
|
|
}
|
|
|
|
variable "container_linux_channel" {
|
|
type = "string"
|
|
description = "Container Linux channel corresponding to the container_linux_version"
|
|
}
|
|
|
|
variable "container_linux_version" {
|
|
type = "string"
|
|
description = "Container Linux version of the kernel/initrd to PXE or the image to install"
|
|
}
|
|
|
|
variable "ssh_authorized_key" {
|
|
type = "string"
|
|
description = "SSH public key to set as an authorized key"
|
|
}
|
|
|
|
# machines
|
|
# Terraform's crude "type system" does properly support lists of maps so we do this.
|
|
|
|
variable "controller_domains" {
|
|
type = "list"
|
|
}
|
|
|
|
variable "worker_names" {
|
|
type = "list"
|
|
}
|
|
|
|
variable "worker_macs" {
|
|
type = "list"
|
|
}
|
|
|
|
variable "worker_domains" {
|
|
type = "list"
|
|
}
|
|
|
|
# bootkube
|
|
|
|
variable "kubeconfig" {
|
|
type = "string"
|
|
}
|
|
|
|
variable "kube_dns_service_ip" {
|
|
description = "Kubernetes service IP for kube-dns (must be within server_cidr)"
|
|
type = "string"
|
|
default = "10.3.0.10"
|
|
}
|
|
|
|
# optional
|
|
|
|
variable "kernel_args" {
|
|
description = "Additional kernel arguments to provide at PXE boot."
|
|
type = "list"
|
|
|
|
default = [
|
|
"root=/dev/sda1",
|
|
]
|
|
}
|
|
|
|
variable "cluster_domain_suffix" {
|
|
description = "Queries for domains with the suffix will be answered by kube-dns. Default is cluster.local (e.g. foo.default.svc.cluster.local) "
|
|
type = "string"
|
|
default = "cluster.local"
|
|
}
|