Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.24 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.24 KB

Maven Java CI with Maven

Next-Generation Infrastructure as Code

Cloud Infrastructure with Pulumi and Java

Repository for JAVASpektrum article on next generation Infrastructure as Code using Pulumi and Java.

In this repository, we will build a complete infrastructure for a microservice application in the Google Cloud Platform (GCP) as an example. To operate the application, we need an artifact registry to store the Docker image, a Kubernetes cluster to execute it, and a PostgreSQL database to store data. Finally, the microservice will be deployed to Kubernetes. Built entirely using Pulumi and Java.

# to create the entire infrastructure
pulumi up

# obtain kubeconfig and get resources
pulumi stack output kubeconfig --show-secrets > kubeconfig

KUBECONFIG=$PWD/kubeconfig kubectl cluster-info
KUBECONFIG=$PWD/kubeconfig kubectl get nodes
KUBECONFIG=$PWD/kubeconfig kubectl get --namespace microservice all

# to destroy the entire infrastructure
pulumi destroy

Maintainer

M.-Leander Reimer (@lreimer), mario-leander.reimer@qaware.de

License

This software is provided under the MIT open source license, read the LICENSE file for details.