Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ kai-api route passed to the Hub. #376

Merged
merged 1 commit into from
Sep 13, 2024
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
4 changes: 3 additions & 1 deletion roles/tackle/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,10 @@ rhsso_url: "{{ rhsso_proto }}://keycloak.{{ app_namespace }}.svc:{{ rhsso_port }
# Kai-related variables
experimental_deploy_kai: false

kai_component_name: "kai-api"
kai_service_name: "{{ kai_component_name }}"
kai_url: "http://{{ kai_service_name }}.{{ app_namespace }}.svc:8080"
kai_fqin: "{{ lookup('env', 'RELATED_IMAGE_KAI') }}"

kai_api_key_secret_name: kai-api-keys
kai_jwt_secret_name: kai-jwt-secret
kai_bam_secret_key: genai_key
Expand Down
2 changes: 2 additions & 0 deletions roles/tackle/templates/deployment-hub.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ spec:
- name: DISCOVERY_ENABLED
value: "false"
{% endif %}
- name: KAI_URL
value: "{{ kai_url }}"
ports:
- containerPort: {{ hub_port }}
protocol: TCP
Expand Down
2 changes: 1 addition & 1 deletion roles/tackle/templates/kai/kai-api-service.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Service
metadata:
name: kai-api
name: "{{ kai_service_name }}"
namespace: "{{ app_namespace }}"
spec:
selector:
Expand Down
Loading