Skip to content

Latest commit

 

History

History
80 lines (63 loc) · 3.79 KB

File metadata and controls

80 lines (63 loc) · 3.79 KB

Deploying a specific version of AnsibleAIConnect or Chatbot

There are a few variables that are customizable for AnsibleAIConnect image management.

Name Description Default
image Path of the image to pull quay.io/ansible/ansible-ai-connect-service
chatbot_image Path of the image to pull quay.io/ansible/ansible-chatbot-service
image_version Image version to pull value of DEFAULT_AI_CONNECT_VERSION or main
chatbot_image_version Image version to pull value of DEFAULT_CHATBOT_AI_CONNECT_VERSION or main
image_pull_policy The pull policy to adopt IfNotPresent
image_pull_secrets The pull secrets to use None
postgres_image Path of the image to pull postgres
postgres_image_version Image version to pull latest
chatbot_extra_settings Chatbot extra settings Dictionary None

Chatbot extra settings (chatbot_extra_settings) possible keys values

Name Description Default
chatbot_byok_image Chatbot BYOK image None
chatbot_byok_image_version Chatbot BYOK image version to pull latest
chatbot_byok_storage_size Chatbot BYOK Volume storage size 2Gi
chatbot_byok_score_multiplier Chatbot BYOK score multiplier 1.2

Example of customization could be:

---
spec:
  ...
  image: myorg/my-custom-aiconnect
  image_version: main
  chatbot_image: myorg/my-custom-chatbot
  chatbot_image_version: main
  image_pull_policy: Always
  image_pull_secrets:
    - pull_secret_name

Note: The image/chatbot_image and image_version/chatbot_image_version style variables are intended for local mirroring scenarios. Please note that using a version of AnsibleAIConnect/Chatbot other than the one bundled with the ansible-ai-connect-operator is not supported even though it will likely work and can be useful for pinning a version. For the default values, check the main.yml file.

Configuring an image pull secret

  1. Log in with that token, or username/password, then create a pull secret from the docker/config.json
docker login quay.io -u <user> -p <token>
  1. Then, create a k8s secret from your .docker/config.json file. This pull secret should be created in the same namespace you are installing the AnsibleAIConnect Operator.
kubectl create secret generic redhat-operators-pull-secret \
  --from-file=.dockerconfigjson=.docker/config.json \
  --type=kubernetes.io/dockerconfigjson
  1. Add that image pull secret to your AnsibleAIConnect spec
---
spec:
  image_pull_secrets:
    - redhat-operators-pull-secret
  1. Add Chatbot BYOK settings
---
...
spec:
  chatbot_extra_settings:
    chatbot_byok_image: 'quay.io/<repository>/rag-content-output'
    chatbot_byok_image_version: latest
    chatbot_byok_storage_size: '2Gi'
    chatbot_byok_score_multiplier: 1.2