diff --git a/bootstrap/templates/kubernetes/talos/talconfig.yaml.j2 b/bootstrap/templates/kubernetes/talos/talconfig.yaml.j2 index d54310b6348..6a95653fba0 100644 --- a/bootstrap/templates/kubernetes/talos/talconfig.yaml.j2 +++ b/bootstrap/templates/kubernetes/talos/talconfig.yaml.j2 @@ -183,6 +183,19 @@ controlPlane: allowedKubernetesNamespaces: - system-upgrade + # Mount openebs-hostpath in kubelet + - &openEbsPatch |- + machine: + kubelet: + extraMounts: + - destination: /var/openebs/local + type: bind + source: /var/openebs/local + options: + - bind + - rshared + - rw + {% if nodes.inventory | selectattr('controller', 'equalto', False) | list | length %} worker: {% if distribution.talos.schematics.enabled %} @@ -199,4 +212,5 @@ worker: - *nameserverPatch - *ntpPatch - *sysctlPatch + - *openEbsPatch {% endif %}