Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/lreimer/nextgen-iac-pulumi-java
- Owner: lreimer
- License: mit
- Created: 2024-10-27T08:53:18.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-27T22:24:03.000Z (2 months ago)
- Last Synced: 2024-10-28T11:25:48.739Z (2 months ago)
- Topics: java-spektrum, pulumi, pulumi-gcp, pulumi-java, pulumi-kubernetes, pulumi-test
- Language: Java
- Homepage:
- Size: 56.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 JavaRepository 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 > kubeconfigKUBECONFIG=$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.