Skip to content

Commit

Permalink
chore: update chart dependencies (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
nepalevov authored Dec 11, 2023
1 parent 5e07fd9 commit 8a2d6eb
Show file tree
Hide file tree
Showing 14 changed files with 550 additions and 36 deletions.
18 changes: 9 additions & 9 deletions charts/dial/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,42 @@ dependencies:
repository: https://charts.epam-rail.com
alias: authhelper
condition: authhelper.enabled
version: 1.0.0
version: 1.0.1
- name: dial-core
repository: https://charts.epam-rail.com
alias: core
condition: core.enabled
version: 1.0.0
version: 1.0.1
- name: dial-extension
repository: https://charts.epam-rail.com
alias: chat
condition: chat.enabled
version: 1.0.0
version: 1.0.1
- name: dial-extension
repository: https://charts.epam-rail.com
alias: themes
condition: themes.enabled
version: 1.0.0
version: 1.0.1
- name: dial-extension
repository: https://charts.epam-rail.com
alias: openai
condition: openai.enabled
version: 1.0.0
version: 1.0.1
- name: dial-extension
repository: https://charts.epam-rail.com
alias: bedrock
condition: bedrock.enabled
version: 1.0.0
version: 1.0.1
- name: dial-extension
repository: https://charts.epam-rail.com
alias: vertexai
condition: vertexai.enabled
version: 1.0.0
version: 1.0.1
- name: dial-extension
repository: https://charts.epam-rail.com
alias: assistant
condition: assistant.enabled
version: 1.0.0
version: 1.0.1
description: Umbrella chart for DIAL solution
home: https://epam-rail.com
icon: "https://docs.epam-rail.com/img/favicon.ico"
Expand All @@ -65,4 +65,4 @@ maintainers:
name: dial
sources:
- https://github.com/epam/ai-dial-helm/tree/main/charts/dial
version: 1.1.0
version: 1.1.1
34 changes: 16 additions & 18 deletions charts/dial/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
# dial

![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ![AppVersion: 1.0](https://img.shields.io/badge/AppVersion-1.0-informational?style=flat-square)
![Version: 1.1.1](https://img.shields.io/badge/Version-1.1.1-informational?style=flat-square) ![AppVersion: 1.0](https://img.shields.io/badge/AppVersion-1.0-informational?style=flat-square)

Umbrella chart for DIAL solution

## TL;DR

```console
helm repo add dial https://charts.epam-rail.com
helm install --name my-release dial/dial
```

## Prerequisites

- Helm 3.8.0+
Expand All @@ -25,14 +18,14 @@ Kubernetes: `>=1.23.0-0`
|------------|------|---------|
| https://charts.bitnami.com/bitnami | common | 2.2.4 |
| https://charts.bitnami.com/bitnami | keycloak | 16.0.5 |
| https://charts.epam-rail.com | core(dial-core) | 1.0.0 |
| https://charts.epam-rail.com | authhelper(dial-extension) | 1.0.0 |
| https://charts.epam-rail.com | chat(dial-extension) | 1.0.0 |
| https://charts.epam-rail.com | themes(dial-extension) | 1.0.0 |
| https://charts.epam-rail.com | openai(dial-extension) | 1.0.0 |
| https://charts.epam-rail.com | bedrock(dial-extension) | 1.0.0 |
| https://charts.epam-rail.com | vertexai(dial-extension) | 1.0.0 |
| https://charts.epam-rail.com | assistant(dial-extension) | 1.0.0 |
| https://charts.epam-rail.com | core(dial-core) | 1.0.1 |
| https://charts.epam-rail.com | authhelper(dial-extension) | 1.0.1 |
| https://charts.epam-rail.com | chat(dial-extension) | 1.0.1 |
| https://charts.epam-rail.com | themes(dial-extension) | 1.0.1 |
| https://charts.epam-rail.com | openai(dial-extension) | 1.0.1 |
| https://charts.epam-rail.com | bedrock(dial-extension) | 1.0.1 |
| https://charts.epam-rail.com | vertexai(dial-extension) | 1.0.1 |
| https://charts.epam-rail.com | assistant(dial-extension) | 1.0.1 |

## Installing the Chart

Expand All @@ -43,7 +36,12 @@ helm repo add dial https://charts.epam-rail.com
helm install --name my-release dial/dial
```

The command deploys dial on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation.
The command deploys AI DIAL on the Kubernetes cluster with default configuration. The [Parameters](#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](examples) that can be used as a good starting point for your own configuration.

## Uninstalling the Chart

Expand Down Expand Up @@ -128,4 +126,4 @@ helm install my-release dial/dial -f values.yaml
| vertexai.commonLabels."app.kubernetes.io/component" | string | `"adapter"` | |
| vertexai.enabled | bool | `false` | Enable/disable ai-dial-adapter-vertexai |
| vertexai.image.repository | string | `"epam/ai-dial-adapter-vertexai"` | |
| vertexai.image.tag | string | `"0.2.0"` | |
| vertexai.image.tag | string | `"0.2.0"` | |
16 changes: 7 additions & 9 deletions charts/dial/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

{{ template "chart.description" . }}

## TL;DR

```console
helm repo add dial https://charts.epam-rail.com
helm install --name my-release dial/dial
```

## Prerequisites

- Helm 3.8.0+
Expand All @@ -30,7 +23,12 @@ helm repo add dial https://charts.epam-rail.com
helm install --name my-release dial/dial
```

The command deploys dial on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation.
The command deploys AI DIAL on the Kubernetes cluster with default configuration. The [Parameters](#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](examples) that can be used as a good starting point for your own configuration.

## Uninstalling the Chart

Expand Down Expand Up @@ -67,4 +65,4 @@ helm install my-release dial/dial -f values.yaml

**NOTE**: You can use the default [values.yaml](values.yaml)

{{ template "chart.valuesSection" . }}
{{ template "chart.valuesSection" . }}
8 changes: 8 additions & 0 deletions charts/dial/examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Examples

Please note - the examples provided serve two primary means:

1. Show users working examples of the various ways in which the chart can be configured and features supported
1. A means of testing/validating module changes

Please do not mistake the examples provided as "best practices". Though they're created with aware of possible copy-paste usage, it is up to users to enhance security and stability of their deployments.
File renamed without changes.
128 changes: 128 additions & 0 deletions charts/dial/examples/aws/simple/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# AI DIAL AWS Installation Simple Guide

- [AI DIAL AWS Installation Simple Guide](#ai-dial-aws-installation-simple-guide)
- [Prerequisites](#prerequisites)
- [Expected Outcome](#expected-outcome)
- [Install](#install)
- [Uninstall](#uninstall)
- [What's next?](#whats-next)

## Prerequisites

- EKS 1.24+
- [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl) installed and configured
- [Helm](https://helm.sh/docs/intro/install/) `3.8.0+` installed
- [AWS Load Balancer Controller](https://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/deploy/installation/) installed in the cluster
- [external-dns](https://github.com/kubernetes-sigs/external-dns) installed in the cluster (optional)
- Azure `gpt-35-turbo` model deployed:
- [Azure Model Deployment Guide](https://docs.epam-rail.com/Deployment/Azure%20Model%20Deployment)

## Expected Outcome

By following the instructions in this guide, you will successfully install the AI DIAL system with configured connection to the Azure GPT-3.5 API.\
Please note that this guide represents a very basic deployment scenario, and **should never be used in production**.\
Configuring authentication provider, encrypted secrets, model usage limits, Ingress allowlisting and other security measures are **out of scope** of this guide.

## Install

1. Create Kubernetes namespace, e.g. `dial`

**Command:**

```sh
kubectl create namespace dial
```

**Output:**

```console
namespace/dial created
```

1. Add Helm chart repository

**Command:**

```sh
helm repo add dial https://charts.epam-rail.com
```

**Output:**

```console
"dial" has been added to your repositories
```

1. Copy [values.yaml](values.yaml) file to your working directory and fill in missing values:
- Replace `%%NAMESPACE%%` with namespace created above, e.g. `dial`
- It's assumed you've configured **aws-load-balancer-controller** and **external-dns** beforehand, so replace `%%DOMAIN%%` with your domain name, e.g. `example.com`, and `%%CERTIFICATE_ARN%%` with your AWS ACM certificate ARN, e.g. `arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012`
- Replace `%%OPENAI_API_KEY%%` with generated value (`pwgen -s -1 64`)
- Replace `%%AUTH_TEST_TOKEN%%` with generated value (`pwgen -s -1 64`)
- Replace `%%NEXTAUTH_SECRET%%` with generated value (`openssl rand -base64 64`)
- Replace `%%MODEL_ENDPOINT%%` with Azure OpenAI Model Endpoint from [prerequisites](#prerequisites), e.g. `https://not-a-real-endpoint.openai.azure.com/openai/deployments/gpt-35-turbo/chat/completions`
- Replace `%%MODEL_KEY%%` with Azure OpenAI Model Key from [prerequisites](#prerequisites), e.g. `3F0UZREXNOTAREALKEYDCvzSkznPFa`

1. Install `dial` helm chart in created namespace, applying custom values file:

**Command:**

```sh
helm install dial dial/dial -f values.yaml --namespace dial
```

**Output:**

```console
Release "dial" does not exist. Installing it now.
NAME: dial
LAST DEPLOYED: Thu Nov 30 16:35:54 2023
NAMESPACE: dial
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: dial
CHART VERSION: 1.0.0
APP VERSION: 1.0
** Please be patient while the chart is being deployed **
```
1. Now you can access:
- Chat by the following URL: `https://chat.%%DOMAIN%%/`, e.g. `https://chat.example.com/`
- Use previously generated `%%AUTH_TEST_TOKEN%%` value
- API by the following URL: `https://dial.%%DOMAIN%%/`, e.g. `https://dial.example.com/`
- Use previously generated `%%OPENAI_API_KEY%%` value
## Uninstall
1. Uninstall `dial` helm chart from created namespace
**Command:**
```sh
helm uninstall dial --namespace dial
```
**Output:**
```console
release "dial" uninstalled
```
1. Delete Kubernetes namespace, e.g. `dial`
**Command:**
```sh
kubectl delete namespace dial
```
**Output:**
```console
namespace "dial" deleted
```
## What's next?
- [Configuration](https://docs.epam-rail.com/Deployment/configuration)
Loading

0 comments on commit 8a2d6eb

Please sign in to comment.