Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents

Conception

PSNC provide provides Kubernetes cluster resources that can be used in GitLab (gitlab.geant.org) project. 
GitLab and Kubernetes (K8s) integration allow users build and run their application as Docker containers in our K8s environment directly from GitLab CI/CD Pipeline. After creating project in GitLab user can request for resources in K8s cluster for development and testing purposes.  

...

  1. go to https://jira.software.geant.org/servicedesk/customer/portal/2/create/25
  2. in Application field choose "Gitlab"
  3. in Summary field type "K8s resources"
  4. in Description text box provide following information:
    1. name of your project in GitLab
    2. name of your application - this become part of URL your application will be accessible: <your-app-name>.ksk8s.qalabeqalab.geant.org

Then we will prepare K8s resources and configure your project to use them.

How to run containers in K8s cluster

  1. login git to https://gitlab.software.geant.org
  2. got to project K8s Templates  (https://gitlab.software.geant.org/gitlab-ci-templates/k8s-templates)
  3. clone project K8s Templates
  4. read carefully file .gitlab-ci.yml and copy required code to .gitlab-ci.yml in your repository.
  5. read carefully file k8s-manifests/k8s.templ.yml and modify it according to your needs (based on comments)
  6. copy directory k8s-manifests to main directory in your repository
  7. test CI pipeline

...


Include Page
QALab vs Gitlab with Kubernates
QALab vs Gitlab with Kubernates