Support CoreOS in RKE

This commit is contained in:
Khue Doan 2021-06-13 16:21:28 +07:00
parent 428bdf8d52
commit 28c0596849

View File

@ -46,6 +46,23 @@ resource "rke_cluster" "cluster" {
ingress {
provider = "none"
}
# For CoreOS
network {
plugin = "canal"
options = {
canal_flex_volume_plugin_dir = "/opt/kubernetes/kubelet-plugins/volume/exec/nodeagent~uds"
flannel_backend_type = "vxlan"
}
}
services {
kube_controller {
extra_args = {
flex-volume-plugin-dir = "/opt/kubernetes/kubelet-plugins/volume/exec/"
}
}
}
}
resource "local_file" "kube_config_yaml" {