- Login to GitLab (gitlab.<domainname>)
- Change password
- Click Register tab
- Fill-in required text fields
- Click Register
- 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
- 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
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!
- 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