Kubernetes cluster with vagrant & virtual-box

####################### Kubernetes has several components: etcd - A highly available key-value store for shared configuration and service discovery. flannel - An etcd backed network fabric for containers. kube-apiserver - Provides the API for Kubernetes orchestration. kube-controller-manager - Enforces Kubernetes services. kube-scheduler - Schedules containers on hosts. kubelet - Processes a container manifest so the containers … Continue reading Kubernetes cluster with vagrant & virtual-box

Advertisements

Installing Kafka in docker container

[root@kafka ~]# docker --version Docker version 1.12.6, build c4618fb/1.12.6 [root@kafka ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE [root@kafka ~]# docker run --rm -p 2181:2181 -p 3030:3030 -p 8081-8083:8081-8083 -p 9581-9585:9581-9585 -p 9092:9092 -e ADV_HOST=127.0.0.1 landoop/fast-data-dev:cp3.2 & Unable to find image 'landoop/fast-data-dev:latest' locally Trying to pull repository docker.io/landoop/fast-data-dev ... latest: Pulling from docker.io/landoop/fast-data-dev 88286f41530e: … Continue reading Installing Kafka in docker container

Yum – Yellowdog Updater Modified Cheat Sheet

yum list <package> yum list kernel* yum list "​ker​nel​*" yum search <> yum provides */ping yum list yum resolv​edep /etc/ ​ redhat-release yum install <package> yum remove <package> yum locali​nst​all <package> yum deplist <package> yum localu​pdate <package> yum update yum --excl​ude​=​<package> update yum --excl​ude​=ker​nel* update yum --disa​ble​rep​o=​<reponame> update yum --enab​ler​epo​ =​<reponame> update yum check-​upd​ate yum … Continue reading Yum – Yellowdog Updater Modified Cheat Sheet

openshift with vagrant

https://app.vagrantup.com/openshift/boxes/origin-all-in-one mohammedrafi@NOC-RAFI:~$ mkdir openshift mohammedrafi@NOC-RAFI:~$ cd openshift/ mohammedrafi@NOC-RAFI:~/openshift$ vagrant init openshift/origin-all-in-one A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. mohammedrafi@NOC-RAFI:~/openshift$ cat Vagrantfile # -*- mode: … Continue reading openshift with vagrant

Installing Kafka on CentOS 7

[vagrant@localhost ~]$ sudo yum install java-1.8.0-openjdk.x86_64 -y [vagrant@localhost ~]$ java -version openjdk version "1.8.0_144" OpenJDK Runtime Environment (build 1.8.0_144-b01) OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode) [vagrant@localhost ~]$ sudo vi /etc/profile export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk export JRE_HOME=/usr/lib/jvm/jre [vagrant@localhost ~]$ source /etc/profile [vagrant@localhost ~]$  wget http://www-us.apache.org/dist/kafka/0.9.0.1/kafka_2.11-0.9.0.1.tgz [vagrant@localhost ~]$ tar -xvf kafka_2.11-0.9.0.1.tgz [vagrant@localhost ~]$ ls -l total 34816 … Continue reading Installing Kafka on CentOS 7

virtual machines with vagrant

################ Method-1 ############## Make sure you have any hypervisor platform on your pc ex: virtualbox follow steps tin url install virtualbox and vagrant https://rafishaikblog.wordpress.com/2017/01/13/vagrant/ mohammedrafi@NOC-RAFI:~$ mkdir vagrant mohammedrafi@NOC-RAFI:~$ cd vagrant/ mohammedrafi@NOC-RAFI:~/vagrant$ vim Vagrantfile Vagrant.configure("2") do |config| config.vm.box = "centos/7" end mohammedrafi@NOC-RAFI:~/vagrant$ vim Vagrantfile mohammedrafi@NOC-RAFI:~/vagrant$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing … Continue reading virtual machines with vagrant

Kubernetes manual setup in centos7

[root@master ~]# systemctl stop firewalld [root@master ~]# systemctl disable firewalld Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service. [root@master ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> … Continue reading Kubernetes manual setup in centos7

kubectl-cheatsheet

https://kubernetes.io/docs/user-guide/kubectl-cheatsheet/ mohammedrafi@NOC-RAFI:~$ kubectl kubectl controls the Kubernetes cluster manager. Find more information at https://github.com/kubernetes/kubernetes. Basic Commands (Beginner): create Create a resource by filename or stdin expose Take a replication controller, service, deployment or pod and expose it as a new Kubernetes Service run Run a particular image on the cluster run-container Run a particular image … Continue reading kubectl-cheatsheet

Kubernetes with minikube

mohammedrafi@NOC-RAFI:~$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.22.2/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 85.3M 100 85.3M 0 0 6926k 0 0:00:12 0:00:12 --:--:-- 7483k mohammedrafi@NOC-RAFI:~$ minikube Minikube is a CLI tool that provisions and manages … Continue reading Kubernetes with minikube

git cheat sheet

https://git-scm.com/docs http://ndpsoftware.com/git-cheatsheet.html#loc=remote_repo; Setup and Config git config help Getting and Creating Projects init clone Basic Snapshotting add status diff commit reset rm mv Branching and Merging branch checkout merge mergetool log stash tag Sharing and Updating Projects fetch pull push remote submodule Inspection and Comparison show log diff shortlog describe Patching apply cherry-pick diff rebase … Continue reading git cheat sheet