Posts

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! 😊 

Setup the ssh connection with github

Image
Generate the ssh key  $ ssh-keygen -t ed25519 -C "your_email@example.com"   Save the ssh key   > Enter a file in which to save the key (/Users/you/.ssh/id_ed25519): [Press enter]   Type a secure passphrase   > Enter passphrase (empty for no passphrase): [Type a passphrase] > Enter same passphrase again: [Type passphrase again]   Add ssh key to ssh-agent   $ eval "$(ssh-agent -s)"   $ open ~/.ssh/config if not exist, create it.   $ vi ~/.ssh/config   Host * AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/id_ed25519    Note: If you see an error like this /Users/USER/.ssh/config: line 16: Bad configuration option: usekeychain    add IgnoreUnknown UseKeychain in .ssh/config     Copy the SSH public key to your clipboard. more ~/.ssh/id_ed25519.pub   Select an copy your pub key and place in your github account   In the user settings sidebar, click SSH and GPG keys.  Click New SSH key...

AWS named profile with Access Key

Image
Named profile    A named profile is a collection of settings and credentials that you can apply to a AWS CLI command. Requirement  aws users  aws cli    Creating the User access key Access to your aws console account and open to iam ( https://console.aws.amazon.com/iam/ )   Choose users    Choose security credential tap      In the Access keys section, choose Create access key .    To download the key pair, choose Download .csv file .   Creating AWS named profile    $ aws configure AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE (Your key id) AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY (Your Secret Key) Default region name [None]: ap-southeast-1   This will have created the ~/.aws/credentials file and ~/.aws/config populated it with the credentials settings.   $ ls -la ~/.aws/ total 16 drwxr-xr-x       4...