Skip to content

Latest commit

 

History

History
73 lines (60 loc) · 2.67 KB

tutorial.md

File metadata and controls

73 lines (60 loc) · 2.67 KB

Tutorial for GitLab Bundle

1. Change password

  • Login to GitLab (gitlab.<domainname>)
  • Change password

2. Register User

  • Click Register tab
  • Fill-in required text fields
  • Click Register

3. Import Projects

3.1 Import ms-frontend

  • Click Create a project
  • Click Import project tab
  • Click git Repo by URL, add Git Repo URL:
  • Tick Public
  • Click Create project
  • Click Settings -> CI/CD -> Expand Secrets variables:
  • Print vars to add via:
    • ./easy2use list GitLab -t Kubernetes -n
  • Click Save variables

3.2 Import ms-backend

  • Click New project (plus sign on top bar)
  • Click Import project tab
  • Click git Repo by URL, add Git Repo URL:
  • Tick Public
  • Click Create project
  • Click Settings -> CI/CD -> Expand Secrets variables:
  • Print vars to add via:
    • ./easy2use list GitLab -t Kubernetes -n
  • Click Save variables

4. Start builds

For both ms-frontend and ms-backend do:

  • Click CI/CD -> Run Pipeline -> Create pipeline

    After initial pipelines are now executed, the pipelines will be started when changes are committed & pushed from now on!

5 Deployments (CD) - ms-frontend & ms-backend

  • dev (CD only executed for merge-requests)
    • ms-frontend-dev-<namespace>.<domainname>/api/greeting
    • ms-backend-dev-<namespace>.<domainname>/api/hellobackend
  • stage (CD only executed on master branch changes)
    • ms-frontend-stage-<namespace>.<domainname>/api/greeting
    • ms-backend-stage-<namespace>.<domainname>/api/hellobackend Info: 2 replicas created
  • prod (CD only executed when manually triggered in pipeline)
    • ms-frontend-prod-<namespace>.<domainname>/api/greeting
    • ms-backend-prod-<namespace>.<domainname>/api/hellobackend Info: 3 replicas created

Ingresses visible after deployment in cmd:

  • ./easy2use list GitLab -t Kubernetes -n