Posts

Showing posts from November, 2021

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.