> For the complete documentation index, see [llms.txt](https://docs.opsmx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opsmx.com/opsmx-1/opsmx-context-engine/additional-resources/spinnaker-reference/spinnaker-installation/configure-cloud-provider.md).

# Configure cloud provider

The next step is to select and configure the cloud platforms where you want to deploy the applications. Supported providers are as follows:

* App Engine&#x20;
* Amazon Web Services&#x20;
* Azure&#x20;
* Cloud Foundry&#x20;
* DC/OS&#x20;
* Google Compute Engine&#x20;
* Kubernetes
* Oracle

You must first set up the cloud provider for the environment. We'll use **Kubernetes** in this example. After that, you'll need to add a Spinnaker account.

### **Configure Kubernetes:**

**Prerequisites:**

* **A kubeconfig file**: The kubeconfig file authenticates Spinnaker against the cluster. After authentication, read/write access to the resources is granted.
* **kubectl CLI tool:** Spinnaker depends on kubectl to manage all API access. Along with Spinnaker, it's installed.

**Adding an Account:**

A Spinnaker account always maps to the credential that authenticates the Kubernetes cluster.

Follow the steps below to add an account:

1. First, enable the provider using the command below:

   ```
   hal config provider kubernetes enable
   ```
2. Add the account using the command below:

   ```
   CONTEXT=$(kubectl config current-context)
   hal config provider kubernetes account add my-k8s-account \
    --context $CONTEXT
   ```

Refer to the image below (This image is only an example).

<div align="left"><figure><img src="https://lh6.googleusercontent.com/63ELmgtujJlAvDbKgWNUkHrg0_XqFjLA9gLM1pgcvnK1AZA9i23xqTggRhC1uZ7FSxgHfB3LYUmASWPgqlg74SRnbT7S8o2d6bDMRXOKe-0UmV93CU81rb2hxkMzBN_LAcqKK3CyszA-cncEs5jx6uU9lugo3Ynu8EgoJgFt8rova0A30hWscCTaaw" alt=""><figcaption></figcaption></figure></div>

In the hal config file it will be updated as shown in the image below:

<div align="left"><figure><img src="https://lh4.googleusercontent.com/Y0QWVGAV8Zumq-2vsqhAGCxM8w96NyocXVsop9yXBxf6CI-BgHgx_kHH4SZL4TS2G_YvvoBg8MToIoJaHISDQutkVrxaIezVEAo7A2N4xcl_iGC5X58wT2puT_L6rsyPBlPjskjrBC0yb82vcl-OshEVRthzIbm5XtE_63DGx8SX6z5Pa0UTHML-gQ" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.opsmx.com/opsmx-1/opsmx-context-engine/additional-resources/spinnaker-reference/spinnaker-installation/configure-cloud-provider.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.
