Posts

Setup Central Logging Server on HA mode with Rsyslog in Linux

Image
  Rsyslog   is a powerful, secure and high-performance log processing system which accepts data from different types of source (systems/applications) and outputs it into multiple formats Centralized Logging System It has evolved from a regular  syslog  daemon to a fully-featured, enterprise level logging system. It is designed in a client/server model, therefore it can be configured as a client and/or as a central logging server for other servers, network devices, and remote applications. By Default system accept the logs only generated from local host. In this example we will configure a log server and will accept logs from client side. For  t he purpose of Example, we will use the following hosts: Active Server : 10.194.168.128 ;  Hostname : syslog-server-1 Passive Server : 10.194.168.129 ;  Hostname : syslog-server-2 Client1  : 10.194.168.163 ;  Hostname : syslog-server-3 Client2  : 10.194.168.164 ;  Hostname : syslog-server-4 ST...

L4 Load Balancing on Kubernetes with Rancher

Image
  Login to Rancher and   Choose project from top menu in selected Cluster wherever you want to deploy the service (In my case in default project want to deploy the service) Click on Deploy Button 1.   Fill up the field details are as below Name of workload: any Scalable deployment of: no of pod want to deploy Dockers Image : Docker Image path (from private or public Registry Server) Namespace:  Default (Choose Accordingly) Choose L4 load balancer as a service from Drop down Publish the container port: Where the service will run under container On listening port: Host port which will be available As  s hown in below image Fill above form accordingly Now Click on launch button Workloads has been created and now running on 80 port. Click on created workload default page of nginx will open.As shown in below image Click on 80/tcp link

L7 Load Balancing (CLUSTER IP)on Kubernetes with Rancher

Image
  Login to Rancher and  Choose project from top menu in selected Cluster wherever you want to deploy the service (In my case in default project want to deploy the service) 2.   Fill up the field details are as below Name of workload: any Scalable deployment of: no of pod want to deploy Dockers Image : Docker Image path (From private or public registry server) Namespace:  Default (Choose Accordingly) Choose CLUSTER IP as a service from Drop down (L7 Load Balancer) Publish the container port: Where the service will run under container On listening port: Host port which will be available As given below image: 3. So GOTO Load Balancer from top menu and create Ingress service named medium As shown in below image 4.  Fill  u p the field details are as below Namespace : Default (Choose Accordingly) RULES: if select first option then Rancher will generate any random host name otherwise choose specify hostname to use and give any host name Path: where is the...

How to remove/add OSD from Ceph cluster

  Remove OSD from Ceph Cluster Firstly check which OSD is down and want to remove from Ceph Cluster by using given command:  ceph osd tree .  Let’s say it is osd.20 which is down and want to remove. Now use the following commands a.  ceph osd out osd.20 ( If you see “ osd.20 is already out ” — it’s ok. ) b.  ceph osd down osd.20 c. Remove it:  ceph osd rm osd.20 If it says   ‘ Error EBUSY: osd.11 is still up; must be down before removal. ’ that means OSD is not dead yet. Go to the host it resides on and kill it ( systemctl stop ceph-osd@20 ), and repeat rm operation. d.  ceph osd crush rm osd.20 e. remove it authorization (it should prevent problems with ‘couldn’t add new osd with same number’):  ceph auth del osd.20 . f. Make sure it is safe to destroy the OSD: ceph osd destroy 20 --yes-i-really-mean-it g. Now check with the following command:  ceph -s  or  ceph -w h. If want to remove ceph LVM volume created on host m...

CI/CD Deployment pipeline using Jenkins on Kubernetes to deploy a Simple Nginx application

Image
  Requirements: For CI/CD deployment pipeline using Jenkins on Kubernetes you need git repository and Kubernetes setup as well as Jenkins plugins named docker , docker pipeline( plugin integrates Jenkins with docker)and Kubernetes continuous deployment Create credentials in Jenkins for Kubernetes (Given ID will use in Jenkinsfile). Click to Credentials on the left menu and fill the fields as shown in below image 3. Create a new item and select pipeline option as shown in below image Create a new item with pipeline option 4(a). Now add credentials with the key file in two steps to use encrypted git credentials in Jenkinsfile Create a secret text to implement the git 4(b). now got to the project -> click on pipeline syntax link now right-side drop-down choose: with credentials: Bind credentials to variables and then choose a secret box from next drop down box and choose above credential ID and enter any value which will use in Jenkinsfile. It will generate the line of code...