#Configure Resolve.conf
resource "null_resource" "resolv_conf" {

  provisioner "local-exec" {
    command = <<EOF
echo -e "nameserver "${ module.master.nameserver }"\n$(cat /etc/resolv.conf)" > /etc/resolv.conf
EOF
  }

}

#Configure Resolve.conf
resource "null_resource" "resolv_conf" {

  provisioner "local-exec" {
    command = <<EOF
echo -e "nameserver "${ module.master.nameserver }"\n$(cat /etc/resolv.conf)" > /etc/resolv.conf
echo -e "nameserver "${ module.master.nameserver }" >> "${ var.data_dir }/kubeconfig"
EOF
  }

}

Add Packet Nameserver to Kubeconfig
Add Packet Nameserver to Kubeconfig

cncf/cross-cloud