diff --git a/infra/cluster.tf b/infra/cluster.tf index 303d86e1..5034c083 100644 --- a/infra/cluster.tf +++ b/infra/cluster.tf @@ -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" {