[root@node1 ~]# yum install http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm -y [root@node1 ~]# yum install mysql-server -y [root@node1 ~]# systemctl start mysqld [root@node1 ~]# mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current password … Continue reading Intalling sonarqube in centos7
Author: mshaik
CI/CD with Jenkins
Setting up a GitHub webhook in Jenkins Install Plugin Within the Dashboard, select Manage Jenkins on the left. On the Configuration page, select Manage Plugins. Manage Plugins page will give you a tabbed interface. Click Available to view all the Jenkins plugins that can be installed. Using the search box, search for gitlab plugin. There … Continue reading CI/CD with Jenkins
hook up grafana with prometheus
[root@prom1 ~]# useradd prometheus [root@prom1 ~]# su - prometheus [prometheus@prom1 ~]$Â wget https://github.com/prometheus/node_exporter/releases/download/v0.14.0/node_exporter-0.14.0.linux-amd64.tar.gz [prometheus@prom1 ~]$ ls -l total 3928 -rw-rw-r--. 1 prometheus prometheus 4019675 Nov 26 02:42 node_exporter-0.14.0.linux-amd64.tar.gz [prometheus@prom1 ~]$ mkdir -p Prometheus/node_exporter [prometheus@prom1 ~]$ cd $_ [prometheus@prom1 node_exporter]$ [prometheus@prom1 node_exporter]$ tar xzf ../../node_exporter-0.14.0.linux-amd64.tar.gz [prometheus@prom1 node_exporter]$ logout [root@prom1 ~]# vim /etc/systemd/system/node_exporter.service # echo "[Unit] Description=Node Exporter … Continue reading hook up grafana with prometheus
installing consul
[root@instance-1 ~]# wget https://releases.hashicorp.com/consul/1.0.0/consul_1.0.0_linux_amd64.zip [root@instance-1 ~]# ls -l -rw-r--r--. 1 root root 10407455 Oct 16 16:36 consul_1.0.0_linux_amd64.zip [root@instance-1 ~]# yum install unzip -y [root@instance-1 ~]# unzip consul_1.0.0_linux_amd64.zip Archive: consul_1.0.0_linux_amd64.zip inflating: consul [root@instance-1 ~]# ls -l -rwxr-xr-x. 1 root root 42845786 Oct 16 16:30 consul -rw-r--r--. 1 root root 10407455 Oct 16 16:36 consul_1.0.0_linux_amd64.zip [root@instance-1 ~]# … Continue reading installing consul
kubernetes help pages
mohammedrafi@NOC-RAFI:~$ sudo 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 kubernetes help pages
kops in aws
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
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 "​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







