You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm following the guide here for bootstrapping terraform, https://itnext.io/bootstrapping-kubernetes-clusters-on-aws-with-terraform-b7c0371aaea0 . After execution of terraform apply, i get the following error. I ssh into the machine 35.81.x.x and see that the /home/ubuntu/admin.conf has a permission of root:root still as though the chown command isn't being respected from the main.tf in the ../modules/cluster/main.tf file.
From what I see the admin.conf file is owned by root and other users do not have read access to it.
scp cannot elevate its privileges on the remote server, so a better option is to use rsync
I replaced lines 256 and 257 in .terraform\modules\cluster\main.tf with
I am getting the following error on my local machine as well as the ec2 master node:
@C02FGA9JMD6M terraform-kubeadm % kubectl --kubeconfig admin.conf get nodes
The connection to the server localhost:8080 was refused - did you specify the right host or port?
as well as the already mentioned scp error, but was able to copy the config file with rsync.
I'm following the guide here for bootstrapping terraform, https://itnext.io/bootstrapping-kubernetes-clusters-on-aws-with-terraform-b7c0371aaea0 . After execution of terraform apply, i get the following error. I ssh into the machine 35.81.x.x and see that the /home/ubuntu/admin.conf has a permission of root:root still as though the chown command isn't being respected from the main.tf in the ../modules/cluster/main.tf file.
│ Error: Error running command 'alias scp='scp -q -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
│ scp [email protected]:/home/ubuntu/admin.conf /Users/alluser/aws/terraform-kubeadm/selected-lark.conf >/dev/null
│ ': exit status 1. Output: scp: /home/ubuntu/admin.conf: Permission denied
Did something happen with a recent update? Running on version
module "cluster" {
source = "weibeld/kubeadm/aws"
version = "~> 0.2.4"
}
The text was updated successfully, but these errors were encountered: