This project provides a simple way to generate Kubernetes descriptors using Helm, in order to deploy a Spring Boot app. Using a single command, you create YAML files for your app: you just need to customize these descriptors to set your container image, and you're done.
The generated descriptors support these features:
- app deployment with healthchecks & replication
- Spring Cloud Kubernetes support
(
ConfigMap
,Secret
, service discovery, client-side load balancing) - default
ConfigMap
configuration - Prometheus support
Using this Helm starter you don't need to write YAML files anymore!
Install this repository in your local Helm starter repository:
$ git clone https://github.com/alexandreroman/spring-boot-helm-starter.git $HOME/.helm/starters/spring-boot
Create an Helm chart for your app:
$ helm create --starter=spring-boot myapp
Creating myapp
Edit generated file myapp/values.yml
and set your Docker image:
image:
repository: myrepo/myapp
As you can see, you can also set some properties in this file,
such as ConfigMap
entries.
You are now ready to deploy your app using Helm:
$ helm install --namespace myns myapp
Contributions are always welcome!
Feel free to open issues & send PR.
Copyright © 2019 Pivotal Software, Inc.
This project is licensed under the Apache Software License version 2.0.