dial

by dial

Helm chartv8.2.1App 1.50.0Verified publisher

Umbrella chart for DIAL solution

About this chart

dial

Umbrella chart for DIAL solution

Prerequisites

  • Helm 3.8.0+
  • PV provisioner support in the underlying infrastructure (optional)
  • Ingress controller support in the underlying infrastructure (optional)

Requirements

Kubernetes: >=1.23.0-0

RepositoryNameVersion
https://charts.dialx.aicore(dial-core)6.0.0
https://charts.dialx.aichat(dial-extension)3.2.0
https://charts.dialx.aithemes(dial-extension)3.2.0
https://charts.dialx.aiopenai(dial-extension)3.2.0
https://charts.dialx.aibedrock(dial-extension)3.2.0
https://charts.dialx.aivertexai(dial-extension)3.2.0
https://charts.dialx.aidial(dial-extension)3.2.0
https://charts.dialx.aimodelProvider(dial-extension)3.2.0
oci://registry-1.docker.io/bitnamichartscommon2.31.4

Installing the Chart

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

helm repo add dial https://charts.dialx.ai
helm install my-release dial/dial

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

Examples

Due to flexibility of the system, it's impossible to define default values for all parameters and cover all use cases.
However, we provide a set of examples that can be used as a good starting point for your own configuration.

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.

NOTE: Persistent Volumes created by StatefulSets won't be deleted automatically

Parameters

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

helm install my-release dial/dial --set chat.image.tag=latest

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

# values.yaml file content
chat:
  image:
    tag: latest
helm install my-release dial/dial -f values.yaml

NOTE: You can use the default values.yaml

Values

KeyTypeDefaultDescription
bedrock.commonLabels."app.kubernetes.io/component"string"adapter"
bedrock.enabledboolfalseEnable/disable ai-dial-adapter-bedrock
bedrock.image.repositorystring"epam/ai-dial-adapter-bedrock"
bedrock.image.tagstring"0.46.0"
bedrock.livenessProbe.enabledbooltrue
bedrock.readinessProbe.enabledbooltrue
bedrock.resourcesPresetstring"micro"
bedrock.secretsobject{}
chat.commonLabels."app.kubernetes.io/component"string"application"
chat.enabledbooltrueEnable/disable ai-dial-chat
chat.image.repositorystring"epam/ai-dial-chat"
chat.image.tagstring"1.3.1"
chat.livenessProbe.enabledbooltrue
chat.livenessProbe.failureThresholdint6
chat.livenessProbe.httpGet.pathstring"/api/health"
chat.readinessProbe.enabledbooltrue
chat.readinessProbe.failureThresholdint6
chat.readinessProbe.httpGet.pathstring"/api/health"
chat.resourcesPresetstring"small"
core.enabledbooltrueEnable/disable ai-dial-core
core.image.tagstring"0.50.1"
core.livenessProbe.enabledbooltrue
core.readinessProbe.enabledbooltrue
dial.commonLabels."app.kubernetes.io/component"string"adapter"
dial.enabledboolfalseEnable/disable ai-dial-adapter-dial
dial.image.repositorystring"epam/ai-dial-adapter-dial"
dial.image.tagstring"0.21.0"
dial.livenessProbe.enabledbooltrue
dial.readinessProbe.enabledbooltrue
dial.resourcesPresetstring"micro"
extraDeploylist[]
modelProvider.commonLabels."app.kubernetes.io/component"string"model-provider"
modelProvider.enabledboolfalseEnable/disable ai-dial-model-provider (experimental)
modelProvider.image.repositorystring"epam/ai-dial-model-provider"
modelProvider.image.tagstring"0.1.0"
modelProvider.livenessProbe.enabledbooltrue
modelProvider.nameOverridestring"model-provider"Resource names must be lowercase RFC 1123; the alias "modelProvider" is camelCase, so override the name
modelProvider.readinessProbe.enabledbooltrue
modelProvider.resourcesPresetstring"small"
modelProvider.secretsobject{}
openai.commonLabels."app.kubernetes.io/component"string"adapter"
openai.enabledboolfalseEnable/disable ai-dial-adapter-openai
openai.image.repositorystring"epam/ai-dial-adapter-openai"
openai.image.tagstring"0.46.0"
openai.livenessProbe.enabledbooltrue
openai.readinessProbe.enabledbooltrue
openai.resourcesPresetstring"micro"
themes.commonLabels."app.kubernetes.io/component"string"webserver"
themes.containerPorts.httpint8080
themes.containerSecurityContext.enabledbooltrue
themes.containerSecurityContext.runAsUserint101
themes.enabledbooltrueEnable/disable ai-dial-chat-themes
themes.image.repositorystring"epam/ai-dial-chat-themes"
themes.image.tagstring"0.22.0"
themes.livenessProbe.enabledbooltrue
themes.podSecurityContext.fsGroupint101
themes.readinessProbe.enabledbooltrue
vertexai.commonLabels."app.kubernetes.io/component"string"adapter"
vertexai.enabledboolfalseEnable/disable ai-dial-adapter-vertexai
vertexai.image.repositorystring"epam/ai-dial-adapter-vertexai"
vertexai.image.tagstring"0.42.0"
vertexai.livenessProbe.enabledbooltrue
vertexai.readinessProbe.enabledbooltrue
vertexai.resourcesPresetstring"small"

