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/File | Description | Path |
---|---|---|
Spring Boot app | Java source code and pom.xml for Maven build | / |
setup/azure | ARM templates and scripts for provisioning on Azure | /setup/azure |
setup/gcp | Deployment Manager files for GCP VM configuration | /setup/gcp |
scripts | Shell 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:
- Navigate to the original repo:
https://github.com/<original-username>/kubernetes-devops-security
- Click Fork (top-right corner) to duplicate under your account.
Alternatively, import it as a new repository:
- On GitHub, go to Your repositories > Import repository.
- Paste the source URL:
https://github.com/<original-username>/kubernetes-devops-security.git
- Name your repo, e.g.,
devsecops-k8s-demo
. - 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
- Open GitHub Desktop.
- Select File > Clone Repository.
- Under the URL tab, enter:
https://github.com/<your-username>/devsecops-k8s-demo.git
- 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.
Links and References
- Spring Boot Documentation
- Azure Quickstart Templates
- GCP Deployment Manager
- GitHub Fork a Repo
- Git CLI Documentation
Watch Video
Watch video content