diff --git a/packer/scripts/install-k8s.sh b/packer/scripts/install-k8s.sh index 0bb05d4..bb7f1af 100644 --- a/packer/scripts/install-k8s.sh +++ b/packer/scripts/install-k8s.sh @@ -1,6 +1,4 @@ #!/bin/bash -eu -chmod 600 ~/.ssh/id_ed25519 - echo ">> Installing Kubernetes components..." # Configure and enable kernel modules diff --git a/packer/ubuntu-k8s.pkr.hcl b/packer/ubuntu-k8s.pkr.hcl index 0aa89cc..a9023f8 100644 --- a/packer/ubuntu-k8s.pkr.hcl +++ b/packer/ubuntu-k8s.pkr.hcl @@ -162,11 +162,6 @@ build { destination = "/tmp" } - provisioner "file" { - source = "packer_cache/ssh_private_key_packer.pem" - destination = "/home/${var.build_username}/.ssh/id_ed25519" - } - provisioner "shell" { execute_command = "export KUBEVERSION=${var.k8s_version}; bash {{ .Path }}" expect_disconnect = true