base

by Helm

Helm chartv1.0.0App 3.14MIT

A starter Helm chart for Kubernetes

About this chart

base

Helm chart deploying base.

TODO

  • Update values.schema.json

TL;DR

helm repo add vulcanlink https://vulcanlink.github.io/charts/
helm install my-release vulcanlink/base

Introduction

This chart bootstraps a base deployment on a Kubernetes cluster using the Helm package manager.

Vulcan Link charts can be used for deployment and management of Helm Charts in Kubernetes clusters.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.0+
  • PV provisioner support in the underlying infrastructure

Installing the Chart

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

helm install my-release vulcanlink/base

The command deploys the chart on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

Parameters

The following tables lists the configurable parameters of the chart and their default values.

ParameterDescriptionDefault
global.imageRegistryGlobal Docker Image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
global.storageClassGlobal storage class for dynamic provisioningnil
image.tagImage tag{TAG_NAME}
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsSpecify Image pull secretsnil (does not add image pull secrets to deployed pods)
image.commandSpecify Image run commandnil
image.argsSpecify Image run command argsnil
nameOverrideString to partially override base.fullname template with a string (will prepend the release name)nil
fullnameOverrideString to fully override base.fullname template with a stringnil
container.portsContainer portssee values.yaml
serviceKubernetes Servicessee values.yaml
prometheusEnable prometheus metricsfalse
configmap.envKey-value of env configmap which injects environment variables into pods{}
configmap.filesKey-value of files configmap which mounts files to pods{}
initContainersList of initcontainers run in order. Useful for running custom config scripts[]
persistence.enabledEnable persistent storagefalse
serviceAccount.createCreate a Service Account for the podtrue
resourcesKubernetes resource limits{}
nodeSelectorAssign pods based on node tags{}
affiinityNode affinity{}

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

helm install my-release --set image.tag=0.10.3 vulcanlink/base

The above command overrides the default Docker image tag, installing a custom version.

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 vulcanlink/base

Tip: You can use the default values.yaml

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 v1.0.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