base

by 99 Group

Helm chartv0.1.0App 1.0.0Apache-2.0Verified publisher

A Base or general chart for Kubernetes

About this chart

Base Chart

Our base chart is an open source project, initiated for creating base deployment templates in our common services. It can be used for any basic application you want to deploy over Kubernetes. Just customize with your purpose, and run it!

TL;DR

$ helm repo add 99group https://urbanindo.github.io/99-charts
$ helm install myrelease 99group/base

Introduction

[99 Group] (https://99.co) Engineers carefully design charts, are actively maintained, and are one of our company's standard ways to deploy services to Kubernetes Clusters. We are constantly improvising on each of our open source projects, so we look forward to user feedback on using this chart. We will be very happy if we continue to make improvements and add features in the future to make your work easier.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0

Installing the Chart

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

$ helm repo add 99group https://urbanindo.github.io/99-charts
$ helm install my-release 99group/base

These commands deploy our base chart on the Kubernetes cluster in the default configuration.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Common parameters

NameDescriptionValue
nameOverrideString to partially override image.fullname template (will maintain the release name)""
fullnameOverrideString to fully override image.fullname template""

Image parameters

NameDescriptionValue
image.repositorySource image repository, you can add fullpath of imagenginx
image.tagSource image tag (immutable tags are recommended)latest
image.pullPolicySource image pull policyIfNotPresent
imagePullSecretsSpecify docker-registry secret names as an array[]

Deployment parameters

NameDescriptionValue
replicaCountNumber of replicas to deploy1
configmap.enabledEnable configmapfalse
configmap.nameSet configmap namedemo
podAnnotationsAnnotations for Deployment pods{}
SecurityContext.capabilitiesEnabled Security Context with some capabilitiestrue
SecurityContext.readOnlyRootFilesystemSet Security Context readOnlyRootFilesystemtrue
SecurityContext.runAsUserSet Security Context runAsUser1001
SecurityContext.runAsNonRootSet Security Context runAsNonRoottrue
resources.limitsThe resources limits for the container{}
resources.requestsThe requested resources for the container{}
autoscaling.enabledEnable autoscaling for deploymentfalse
autoscaling.minReplicasMinimum number of replicas to scale back""
autoscaling.maxReplicasMaximum number of replicas to scale out""
autoscaling.targetCPUTarget CPU utilization percentage""
autoscaling.targetMemoryTarget Memory utilization percentage""
hpaAnnotations.enabledEnabling hpa annotations""
hpaAnnotations.prometheusServerSet destination prometheus server""
livenessCheck.enabledEnable livenessProbetrue
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe30
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
livenessProbe.failureThresholdFailure threshold for livenessProbe6
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessCheck.enabledEnable readinessProbetrue
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe5
readinessProbe.periodSecondsPeriod seconds for readinessProbe5
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe3
readinessProbe.failureThresholdFailure threshold for readinessProbe3
readinessProbe.successThresholdSuccess threshold for readinessProbe1
serviceAccount.createEnable creation of ServiceAccount for podfalse
serviceAccount.nameThe name of the ServiceAccount to use.""
serviceAccount.annotationsAnnotations for service account. Evaluated as a template.{}
nodeSelectorNode labels for pod assignment. Evaluated as a template.{}
tolerationsTolerations for pod assignment. Evaluated as a template.{}
affinityAffinity for pod assignment{}

Traffic Exposure parameters

NameDescriptionValue
service.typeService typeClusterIP
service.srcPortService Container source port80
service.dstPortDestination service expose port80
virtualService.enabledEnable virtual servicetrue
destinationRule.enabledEnable destination ruletrue
ingress.enabledSet to true to enable ingress record generationfalse
ingress.classNameSet class name for ingress""
ingress.annotationsIngress annotations{}
ingress.hostsDefault host for the ingress resource[]
ingress.tlsCreate TLS Secret[]

|

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install my-release \
  --set imagePullPolicy=Always \
    99group/base

The above command sets the imagePullPolicy to Always.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install my-release -f values.yaml 99group/base

Tip: You can use the default values.yaml

Troubleshooting

Find more information about how to deal with common errors related to 99 Group Helm charts in this troubleshooting guide.

Deploy base with OpenTenant

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