Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion roles/tackle/tasks/kai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,19 @@
state: "{{ kai_llm_proxy_state }}"
template: kai/llm-proxy-service.yaml.j2

- name: Check if LLM Proxy Client ConfigMap exists
k8s_info:
api_version: v1
kind: ConfigMap
name: "{{ kai_llm_proxy_client_config_name }}"
namespace: "{{ app_namespace }}"
register: llm_proxy_client_configmap_status

- name: Create LLM Proxy Client Configuration
k8s:
state: present
template: kai/llm-proxy-client-configmap.yaml.j2
when: kai_llm_proxy_enabled | bool
when: kai_llm_proxy_enabled | bool or (llm_proxy_client_configmap_status.resources | length) > 0
Comment thread
abrugaro marked this conversation as resolved.

- name: Create Kai API deployment
k8s:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ metadata:
data:
config.json: |
{
"model": "{{ kai_llm_proxy_provider_id }}/{{ kai_llm_proxy_model_id }}"
"model": "{{ kai_llm_proxy_provider_id }}/{{ kai_llm_proxy_model_id }}",
"enabled": "{{ kai_llm_proxy_enabled | default(false) | bool | lower }}"
Comment thread
abrugaro marked this conversation as resolved.
}
Loading