Deploy helm chart
Introduction
This chart bootstraps a deployment on a Kubernetes cluster using Helm package manager.
Prerequisites
The code was tested on Kubernetes cluster (v1.21.11) with Istio (1.12.6)
It is possible to use other versions, but it hasn't been tested
Operation system
The code works in Debian-based Linux (Debian 10 and Ubuntu 20.04) and Windows WSL 2. Also, it works but is not guaranteed in Google Cloud Shell. All other operating systems, including macOS, are not verified and supported.
Packages
Packages are only needed for installation from a local computer.
Installation
Before installing deploy Helm chart you need to install configmap Helm chart. First you need to set variables in values.yaml file using any code editor. Some of the values are prefilled, but you need to specify some values as well. You can find more information about them below.
Global variables
Name | Description | Type | Default | Required |
---|---|---|---|---|
global.domain | your domain for the external endpoint, ex example.com
|
string | - | yes |
global.onPremEnabled | whether on-prem is enabled | boolean | false |
yes |
global.limitsEnabled | whether CPU and memory limits are enabled | boolean | true |
yes |
global.logLevel | severity of logging level | string | ERROR |
yes |
global.tier | Only PROD must be used to enable autoscaling | string | "" | no |
global.autoscaling | enables horizontal pod autoscaling, when tier=PROD | boolean | true | yes |
Configmap variables
Name | Description | Type | Default | Required |
---|---|---|---|---|
data.logLevel | logging severity level for this service only | string | - | yes, only if differs from the global.logLevel
|
data.entitlementsHost | entitlements service host address | string | http://entitlements |
yes |
data.registerHost | register service host address | string | http://register |
yes |
data.partitionHost | partition service host address | string | http://partition |
yes |
data.redisNotificationHost | The host for redis instance. If empty, helm installs an internal redis instance | string | redis-notification |
yes |
data.redisNotificationPort | The port for redis instance | digit | 6379 |
yes |
Deployment variables
Name | Description | Type | Default | Required |
---|---|---|---|---|
data.requestsCpu | amount of requested CPU | string | 10m |
yes |
data.requestsMemory | amount of requested memory | string | 512Mi |
yes |
data.limitsCpu | CPU limit | string | 1 |
only if global.limitsEnabled is true |
data.limitsMemory | memory limit | string | 1.5G |
only if global.limitsEnabled is true |
data.serviceAccountName | name of your service account | string | notification |
yes |
data.imagePullPolicy | when to pull image | string | IfNotPresent |
yes |
data.image | service image | string | - | yes |
data.redisImage | redis image | string | redis:7 |
yes |