Valkey

Core application relies on in-memory NoSQL key-value database as a cache storage. Initially, the Helm chart was using Redis database, but starting from version 7.0.0, it is replaced with Valkey - due to its enhancements and permissive license.

By default, the Helm chart follows deploys dial-core sub-chart settings, which deploys Valkey in a standalone mode (single instance, no replicas) with ACL-based authentication disabled.

[!warning] It is strongly recommended to enable the authentication mechanism. An example of the configuration following the "least privilege" principles is provided below.

core:
  valkey:
    enabled: true
    auth:
      enabled: true
      usersExistingSecret: "dial-valkey-auth"
      aclUsers:
        default:
          passwordKey: "default-password"
          permissions: "on ~* allchannels +@read +@write +ping +info +@hash +@list +@pubsub +@scripting +TIME"

Adjusting memory

By default Valkey itself is configured with maxmemory 2G (two gigabytes) and container granted resources.limits.memory: 2Gi (two gibibytes). This creates an intentional gap due to SI units in application configuration and binary units in Kubernetes specification, thus helps to avoid OOM kills.

[!IMPORTANT] Both values must be updated in pair when you adjust cache capacity

core:
  valkey:
    resources:
      limits:
        memory: 4Gi
      requests:
        memory: 4Gi
    valkeyConfig: |
      maxmemory 4G
      maxmemory-policy volatile-lfu

Use an external Valkey database

You may want the application to connect to an external Valkey (or Redis-compatible) database rather than the one provided by the Helm chart - for example, when using a cloud-managed service such as AWS ElastiCache or Azure Cache for Redis. To do this, set core.valkey.enabled to false and specify the connection details:

core:
  valkey:
    enabled: false
  env:
    aidial.redis.singleServerConfig.address: "redis://myexternalhost:6379"
  secrets:
    aidial.redis.singleServerConfig.password: "mypassword"

Upgrading

To 8.0.0

[!CAUTION] The upgrade includes BREAKING CHANGES and require MANUAL ACTIONS.

In this version, we've made the following component changes, some of which require manual actions:

  • The keycloak Helm chart dependency was removed from the DIAL chart.
  • The bundled ai-dial-chat image was upgraded from 0.49.0 to 1.1.0.

Keycloak

