Posts

Showing posts with the label Kubernetes

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...

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...

GUI for local kubernetes cluster using Lens

  Lens is the only IDE you’ll ever need to take control of your Kubernetes clusters. It’s open source and free Download Link: Release 4.1.4 · lensapp/lens Where have all my pods gone? Namespaced Kubernetes resources are now initially shown only for the "default" namespace… github.com Click and install it on local machine. Click on add new cluster and enter the kubeconfig path or copy paste kubeconfig file and select the cluster you need to check in GUI. https://asciinema.org/a/I6KAX3iUkpVyO0JgIRPmzCqs6 Enjoy !!!