makeporngreatagain.pro
yeahporn.top
hd xxx

Setup Kubernetes Cluster on AWS using KOPS

585

Setup Route53

  1. Register free domain from Freenom, please refer this link
  2. Create a Public Hosted in Route 53, please refer this link
  3. Update NameServers in Freenom DNS Management control panel, please refer this link

Create Ubuntu EC2 instance

For installing kops we are creating this Ubuntu EC2 instance

  1. Use the below the button to create EC2 instance along with necessary roles needed for this installation
  2. Once your instance is created login into it using private key
    1. Username: Ubuntu

Install AWS CLI

You will need to install on AWS CLI on Ubuntu this we created, login to that instance and follow below steps

  1. Download AWS CLI package using:
     curl https://s3.amazonaws.com/aws-cli/awscli-bundle.zip -o awscli-bundle.zip
  2. Install unzip & python packages using:
     apt install unzip python
  3. Unzip AWS CLI bundle using:
     unzip awscli-bundle.zip
  4. Copy AWS CLI package using:
     ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

Install kubectl

  1. Download kubectl using:
    curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
  2. Give permission to kubectl package using:
     chmod +x ./kubectl
  3. Copy kubectl using:
     sudo mv ./kubectl /usr/local/bin/kubectl

Install kops

  1. Download kubectl using:
     curl -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-amd64
    
  2. Give permission to kubectl package using:
     chmod +x kops-linux-amd64
    
  3. Copy kubectl using:
     sudo mv kops-linux-amd64 /usr/local/bin/kops
  4. Create an S3 bucket using:
    aws s3 mb s3://<enter-unique-name>
  5. Expose environment variable:
    export KOPS_STATE_STORE=s3://<enter-unique-name>
  6. Create SSH keys before creating cluster using:
    ssh-keygen
  7. Create kubernetes cluster definitions on S3 bucket:
    kops create cluster --cloud=aws --zones=us-east-1a --name=<your-cluster-name> --dns-zone=<your-freenom-domain> --dns public --node-size=t2.micro --master-size=t2.micro
  8. Create kubernetes cluser:
     kops update cluster <your-cluster-name> --yes
  9. Validate your cluster
     kops validate cluster
  10. To list nodes
     kubectl get nodes
Leave A Reply

Your email address will not be published.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.