I am new to aws ec2. My task is to create a test kubernetes cluster using kops. So, I followed the document that provided by the aws in https://aws.amazon.com/blogs/compute/kubernetes-clusters-aws-kops/ . These are the steps i followed as per the documentation:
1) aws s3api create-bucket --bucket kops-test --region ap-south-1 --create-bucket-configuration LocationConstraint=ap-south-1
2) aws s3api put-bucket-versioning --bucket kops-test --region ap-south-1 --versioning-configuration Status=Enabled
3) export KOPS_STATE_STORE=s3://kops-test
4) ID=$(uuidgen) && aws route53 create-hosted-zone --name test.local --caller-reference $ID | jq .DelegationSet.NameServers
5) ssh-keygen -t rsa -C "TestKey" -f ~/.ssh/test-key
6) aws ec2 import-key-pair --key-name "test_kops_key" --public-key-material file://~/.ssh/test-key.pub
7) kops create cluster --name kops.test.local --zones ap-south-1a --master-size t2.micro --node-size t2.micro --kubernetes-version 1.16.0
8) kops create secret --name kops.test.local sshpublickey admin -i ~/.ssh/test-key.pub
9) kops update cluster --name kops.test.local --yes
At first when i executed the step 7 initially, I got this error:
SSH public key must be specified when running with AWS (create with kops create secret --name kops.test.local sshpublickey admin -i ~/.ssh/id_rsa.pub
)
So I executed the step 8. And it was successful. Then to initiate the cluster, I executed the step 9, then I got the below error: error doing DNS lookup for NS records for "test.local": lookup test.local on 127.0.0.53:53: no such host
Do I need to add the route53 hosted zone with the name only in the actual DNS server? Can't we add a hosted zone with any name like in the above?
I'm lost at this point & i tried many articles, but could not solve this issue. Could you please help me out?