Source: medium.com

Kubernetes Aws basic

Category: Kubernetes

apt-get install updateapt install awscliapt-get install pythoncurl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectlchmod +x ./kubectlsudo mv ./kubectl /usr/local/bin/kubectl IAM user permissionThe IAM user to create the Kubernetes cluster must have the following permissions: AmazonEC2FullAccessAmazonRoute53FullAccessAmazonS3FullAccessIAMFullAccessAmazonVPCFullAccess Note: If you create IAM user with programmatic access then provide Access keys. aws configurecurl -LO https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d ‘“‘ -f 4)/kops-linux-amd64chmod +x kops-linux-amd64sudo mv kops-linux-amd64 /usr/local/bin/kopsaws s3 mb s3://dev.af.alvis.inexport KOPS_STATE_STORE=s3://dev.af.alvis.inssh-keygenkops create cluster — cloud=aws — zones=us-east-1e — name=dev.af.alvis.in — dns-zone=alvis.in — dns privatekops update cluster dev.af.alvis.in — yeskops validate clusterkubectl get nodes Written by

Related Articles