# YaK step-by-step usage

<figure><img src="/files/X0mHhZSVWRpoT4hPXirx" alt=""><figcaption><p><em>YaK step-by-step</em></p></figcaption></figure>

{% stepper %}
{% step %}

#### [Install](/yak-user-doc/installation.md) YaK on your Kubernetes cluster

{% endstep %}

{% step %}

#### Setup your infrastructure

1. [Declare your on-prem or cloud infrastructure](/yak-user-doc/manage-infrastructures/manage-infrastructure.md)
2. [Declare your cloud providers secrets](/yak-user-doc/configuration/manage-secrets.md)
3. Declare your [SSH secrets](/yak-user-doc/configuration/manage-secrets.md#ssh-key) (Linux servers) or [WinRM secrets](/yak-user-doc/configuration/manage-secrets.md#winrm) (Windows servers)
4. [Attach your secrets to your infrastructure](/yak-user-doc/manage-infrastructures/attach-secrets.md)
   {% endstep %}

{% step %}

#### Setup your servers

1. [Declare your server(s)](/yak-user-doc/manage-servers/declare.md)
2. [Attach specific secrets to your server(s) (optional)](/yak-user-doc/manage-servers/declare/attach-secrets.md)
3. [Deploy your server(s)](/yak-user-doc/manage-servers/deploy.md)
4. [Start your server](/yak-user-doc/manage-servers/start-stop.md)
   {% endstep %}

{% step %}

#### Setup your components

1. [Get your component type](/yak-user-doc/installation/yak-components.md) from dbi services and upload it into YaK
2. [Declare your artifact provider](/yak-user-doc/configuration/manage-artifact-providers.md)
3. Attach secret(s) to your artifact provider
4. Declare your component(s)
   {% endstep %}

{% step %}

#### Deploy your components

1. Deploy your component(s) on your server(s)
   {% endstep %}

{% step %}

#### Relax and watch the magic happen!

1. [Monitor jobs execution](/yak-user-doc/user-interface/jobs.md)
   {% endstep %}
   {% endstepper %}

{% hint style="info" %}
Because we believe a use-case is worth a thousand words, we've compiled a few for you.\
Take a look at the [use cases section](/yak-user-doc/quickstarts.md) for a guided end-to-end deployment to the cloud!
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dbi-services.gitbook.io/yak-user-doc/yak-step-by-step-usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
