Keyboard Time: 15 mins, Automation Wait Time: 15 mins
Scenarios: Instructor-Led, Self-Paced
This one Auto DevOps scenario proves out multiple outcomes:
Setup a simple application to use Runner Based Push CD to deploy an application to Kubernetes through the cluster connection established by the GitLab Agent. This includes any custom CI/CD that directly uses kubectl and helm commands.
Use Auto DevOps (Runner Push Deployment) with the GitLab Agent cluster connection method.
Leveraging the Group Level agent configuration that was done in a previous lab. (Visual Depiction Here)
While in ‘yourpersonalgroup’ Click New project (button) and then Click Import project
On the ‘Import project’ page, Click Repository by URL
On the next page, for ‘Git repository URL’ Paste https://gitlab.com/guided-explorations/gl-k8s-agent/gl-ci/simply-simple-notes.git
In ‘Project name’ Type yourgitlabusername DevOps Security Scanning
Near the bottom of the page Click Create project (button)
When the import is complete
Click Settings => CI/CD
Next to ‘Variables’ Click Expand
Click Add variable once for each table row
Key | Value | Protect | Mask |
---|---|---|---|
POSTGRES_ENABLED | false | No | No |
TEST_DISABLED | 1 | No | No |
Click Settings => CI/CD
Next to ‘Auto DevOps’, Click Expand
Under ‘Auto DevOps’ Check Default to Auto DevOps pipeline
Leave ‘Deployment strategy’ at the default and Click Save changes
On the left navigation Click CI/CD => Pipelines
Only if a pipeline is not already running:
On the upper right of the page Click Run pipeline
On the ‘Run pipeline’ page, Click Run pipeline
Watch the pipeline progress by clicking the linked number starting with # under the ‘Pipeline’ column.
To explore the various pipeline jobs by clicking their status icon.
To return to the pipelines view, on the left navigation bar, Click CI/CD => Pipelines
[Automation wait: 15 mins] wait for the pipeline to complete the ‘production’ job
On the left navigation Click Deployments => Environments
To see the environment deployment status, to the left of ‘production’ Click [the small right arrow]
To the right of ‘production’ Click Open (button)
It can take a while for SSL to register, you can click through the advanced button to see the site if SSL is not working yet.
If everything worked as expected, you should see an application page called Simply Simple Notes and should not have any warnings or problems with SSL certificates.