Posts

Showing posts with the label L4 Load balancer

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

GitLab CI/CD implementation on Kubernetes Cluster (L4 And L7 Load Balancer)

Image
  Login to Gitlab and create a project Create project in Gitlab 2. Add Kubernetes cluster in created project Select Kubernetes option under operations 3. Add existing cluster and fill up all the fields which is related to kube-config file. Fill Kubernetes cluster info 4. Disable the Auto Dev-Ops for project. Go to settings->CI/CD->Expand Auto Dev-Ops and uncheck the Default to Auto DevOps Pipeline. Disable auto DevOps 5. Create or Enable Runner for this project (Settings->CI/CD->Expand Runner) . Set up a specific Runner manually or Enable the shared runner (Created earlier by using  link https://docs.gitlab.com/runner/install/linux-manually.html ) Enable Runner 6. Now Deploy the project with Docker file, gitlab ci/cd file and kubernetes template file. Gitlab CI/CD file named .gitlab-ci.yml and format is as below #before_script: # - sudo usermod -aG docker $USER build: script: - docker build -t dokcer.io/library/nginx:$CI_COMMIT_SHA . - docker log...