- A Spring Boot microservice
- VM configuration templates for Azure and GCP
- Automated setup scripts for software installation
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 |
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 namedkubernetes-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.
- On GitHub, go to Your repositories > Import repository.
- Paste the source URL:
- Name your repo, e.g.,
devsecops-k8s-demo. - Click Begin import and wait for completion.
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:2.1 Using GitHub Desktop
- Open GitHub Desktop.
- Select File > Clone Repository.
- Under the URL tab, enter:
- Choose a local folder and click Clone.
2.2 Using the Command Line
3. Explore VM Templates
Review and customize the VM provisioning templates:- Azure:
setup/azure/ - GCP:
setup/gcp/