spring-boot-api-app

by piomin

Helm chartv0.4.0App 1.0.0Verified publisher

A Helm chart for Kubernetes

About this chart

Helm Chart for Spring Boot REST App

Parameters

General

NameDescriptionValue
replicaCountNumber of replicas1
envsList of environment variables (name, value)[]
portsList of exposed ports (name, value)[{name: http, value: 8080}]

Image parameters

NameDescriptionValue
image.repositoryImage repositorypiomin/sample-spring-kotlin-microservice
image.tagImage tag (immutable tags are recommended)1.1

Application parameters

NameDescriptionValue
app.nameThe name of deploymentsample-spring-boot-api
app.environmentThe value of env labeldev
app.ownerThe value of owner labeldefault

Global

NameDescriptionValue
nameOverrideThe name of chart``
fullnameOverrideThe name of app``

Resources

NameDescriptionValue
resources.limits.cpuLimit for CPU1000m
resources.limits.memoryLimit for memory512Mi
resources.requests.cpuRequest for CPU100m
resources.requests.memoryRequest for memory256Mi

Liveness probe

NameDescriptionValue
liveness.initialDelaySecondsSeconds to wait after container start10
liveness.portName or number of the probed porthttp
liveness.pathHTTP path of the probe/actuator/health/liveness
liveness.timeoutSecondsNumber of seconds after which the probe times out3
liveness.failureThresholdNumber of max failures in row3
liveness.successThresholdMinimum consecutive successes to be successful1
liveness.periodSecondsHow often (in seconds) to perform the probe5

Readiness probe

NameDescriptionValue
readiness.initialDelaySecondsSeconds to wait after container start10
readiness.portName or number of the probed porthttp
readiness.pathHTTP path of the probe/actuator/health/readiness
readiness.timeoutSecondsNumber of seconds after which the probe times out3
readiness.failureThresholdNumber of max failures in row3
readiness.successThresholdMinimum consecutive successes to be successful1
readiness.periodSecondsHow often (in seconds) to perform the probe5

Envs

NameDescriptionValue
envsList of included environment variables to container[]
extraEnvVarsSecretList of included secret env refs to container[]
extraEnvVarsConfigMapList of included configmap env refs to container[]

Each item of extraEnvVarsSecret and extraEnvVarsConfigMap has the form envVarName, key, name (variable name, key in the Secret/ConfigMap, name of the Secret/ConfigMap). They are rendered even when envs is empty. Values of envs are always rendered as strings.

Secrets

NameDescriptionValue
secrets.enabledCreate a Secret from secrets.values and inject it with envFromfalse
secrets.valuesMap of keys and values stored in the Secret{}

Ingress

NameDescriptionValue
ingress.enabledCreate an Ingressfalse
ingress.classNameingressClassName (omitted when empty)``
ingress.hostHost of the rule, app.name when empty``
ingress.pathPath of the rule/
ingress.pathTypePrefix, Exact or ImplementationSpecificPrefix
ingress.servicePortName of the Service port the Ingress routes tohttp
ingress.annotationsIngress annotations{}
ingress.tlsIngress TLS configuration (list as in the Ingress API)[]

Deploy spring-boot-api-app with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has spring-boot-api-app on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartspring-boot-api-app is pinned at v0.4.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply