mcicolella / springboot-helm-chart

springboot2 on k8s demo, helm chart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Boot Application Helm Chart Example

Update 2021/9/6:

  • springboot: 2.3.12
  • helm template updated for Kubernetes 1.19

Build and push docker image

Rename image in demoweb/docker-compose.yml.

build:
    context: .
image: binblee/springboot-helm-chart

Build docker image use docker-compose command.

cd demoweb
docker-compose build
docker push xxxx

If you prefer classic docker command line, run these:

cd demoweb
docker build -t xxxx .
docker push xxxx

Deploy using helm

Rename image image.repository and tag in demoweb/charts/values.yaml.

image:
  repository: binblee/springboot-helm-chart
  tag: openjdk-9-jre

You should have a running Kubernetes cluster and helm installed before proceed.

Deploy application using helm.

cd demoweb/charts
helm install demo -n springboot-demoweb ./springboot-demoweb/ 

About

springboot2 on k8s demo, helm chart

License:MIT License


Languages

Language:Java 48.3%Language:Mustache 26.1%Language:Dockerfile 25.6%