You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print_info "Generating kubeconfig to authenticate with EKS cluster..."
10
-
# To be able to interact with the EKS cluster we deployed earlier, we need to obtain the credentials for it. These credentials are saved in a file called kubeconfig which the Azure CLI can generate for us and kubectl can use.
11
-
# Ensure we've got a path setup for the kubeconfig file:
12
-
export KUBECONFIG=$(pwd)/kubeconfig
13
-
print_info "Kubeconfig path: $KUBECONFIG"
14
-
rm -f $KUBECONFIG
15
-
# Retrieve the credentials for the cluster using the Azure CLI:
16
-
az aks get-credentials --resource-group "$NAME" --name "$NAME"
17
-
# Next, validate that the credentials work - we should see information about our cluster output here if everything has worked.
18
-
print_info "Kubeconfig generated successfully! Printing cluster info below, if you see output here, authentication was successful."
SAKEYS_OUTPUT_OUTPUT=$(az storage account keys list \
22
+
--resource-group $NAME \
23
+
--account-name $NAME)
24
+
25
+
# Next, we'll ensure that other passwords and secret values that Rasa requires are set, before creating a Kubernetes Secret to securely store them in a way that we can reference later on:
26
+
print_info "Creating secrets for the Rasa assistant to use..."
# Configure the assistant to use our PostgreSQL instance as the Tracker Store, which records the assistant's conversations.
30
+
trackerStore:
31
+
enabled: true
32
+
type: sql
33
+
dialect: postgresql
34
+
url: ${DB_HOST}
35
+
db: ${DB_ASSISTANT_DATABASE}
36
+
username: ${DB_ASSISTANT_USERNAME}
37
+
password: ${DB_PASSWORD}
38
+
port: 5432
39
+
# Configure the assistant to use Redis as the Rasa Lock Store.
40
+
# This is needed when you have a high-load scenario that requires the Rasa server to be replicated across multiple instances. It ensures that even with multiple servers, the messages for each conversation are handled in the correct sequence without any loss or overlap.
41
+
lockStore:
42
+
enabled: true
43
+
type: concurrent_redis
44
+
password: ${REDIS_PASSWORD}
45
+
port: 6380
46
+
url: ${REDIS_HOST}
47
+
use_ssl: true
48
+
key_prefix: ${NAME}
49
+
# Configure the assistant to use the Kafka broker. This allows us to perform further processing on the messages, like using the Rasa Studio Conversation View or Rasa Pro Analytics.
# We'll configure Rasa to use Azure for remote storage, so we can load models from the buckets we created earlier.
61
+
additionalArgs:
62
+
- --remote-storage
63
+
- azure
64
+
# Define the environment variables that Rasa needs to function and interact with the above services.
65
+
# Note here that some of the values are plaintext environment variables and some are configured to be pulled from the Kubernetes Secret we created earlier.
print_info "You should now be able to access the Rasa assistant at https://assistant.$DOMAIN. It may take a few minutes for the certificate to issue and be fully available."
0 commit comments