Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lreimer/nextgen-iac-pulumi-java

Repository for JAVASpektrum article on next generation Infrastructure as Code using Pulumi and Java.
https://github.com/lreimer/nextgen-iac-pulumi-java

java-spektrum pulumi pulumi-gcp pulumi-java pulumi-kubernetes pulumi-test

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

![Maven Java CI with Maven](https://github.com/lreimer/nextgen-iac-pulumi-java/actions/workflows/maven.yml/badge.svg)

# 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.

```bash
# 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),

## License

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