-
Notifications
You must be signed in to change notification settings - Fork 20
Home
Alvaro Saurin edited this page Jul 10, 2019
·
6 revisions
The kubeadm provider is used for interacting with kubeadm for creating Kubernetes clusters.
resource "kubeadm" "main" {
api {
external = "loadbalancer.external.com"
}
network {
dns_domain = "my_cluster.local"
services = "10.25.0.0/16"
}
}
# from the libvirt provider
resource "libvirt_domain" "master" {
name = "master"
memory = 1024
...
provisioner "kubeadm" {
config = "${kubeadm.main.config}"
}
}
# from the libvirt provider
resource "libvirt_domain" "minion" {
count = 3
name = "minion${count.index}"
...
provisioner "kubeadm" {
config = "${kubeadm.main.config}"
join = "${libvirt_domain.master.network_interface.0.addresses.0}"
}
}
- Installation instructions.
- Using
kubeadm
in your Terraform scripts:- The
resource "kubeadm"
configuration block. - The
provisioner "kubeadm"
block. - Additional tasks necessary for having a fully functional Kubernetes cluster, like installing some Pods Security Policy...
- The
- Roadmap, TODO and vision.
- FAQ.
- Examples for several providers like libvirt, LXD, AWS, etc.