From 28c05968499b41adf997d0024e94c0164f65fb01 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sun, 13 Jun 2021 16:21:28 +0700 Subject: [PATCH] Support CoreOS in RKE --- infra/cluster.tf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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" {