diff --git a/bare-metal/fedora-coreos/kubernetes/ssh.tf b/bare-metal/fedora-coreos/kubernetes/ssh.tf index 092794fd..98c09699 100644 --- a/bare-metal/fedora-coreos/kubernetes/ssh.tf +++ b/bare-metal/fedora-coreos/kubernetes/ssh.tf @@ -39,6 +39,7 @@ resource "null_resource" "copy-controller-secrets" { provisioner "remote-exec" { inline = [ "sudo mv $HOME/kubeconfig /etc/kubernetes/kubeconfig", + "sudo touch /etc/kubernetes", "sudo /opt/bootstrap/layout", ] } @@ -70,6 +71,7 @@ resource "null_resource" "copy-worker-secrets" { provisioner "remote-exec" { inline = [ "sudo mv $HOME/kubeconfig /etc/kubernetes/kubeconfig", + "sudo touch /etc/kubernetes", ] } } diff --git a/digital-ocean/fedora-coreos/kubernetes/ssh.tf b/digital-ocean/fedora-coreos/kubernetes/ssh.tf index f4888fe0..84bfc621 100644 --- a/digital-ocean/fedora-coreos/kubernetes/ssh.tf +++ b/digital-ocean/fedora-coreos/kubernetes/ssh.tf @@ -36,6 +36,7 @@ resource "null_resource" "copy-controller-secrets" { provisioner "remote-exec" { inline = [ "sudo mv $HOME/kubeconfig /etc/kubernetes/kubeconfig", + "sudo touch /etc/kubernetes", "sudo /opt/bootstrap/layout", ] } @@ -60,6 +61,7 @@ resource "null_resource" "copy-worker-secrets" { provisioner "remote-exec" { inline = [ "sudo mv $HOME/kubeconfig /etc/kubernetes/kubeconfig", + "sudo touch /etc/kubernetes", ] } } @@ -84,4 +86,3 @@ resource "null_resource" "bootstrap" { ] } } -