microservice

by genofire

Helm chartv0.1.8App 0.1.2

Basic helm chart for deploying microservices on kubernetes with best practices

About this chart

microservice

Basic helm chart for deploying microservices on kubernetes with best practices

Maintainers

NameEmailUrl
Ashwani Singh[email protected]
Shikha Tripathi

Installing the Chart

To install the chart with the release name my-release:

helm install my-release microservice/

Values

KeyTypeDefaultDescription
deploymentobject{"affinity":{},"annotations":{},"environment":{},"image":{"name":"","pullPolicy":"IfNotPresent","tag":""},"livenessProbe":{"failureThreshold":5,"initialDelaySeconds":250,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":5},"nodeSelector":{},"readinessProbe":{"failureThreshold":5,"initialDelaySeconds":30,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":5},"resources":{},"tolerations":[],"volumeMounts":[],"volumes":{"configMaps":null,"enabled":true,"pvc":{"accessModes":["ReadWriteOnce"],"class":"default","enabled":false,"existing_claim":false,"mountPath":"/pv","name":"pvc","size":"1G"}}}Object that configures Deployment instance
deployment.imageobject{"name":"","pullPolicy":"IfNotPresent","tag":""}Override default container image format
globalobject{"environment":{},"fullnameOverride":"","imagePullSecrets":[],"nameOverride":"","namespace":"default","replicaCount":1}global variables
hpa.enabledbooltrue
hpa.maxReplicasint1
hpa.minReplicasint1
hpa.targetCPUint80
hpa.targetMemoryint80
kubeVersionstring""
service.annotationsobject{}
service.specs[0].namestring"http"
service.specs[0].portint80
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.automountbooltrue
serviceAccount.createboolfalse
serviceAccount.namestring""

NOTE: Please find the sample helm values yaml in example repository.

Deploy microservice with OpenTenant

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