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
M.-Leander Reimer (@lreimer), mario-leander.reimer@qaware.de
This software is provided under the MIT open source license, read the LICENSE
file for details.