dial-extension
by dial
Helm chart for dial extensions
About this chart
dial-extension
Helm chart for dial extensions
TL;DR
helm repo add dial https://charts.dialx.ai
helm install my-release dial/dial-extension --set image.repository=epam/ai-dial-adapter-openai
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
| Repository | Name | Version |
|---|---|---|
| oci://registry-1.docker.io/bitnamicharts | common | 2.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-extension
The command deploys dial-extension on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
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-extension --set image.repository=epam/ai-dial-adapter-openai
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
image:
repository: epam/ai-dial-adapter-openai
helm install my-release dial/dial-extension -f values.yaml
NOTE: You can use the default values.yaml
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity for dial-extension pods assignment |
| args | list | [] | Override default args (useful when using custom images) |
| automountServiceAccountToken | bool | false | Mount Service Account token in pods |
| autoscaling.hpa | object | Documentation | Horizontal Pod Autoscaler (HPA) settings |
| autoscaling.hpa.annotations | object | {} | Annotations for HPA resource |
| autoscaling.hpa.behavior | object | {} | HPA Behavior |
| autoscaling.hpa.customRules | list | [] | HPA Custom rules |
| autoscaling.hpa.enabled | bool | false | Enable HPA |
| autoscaling.hpa.maxReplicas | int | 3 | Maximum number of replicas |
| autoscaling.hpa.minReplicas | int | 1 | Minimum number of replicas |
| autoscaling.hpa.targetCPU | string | "" | Target CPU utilization percentage |
| autoscaling.hpa.targetMemory | string | "" | Target Memory utilization percentage |
| command | list | [] | Override default command (useful when using custom images) |
| commonAnnotations | object | {} | Annotations to add to all deployed objects |
| commonLabels | object | {} | Labels to add to all deployed objects |
| containerPorts.http | int | 5000 | dial-extension HTTP container port |
| containerPorts.metrics | int | 9464 | dial-extension HTTP container port for metrics |
| containerSecurityContext | object | Documentation | Container Security Context Configuration |
| containerSecurityContext.allowPrivilegeEscalation | bool | false | Set dial-extension container's Security Context allowPrivilegeEscalation |
| containerSecurityContext.capabilities | object | {"drop":["ALL"]} | Set dial-extension container's Security Context capabilities |
| containerSecurityContext.enabled | bool | true | Enabled dial-extension container's Security Context |
| containerSecurityContext.privileged | bool | false | Set dial-extension container's Security Context privileged |
| containerSecurityContext.readOnlyRootFilesystem | bool | true | Set dial-extension containers' Security Context runAsNonRoot |
| containerSecurityContext.runAsGroup | int | 1001 | Set dial-extension container's Security Context runAsGroup |
| containerSecurityContext.runAsNonRoot | bool | true | Set dial-extension containers' Security Context runAsNonRoot |
| containerSecurityContext.runAsUser | int | 1001 | Set dial-extension container's Security Context runAsUser |
| containerSecurityContext.seLinuxOptions | object | {} | Set dial-extension SELinux options in container |
| containerSecurityContext.seccompProfile.type | string | "RuntimeDefault" | Set dial-extension container's Security Context seccomp profile |
| customLivenessProbe | object | {} | Custom livenessProbe that overrides the default one |
| customReadinessProbe | object | {} | Custom readinessProbe that overrides the default one |
| customStartupProbe | object | {} | Custom startupProbe that overrides the default one |
| diagnosticMode.enabled | bool | false | Enable diagnostic mode (all probes will be disabled) |
| env | object | {} | Key-value pairs extra environment variables to add to dial-extension |
| extraContainerPorts | list | [] | Optionally specify extra list of additional ports for dial-extension containers |
| extraDeploy | list | [] | Array of extra objects to deploy with the release |
| extraEnvVars | list | [] | Array containing extra env vars to add to the dial-extension application container |
| extraEnvVarsCM | string | "" | Name of existing ConfigMap containing extra env vars for dial-extension containers |
| extraEnvVarsSecret | string | "" | Name of existing Secret containing extra env vars for dial-extension containers |
| extraVolumeMounts | list | [] | Optionally specify extra list of additional volumeMounts for the dial-extension container(s) |
| extraVolumes | list | [] | Optionally specify extra list of additional volumes for the dial-extension pod(s) |
| fullnameOverride | string | "" | String to fully override common.names.fullname |
| global.compatibility.openshift.adaptSecurityContext | string | "disabled" | |
| global.imagePullSecrets | list | [] | Global Docker registry secret names as an array |
| global.imageRegistry | string | "" | Global Docker image registry |
| global.storageClass | string | "" | Global StorageClass for Persistent Volume(s) |
| hostAliases | list | [] | dial-extension pods host aliases Documentation |
| hostNetwork | bool | false | Enable Host Network If hostNetwork true, then dnsPolicy is set to ClusterFirstWithHostNet |
| httpRoute | object | Documentation | HTTPRoute configuration (Gateway API) |
| httpRoute.annotations | object | {} | Additional annotations for the HTTPRoute resource |
| httpRoute.enabled | bool | false | Enable HTTPRoute resource creation |
| httpRoute.hostnames | list | [] | Hostnames to match for routing |
| httpRoute.parentRefs | list | [] | Gateway parent references (required when enabled) Documentation |
| httpRoute.rules | list | [] | Custom routing rules. When empty, a default rule is created that routes all traffic (PathPrefix /) to the service Documentation |
| image | object | Documentation | Section to configure the image. |
| image.digest | string | "" | Image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag image tag (immutable tags are recommended) |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| image.pullSecrets | list | [] | Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. Documentation |
| image.registry | string | "docker.io" | Image registry |
| image.repository | string | "" | Image repository e.g: epam/ai-dial-adapter-openai |
| image.tag | string | "latest" | Image tag (immutable tags are recommended) |
| ingress | object | Documentation | Ingress configuration |
| ingress.annotations | object | {} | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. Use this parameter to set the required annotations for cert-manager |
| ingress.enabled | bool | false | Enable ingress record generation for container |
| ingress.extraPaths | list | [] | An array with additional arbitrary paths that may need to be added to the ingress under the main host |
| ingress.extraRules | list | [] | An array with additional hostname(s) to be covered with the ingress record |
| ingress.hosts | list | ["dial-extension.local"] | An array with hostname(s) to be covered with the ingress record |
| ingress.ingressClassName | string | "" | IngressClass that will be be used to implement the Ingress Documentation |
| ingress.path | string | "/" | Default path for the ingress record NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers |
| ingress.pathType | string | "Prefix" | Ingress path type |
| ingress.serviceName | string | "" | Change default name of service for the ingress record |
| ingress.tls | list | [] | TLS configuration for additional hostname(s) to be covered with this ingress record (evaluated as a template) Documentation |
| initContainers | list | [] | Add additional init containers to the dial-extension pod(s) Documentation |
| lifecycleHooks | object | {} | for the dial-extension container(s) to automate configuration before or after startup |
| livenessProbe | object | Documentation | Liveness Probes configuration |
| livenessProbe.enabled | bool | false | Enable/disable livenessProbe |
| metrics | object | Documentation | Configuration resources for prometheus metrics |
| metrics.enabled | bool | false | Enable the export of Prometheus metrics |
| metrics.prometheusRule.annotations | object | {} | Additional custom annotations for the prometheusRule |
| metrics.prometheusRule.enabled | bool | false | Creates a Prometheus Operator prometheusRule |
| metrics.prometheusRule.labels | object | {} | Additional labels that can be used so prometheusRule will be discovered by Prometheus |
| metrics.prometheusRule.namespace | string | "" | Namespace for the prometheusRule Resource (defaults to the Release Namespace) |
| metrics.prometheusRule.rules | list | [] | Prometheus Rule definitions |
| metrics.service | object | - | Dedicated Kubernetes Service for dial-extension metrics configuration |
| metrics.service.annotations | object | {} | Additional custom annotations for dial-extension metrics service |
| metrics.service.clusterIP | string | "" | metrics service Cluster IP clusterIP: None |
| metrics.service.externalTrafficPolicy | string | "Cluster" | dial-extension metrics service external traffic policy Documentation |
| metrics.service.extraPorts | list | [] | Extra ports to expose in dial-extension metrics service (normally used with the sidecars value) |
| metrics.service.loadBalancerIP | string | "" | dial-extension metrics service Load Balancer IP |
| metrics.service.loadBalancerSourceRanges | list | [] | dial-extension metrics service Load Balancer sources |
| metrics.service.nodePorts.http | string | "" | Node port for metrics NOTE: choose port between <30000-32767> |
| metrics.service.ports | object | {"http":9464} | dial-extension metrics service port |
| metrics.service.ports.http | int | 9464 | dial-extension metrics service port |
| metrics.service.sessionAffinity | string | "None" | Control where client requests go, to the same pod or round-robin Values: ClientIP or None |
| metrics.service.sessionAffinityConfig | object | {} | Additional settings for the sessionAffinity |
| metrics.service.type | string | "ClusterIP" | dial-extension metrics service type |
| metrics.serviceMonitor | object | Documentation | Prometheus Operator ServiceMonitor configuration |
| metrics.serviceMonitor.annotations | object | {} | Additional custom annotations for the ServiceMonitor |
| metrics.serviceMonitor.convertClassicHistogramsToNHCB | string | nil | Whether Prometheus should convert classic histograms to native histograms with custom buckets (NHCB) while scraping. Useful when the application exposes only classic histograms. Not set by default (Prometheus default is used) NOTE: requires Prometheus >= v3.0.0 and Prometheus Operator >= v0.82.0 e.g: convertClassicHistogramsToNHCB |
Deploy dial-extension with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dial-extension 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 chartdial-extension is pinned at v3.2.0 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