Using Cloud Native Buildpacks and Spring Boot Helm starter you can deploy a Spring Boot app to Kubernetes with no Dockerfile and no YAML files!
Create and publish a Docker image using Cloud Native Buildpacks (you don't need a Dockerfile!):
$ pack build myrepo/noyaml --publish
Make sure to install Spring Boot Helm starter to generate Kubernetes descriptors.
Generate Kubernetes descriptors using Helm:
$ helm create --starter=spring-boot noyaml
Edit generated file noyaml/values.yml
and set your Docker image:
image:
repository: myrepo/noyaml
You are now ready to deploy this app using Helm (don't write YAML files to deploy an app to Kubernetes!):
$ helm install --namespace noyaml noyaml
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.