service

by KvalitetsIT

Helm chartv1.33.48App 1.33.48Verified publisher

A Helm chart for deploying services

About this chart

Service Helm Chart

Deploys a generic service

Automatic generated readme.md

The readme.md file is automatic generated from the documentation-folder using github actions.

Installing

First add KvalitetsIT Helm repo to Helm

$ helm repo add KvalitetsIT https://raw.githubusercontent.com/KvalitetsIT/helm-repo/master/
$ helm repo update

Create values.yaml file with the parameters specified

Run Helm command:

$ helm install web-service KvalitetsIT/service -f myValues.yaml --version 1.0.3

Configuration

The following table, lists the configurable parameters.

ParameterDescriptionExample
Basics
fullnameOverrideName of the service
namespaceNamespace to deploy into
podSecurityContextpodSecurityContext
podAnnotationsAnnotations for the pod fx prometheusprometheus.io/path: actuator prometheus prometheus.io/scrape: "true"
serviceAccountNameserviceAccountName
imagePullSecretsimagePullSecrets
image.repositoryName of the web-service image
image.tagWeb-service image tag
autoscaling.enabledEnable autoscalingtrue or false
replicaCountNumber of replicas - Not used if autoscaling is enabled1, 2, 3 ..
deploymentStrategyEnables to set deployment strategyRecreate
affinityAffinity for pod assignment.
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: ``, soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: ``,soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
 
Deployment
deployment.enabledEnables the deploymenttrue or false
deployment.hostAliaseshostAliases
deployment.containerPortPort on web-service8080
deployment.extraContainerPortExtra port on deployment. Either name: port or `name: {port: , protocol: TCPUDP}`
deployment.configMapMountPathsSet value if config map needs to mount on deployment/config
deplyment.extraVolumeMountsExtra volume mounts
deplyment.readinessProbeSet values under this to config readiness probe
deplyment.livenessProbeSet values under this to config liveness probe
deplyment.commandsList of cronjob commands- /bin/bash
deplyment.argsList of arguments to the commands
deployment.priorityClassNameDeployment priorityClassName
Deployment - Environment variables
deployment.envMap of environment variables
deployment.env.{name}Name of the environment variables
deployment.env.{name}.valueValue of the environment variable
deployment.env.{name}.typeOptional: specify type of the environment variables if it should be read from a secret or configmap. One of fieldPath, secretKeyRef, configMapKeyReftype: secretKeyRef
deployment.env.{name}.fieldPathOptional: Value of fieldPath
deployment.env.{name}.nameOptional: Name of the SecretKeyRef or ConfigMapKeyRef
deployment.env.{name}.keyOptional: Key for the SecretKeyRef or ConfigMapKeyRef
deployment.envFromMap of environment variables
deployment.envFrom.configMapRefList of ConfigMaps to read environment variables -fromconfigMapRef:  - my-configmap
Deployment - Volume mounts
deployment.extraVolumeMountsExtra volume mounts
deployment.extraVolumeMounts.{name}Name of the extra volume mount. This must match the name of 'deployment.extraVolumes.{name}'
deployment.extraVolumeMounts.{name}.mountPathMountpath for the extr

Deploy service with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has service 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 chartservice is pinned at v1.33.48 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