Posts

Showing posts with the label GitLab CI/CD implementation on Kubernetes Cluster (L4 And L7 Load Balancer)

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