Pre-requisites : kubectl , awscli, kops, domain in route53, Create a record set in aws in route53 service ns-444.awsdns-55.com. ns-1644.awsdns-13.co.uk. ns-569.awsdns-07.net. ns-1218.awsdns-24.org. mohammedrafi@NOC-RAFI:~$ dig +short NS k8s.devopsact.com ns-1218.awsdns-24.org. ns-1644.awsdns-13.co.uk. ns-444.awsdns-55.com. ns-569.awsdns-07.net. mohammedrafi@NOC-RAFI:~$ dig +short NS devopsact.com ns46.domaincontrol.com. ns45.domaincontrol.com. Only my sub domain will be pointing to aws dns servers . Add the dns NS server … Continue reading kops in aws
Month: October 2017
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
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 "kernel*" yum search <> yum provides */ping yum list yum resolvedep /etc/ redhat-release yum install <package> yum remove <package> yum localinstall <package> yum deplist <package> yum localupdate <package> yum update yum --exclude=<package> update yum --exclude=kernel* update yum --disablerepo=<reponame> update yum --enablerepo =<reponame> update yum check-update 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://shaikmdrafi.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