The DIAL chart no longer deploys or manages Keycloak. If you use the Keycloak deployment previously installed by this chart:

  1. Back up the Keycloak configuration and database before upgrading.
  2. Prepare an external Keycloak deployment from backup.
  3. Remove the keycloak section from values.yaml and any keycloak.* Helm --set arguments.
  4. Remove obsolete Keycloak resources and PVCs only after confirming that the replacement deployment is working and the backup is no longer required.

DIAL Chat

The bundled ai-dial-chat image is upgraded from the 0.x release line to the 1.x release line.

  1. Review and migrate custom Chat environment variables because environment variable names and configuration have changed between the 0.x and 1.x releases. Use the Migrating from the Legacy DIAL Chat documentation as a reference.

To 7.0.0

[!CAUTION] The upgrade includes BREAKING CHANGES and require MANUAL ACTIONS. Find detailed information about this Valkey configuration block in Valkey README.md.

In this version, we've updated the following underlying dependencies, some of which require manual actions:

  • dial/dial-core Helm chart version bumped from 5.2.0 to 6.0.0
    • bitnami/redis-cluster Helm chart replaced with valkey/valkey Helm chart
      • Redis replaced with Valkey database
      • Cluster architecture (multiple master nodes, or shards) replaced with Standalone architecture (single node, no replicas). For production usage you should review your HA architecture/scale strategy and adjust accordingly.

In-house deployment

  1. Replace core.redis to core.valkey in values.yaml:

    core:
    -  redis:
    +  valkey:
        enabled: true
    
  2. Replace credentials configuration in values.yaml, based on your existing approach:

    Option 1: inline password (previously core.redis.password)

    Before:

    core:
      redis:
        enabled: true
        password: "%%REDIS_PASSWORD%%"
    

    After:

    core:
      valkey:
        enabled: true
        auth:
          enabled: true
          aclUsers:
            default:
              password: "%%REDIS_PASSWORD%%"
    

    Option 2: existing Kubernetes secret (previously core.redis.existingSecret + core.redis.existingSecretPasswordKey)

    Before:

    core:
      redis:
        enabled: true
        existingSecret: "my-redis-secret"
        existingSecretPasswordKey: "redis-password"
    

    After:

    core:
      valkey:
        enabled: true
        auth:
          enabled: true
          usersExistingSecret: "my-redis-secret"
          aclUsers:
            default:
              passwordKey: "redis-password"
    
  3. Ensure no other core.redis configuration blocks left in values.yaml or Helm --set arguments, otherwise migrate them according to Valkey Helm chart documentation

  4. Run helm upgrade command with usual arguments, new 7.X.X chart version

  5. Manually delete the Redis-related PVCs

External Valkey deployment

  1. Replace core.redis to core.valkey in values.yaml:

    core:
    -  redis:
    +  valkey:
        enabled: false
    

To 6.0.0

[!CAUTION] The upgrade includes BREAKING CHANGES and require MANUAL ACTIONS.

In this version, we've updated the following underlying dependencies, some of which require manual actions:

  • bitnami/keycloak Helm chart version bumped from to 24.4.3 to 24.9.0
    • keycloak version bumped from 26.0.8 to 26.3.2
    • keycloakCli version changed to adorsys/keycloak-config-cli:6.4.0-26.1.0
    • bitnami/postgresql Helm chart from 16.4.3 to 16.6.6
      • postgresql version bumped from 17.2.0 to 17.6.0
  • dial/dial-core Helm chart version bumped from to 4.3.1 to 5.1.1
    • bitnami/redis-cluster Helm chart version bumped from to 11.4.0 to 13.0.4
      • redis version bumped from 7.4.2 to 8.2.1
  • dial/dial-extension Helm charts version bumped from to 1.3.3 to 2.2.1
  • bitnami/common Helm chart version bumped from to 2.29.0 to 2.31.4

Keycloak

[!TIP] If you don't use Keycloak, disregard the information below and proceed to the next step.

Please refer to the official documentation for more details:

  • [bitnami/keycloak helm chart changelog](https:/

Deploy dial with OpenTenant

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