Posts

How to point DNS form Godaddy Domain to AWS Route 53

Image
  Hi Everyone.. ဒီကနေ့ကတော့ sharing လုပ်ပေးသွားမယ့်အရာကတော့ DNS အကြောင်းလေးပါ။ ကိုယ်တိုင်လဲတိုင်ပါတ်ခဲ့ရတော့ ဘဝတူများရှိရင်အသုံးဝင်အောင်ပါ။ Domain name ကို တခြား provider တခုစီကဝယ်ထားပြီး DNS record တွေကို AWS Route 53 မှာ manage လုပ်ချင်တယ်ဆိုရင် တော့ဒီ topic ကအဆင်ပြေမှာပါ။ အခု lab ကတော့ Godaddy နဲ့ လုပ်ထားတာဖြစ်ပြီး ကျန် တဲ့ provider တွေဆိုလဲ လုပ်ပုံလုပ်နည်းတူညီနိုင်ပါတယ်။ အရင်ဆုံး AWS Route 53 ကိုသွားပြီ Hosted Zone တခုဆောက်ပါ။ ကိုယ်ပိုင် domain name ေပးပါ။ description ကတော့မထည့်လဲရပေမယ့် အလေ့အကျင့်ဖြစ်အောင် ထည့်ပေးပါ။ Public domain ဖြစ်တဲ့အတွက် public hosted zone ကိုရွေးပေးရပါမည်။ Create Hosted zone ကိုclick ပါ။ ပြီးသွားရင် hosted zone ကိုရွေးပြီး click လိုက်ရင် ဒီအောက်က box လေးမြင်ရပါမည်။ ဒါဆိုရင် type မှာ NS ပါတာကိုရွေးလိုက်ရင် NS server name တွေကိုတွေ့ရမှာဖြစ်ပြီး copy ထားပါ။ ဒါဆိုရင် AWS ဘက်ခြမ်းက လုပ်စရာတဝက်ပြီးသွားပြီဖြစ်လို့ Godaddy ကိုသွားကြပါစို့။ Godaddy မှာ account ကို login ဝင်ပြီး Domain ထဲက ကို့ domian ကို click ပါ။ DNS ထဲက Nameservers ကိုရွေးပြီး Change Nameserve...

How to setup AWS VPC Peering (VPC to VPC)

Image
  Hi Everyone... ဒီကနေ့တော့ VPC Peering လုပ်တဲ့ အကြောင်းလေးပြောပြပေးသွားမှာပါ။ VPC peering ဘာလို့လုပ်တာလဲ ဘယ်အချိန်တွေမှာသုံးတာလဲဆိုတာကို ကြည့်ရအောင်... သိတဲ့ အတိုင်း ပဲ AWS networking မှာ VPC ကမပါမဖြစ်အရေးပါပါတယ် AWS account တခုရဲ့ AWS region တခုမှာ VPC 5ခုအများဆုံး ထားလို့ရပါတယ်... AZ မဟုတ်ပါဘူး အဲ့ဒါလေးတော့သတိထားရမှာပါ.. peering က one to one ဖြစ်တဲ့အတွက် VPC များလာရင်တော့ configuation complex ဖြစ်လာပါမယ်၊ နောက်တခုကတခြား AWS account တွေရဲ့ VPC နဲ့ချိတ်ဆက်သုံးချင်တာတွေလဲရှိနိုင်ပါတယ် အဲ့လို VPC တွေများလာမယ်ဆိုရင်တော့ Transit Gateway ကိုသုံးတာက ပိုစိတ်ချမ်းသာရပါတယ်။ VPC နည်းသေးတယ် နောင်လဲတိုးလာဖို့ မရှိသေးဘူးဆိုရင်တော့ အခုနည်းလမ်းက ပိုအဆင်ပြေပါတယ်. ဆိုတော့ Pubilc VPC နဲ့ Private VPC ဆိုပြီးရှိတယ်ဆိုပါစို့ Pubilc VPC ထဲက webserver က Private VPC ထဲ က database ကိုလှမ်းသုံးချင်တယ်ဆိုရင် အဲ့ဒီ VPC တွေကို peering လုပ်ပေးဖို့လိုပါတယ်.. Peering လုပ်မယ်ဆိုရင်တော့ VPC ထဲက peering connections ကိုရွေးရပါမယ်. ပြီးရင်တော့ Create peering connections ကို click ပါ၊ ဒီ box ကျလာရင်တော့ name မှာ ပေးချ...

Single master kubernets install with kubeadm

Image
 Single master Kubernets install with Kubeadm   In this scenario I will deploy the single master node architecture with two nodes.   Before to begin A compatible Linux host. The Kubernetes project provides generic instructions for Linux distributions based on Debian and Red Hat, and those distributions without a package manager. 2 GB or more of RAM per machine (any less will leave little room for your apps). 2 CPUs or more. Full network connectivity between all machines in the cluster (public or private network is fine). Unique hostname, MAC address, and product_uuid for every node. See here for more details. Certain ports are open on your machines. See here for more details. Swap disabled. You MUST disable swap in order for the kubelet to work properly.     Run on All Nodes     First thing first switch the root user  sudo -i  Make sure that the br_netfilter module is loaded lsmod | grep br_netfilter  #if not run br_netfiter...

Github SSH Connection setup

Image
SSH generate on computer Terminal ----------- $ ssh-keygen -t rsa -b 4096 -C cloud@gmail.com View the public key $ cat id_ras_cloud.pub Copy the key to your git hub account. Git Hub Website Profile > setting > SSH & GPG Keys 1.In the upper-right corner of any page, click your profile photo, then click Settings . 2.In the user settings sidebar, click SSH and GPG keys . 3.Click New SSH key or Add SSH key . In the "Title" field, add a descriptive label for the new key. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air". Paste your key into the "Key" field. Click Add SSH key . If prompted, confirm your GitHub password. SSH Agent and  key configure $ eval "$(ssh-agent -s)"   Agent pid 43063 For Linux $ ssh-add ~/.ssh/id_rsa_cloud   For Mac $ ssh-add -K ~/.ssh/id_ras_cloud Testing the Connection to Git Hub $ ssh -T git@github.com Hi Outbox-Cloud! You've successfully authenticated, but Git...

Minikube setup

 Minikube setup   Requirement  1. docker  2. kubectl   3. minkube 1. Docker installaion $ sudo apt-get update  $ sudo apt install apt-transport-https ca-certificates curl software-properties-common     $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -  $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" verify  $ apt-cache policy docker-ce docker-ce:   Installed: (none)   Candidate: 5:20.10.10~3-0~ubuntu-bionic   Version table:      5:20.10.10~3-0~ubuntu-bionic 500         500 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages install docker ce $ sudo apt install docker-ce  Verify  $ sudo systemctl status docker ● docker.service - Docker Application Container Engine      Loaded: loaded (/lib/systemd/system/docker.service; enable...

Deployment vs Daemonset

Image
    Deployment and Daemonset   code compare   Deployment  1. pod will deploy as per replicas define. 2. pod will get pod ip list. 3. pod will get dynamic ip.  4. pod control by replicas and replicas control by deployment.   Daemonset  1.pod will deploy pod per node.  2. pod will get node ip.  3.pod will always get same ip  4. pod control by daemonset.    

AWS Root Account MFA setup

Image
 AWS root account MFA setup 1. Login your aws root account  2. Select the My Security Credentials 3. Select th e  Multi-factor authentication and click Activate MFA 4. Choose Any MFA device, for now I will choose Virtual MFA device 5. Scan the QR code with authentication app (google,authy) and fill the 2 MFA code. 6. After all steup logout again and login back. Thank you! 😊