DevSecOps - Kubernetes DevOps & Security

DevOps Pipeline

Git Repository

In this guide, you’ll access the GitHub repository that houses:

  • A Spring Boot microservice
  • VM configuration templates for Azure and GCP
  • Automated setup scripts for software installation

Follow these steps to fork or import the repo, then clone it to your local machine or a VM.

Repository Structure

Directory/FileDescriptionPath
Spring Boot appJava source code and pom.xml for Maven build/
setup/azureARM templates and scripts for provisioning on Azure/setup/azure
setup/gcpDeployment Manager files for GCP VM configuration/setup/gcp
scriptsShell scripts for software installation and setup/scripts

Note

Use the setup templates to standardize VM provisioning across Azure and GCP, ensuring consistent security policies.

1. Fork or Import the Repository

The upstream repository is named kubernetes-devops-security. Forking creates a personal copy under your account:

  1. Navigate to the original repo:
    https://github.com/<original-username>/kubernetes-devops-security
  2. Click Fork (top-right corner) to duplicate under your account.

Alternatively, import it as a new repository:

  1. On GitHub, go to Your repositories > Import repository.
  2. Paste the source URL:
    https://github.com/<original-username>/kubernetes-devops-security.git
    
  3. Name your repo, e.g., devsecops-k8s-demo.
  4. Click Begin import and wait for completion.

Warning

Ensure you have a GitHub account and proper permissions to fork or import repositories.

2. Clone the Repository Locally

After forking or importing, clone to your development environment. First, verify Git is installed:

git --version

2.1 Using GitHub Desktop

  1. Open GitHub Desktop.
  2. Select File > Clone Repository.
  3. Under the URL tab, enter:
    https://github.com/<your-username>/devsecops-k8s-demo.git
    
  4. Choose a local folder and click Clone.

2.2 Using the Command Line

git clone https://github.com/<your-username>/devsecops-k8s-demo.git
cd devsecops-k8s-demo

3. Explore VM Templates

Review and customize the VM provisioning templates:

  • Azure: setup/azure/
  • GCP: setup/gcp/

Integrate with Azure Resource Manager and Google Cloud Deployment Manager.

Watch Video

Watch video content

Previous
Section 2 Topics