# 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>
