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
| Name | Url | |
|---|---|---|
| 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
| Key | Type | Default | Description |
|---|---|---|---|
| deployment | object | {"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.image | object | {"name":"","pullPolicy":"IfNotPresent","tag":""} | Override default container image format |
| global | object | {"environment":{},"fullnameOverride":"","imagePullSecrets":[],"nameOverride":"","namespace":"default","replicaCount":1} | global variables |
| hpa.enabled | bool | true | |
| hpa.maxReplicas | int | 1 | |
| hpa.minReplicas | int | 1 | |
| hpa.targetCPU | int | 80 | |
| hpa.targetMemory | int | 80 | |
| kubeVersion | string | "" | |
| service.annotations | object | {} | |
| service.specs[0].name | string | "http" | |
| service.specs[0].port | int | 80 | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.automount | bool | true | |
| serviceAccount.create | bool | false | |
| serviceAccount.name | string | "" |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmicroservice is pinned at v0.1.8 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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