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
Modify Instructions to install KDP AI Agent (kubermatic#1965)
* modify instructions to set up kdp ai agent Signed-off-by: julioc-p <14-10820@usb.ve> * taking out manual dletion of pods Signed-off-by: julioc-p <14-10820@usb.ve> * set ingress to true Signed-off-by: julioc-p <14-10820@usb.ve> * introducing manual deletion of pods for kdp dashboard to pick up new config values Signed-off-by: julioc-p <14-10820@usb.ve> * note for spec generation Signed-off-by: julioc-p <14-10820@usb.ve> --------- Signed-off-by: julioc-p <14-10820@usb.ve>
You need to create a DNS record pointing to the load balancer of your Kubernetes cluster.
82
+
83
+
Create a DNS record that directs traffic from `ai-agent.<DOMAIN>` to your cluster's NGINX ingress controller.
84
+
85
+
Assuming you installed the NGINX ingress controller into the `ingress-nginx` namespace, use the following command to the retrieve the external IP address or DNS name of the load balancer (in column "EXTERNAL-IP"):
86
+
87
+
```bash
88
+
$ kubectl --namespace=ingress-nginx get service ingress-nginx-controller
To make the AI Agent accessible from the KDP Dashboard, you need to update the `values.yaml` file for your **dashboard deployment**. You'll need to set two environment variables within your dashboard's configuration.
95
+
To make the AI Agent accessible from the KDP Dashboard, you need to update the `values.yaml` file for your **dashboard deployment**. Assuming you followed the quickstart, this file would be `kdp-dashboard.values.yaml`.
96
+
97
+
You will need to edit it to activate the AI Agent feature and set the backend url.
98
+
99
+
100
+
```yaml
101
+
dashboard:
102
+
config:
103
+
features:
104
+
aiAgent:
105
+
enabled: true
106
+
generatorURL: ai-agent.<DOMAIN>
107
+
```
108
+
109
+
110
+
You'll need to replace `<DOMAIN>`.
86
111
87
-
First, enable the AI Agent feature in the UI by setting the environment variable `next_public_enable_generate_spec` to `"true"`.
112
+
Then after this update the release of your kdp dashboard. If you followed the Quickstart it will be called `kdp-dashboard` in the `kdp-system` namespace, so the command would look like this to first login and then update:
88
113
89
-
Second, tell the frontend where the AI Agent backend is located by setting the environment variable `next_public_spec_generator_url` to your agent's URL (for example, `"https://kdp.example.com/ai-agent/"`).
After this you will need to delete the pod for the dashboard manually for it to be redeployed and pick up the new values. You can find them by the label `app.kubernetes.io/name: kdp-dashboard` and delete with.
90
125
91
-
**Important:** To avoid CORS errors, the URL for `next_public_spec_generator_url` must use the same host as your main KDP dashboard (and in general the main kdp domain). The path (`/ai-agent/` in this example) must also match the `ingress.prefix` you configured in the AI Agent's `values.yaml` in Step 1.
You can then edit and modify if you like. You also do not have to worry about getting a wrong schema since it is getting validated in the backend. You can be sure there are no hallucinated fields nor missing required fields.
148
+
You can then edit and modify if you like, from the form or directly in the YAML.
149
+
150
+
You also do not have to worry about getting a wrong schema since it is getting validated in the backend. You can be sure there are no hallucinated fields nor missing required fields.
151
+
152
+
**Note:** Please be sure to check the values and the YAML in general before submitting. AI can make mistakes.
If you want to install the KDP AI Agent, which helps you generate yaml files for resources from descriptions in natural language, follow [these instructions](../ai-agent/_index.en.md).
0 commit comments