---
title: "Get started with AKO in the cloud"
description: "Tutorial for deploying Aerospike Database Enterprise Edition with AKO on Google GKE or Amazon EKS."
---

# Get started with AKO in the cloud

> For the complete documentation index see: [llms.txt](https://aerospike.com/docs/llms.txt)
> 
> All documentation pages available in markdown.

This tutorial describes how to create an Aerospike Database Enterprise Edition deployment using the Aerospike Kubernetes Operator (AKO) on Google Kubernetes Engine (GKE) or Amazon Elastic Kubernetes Service (EKS).

Most steps on this page are performed in the same way on GKE or EKS. Where there is a difference, choose the tab that applies to your deployment.

## Prerequisites

-   A running GKE or EKS Kubernetes cluster
-   The `gcloud` or `aws` terminal utilities
-   Helm
-   Git
-   Kubectl
-   An Aerospike Enterprise Edition feature-key file.
    -   Download a free Enterprise Edition feature-key file good for 60 days at this link: [Get Started with Aerospike](https://aerospike.com/get-started-aerospike-database/)

This tutorial assumes basic knowledge of Kubernetes and that your terminal is set up to communicate with your cloud Kubernetes instance.

## Pre-install

Your cloud Kubernetes instance should be set up to the point that you can run commands with your local terminal to create Secrets and install Helm charts. You can test this with the following commands. Copy and paste the commands into your terminal. If all commands complete without errors, your environment is ready to install AKO

-   [Google GKE](#tab-panel-5867)
-   [Amazon EKS](#tab-panel-5868)

Terminal window

```bash
# Point kubectl at the correct GKE cluster

gcloud container clusters get-credentials CLUSTER_NAME --region REGION

# Check connectivity and versions

kubectl cluster-info                 # API-server reachable?

kubectl get nodes -o wide            # Nodes visible?

helm version --short                 # Helm installed?

git --version                        # Git installed?
```

Terminal window

```bash
# Point kubectl at the correct EKS cluster

aws eks update-kubeconfig --region REGION --name CLUSTER_NAME

# Check connectivity and versions

kubectl cluster-info                 # API-server reachable?

kubectl get nodes -o wide            # Nodes visible?

helm version --short                 # Helm installed?

git --version                        # Git installed?
```

## Install AKO

In this section, you use Helm to install AKO on your Kubernetes cluster and configure the Kubernetes namespace to watch for Aerospike database deployment.

1.  Add the JetStack Helm repository so you can install `cert-manager`, a utility that AKO relies on to manage certificates.
    
    Terminal window
    
    ```shell
    helm repo add jetstack https://charts.jetstack.io --force-update
    ```
    
2.  Install the `cert-manager` Helm chart.
    
    Terminal window
    
    ```shell
    helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version v1.17.0 --set crds.enabled=true
    ```
    
3.  Add the AKO Helm repository.
    
    Terminal window
    
    ```shell
    helm repo add aerospike https://aerospike.github.io/aerospike-kubernetes-enterprise
    ```
    
4.  Install AKO to your cluster.
    
    Terminal window
    
    ```bash
    helm install aerospike-kubernetes-operator aerospike/aerospike-kubernetes-operator --version=4.1.2 --set watchNamespaces="aerospike"
    ```
    

AKO is now running on your cluster and is ready to create a new Aerospike Database deployment.

## Deploy an Aerospike database

In this section, you use `kubectl` to deploy Aerospike Database. This tutorial uses a pre-built sample configuration for Aerospike database deployment.

1.  Create the `aerospike` namespace for your Aerospike Database deployment. While AKO watches all namespaces by default, in the previous section AKO was instructed to watch the namespace `aerospike`.
    
    ```yaml
    kubectl create namespace aerospike
    ```
    
2.  Download the Aerospike Kubernetes Operator repository from GitHub to your local machine. This repository contains sample configuration files for an Aerospike Database deployment. You can edit and modify these files on your local machine before using `kubectl` to apply the changes to the cluster.
    
    Terminal window
    
    ```shell
    git clone https://github.com/aerospike/aerospike-kubernetes-operator.git
    ```
    
    The directories you need to use during this tutorial are `config` and `samples` as shown in the following diagram:
    
    -   Directoryaerospike-kubernetes-operator
        
        -   Directoryapi/
            
            -   …
            
        -   Directorycmd/
            
            -   …
            
        -   Directory**config/**
            
            -   Directory**samples/**
                
                -   …
                
            -   … **(sample configuration files)**
            
        -   … (other directories)
        
    
3.  Navigate to the repository folder and the most recent release branch, 4.1.2.
    
    Terminal window
    
    ```bash
    cd aerospike-kubernetes-operator
    
    git checkout v4.1.2
    ```
    
    Your working directory is now `aerospike-kubernetes-operator/`. All file paths in the rest of this tutorial assume this working directory.
    
4.  Put your `features.conf` feature-key file in the `config/samples/secrets` directory. This lets you apply a folder of secrets including TLS certs all at once.
    
5.  Pass the `config/samples/secrets` directory to `kubectl` to create the Kubernetes Secrets.
    
    Terminal window
    
    ```shell
    kubectl -n aerospike create secret generic aerospike-secret --from-file=config/samples/secrets
    
    kubectl -n aerospike create secret generic auth-secret --from-literal=password='admin123'
    ```
    
6.  Create a ServiceAccount in the `aerospike` namespace for AKO to work within.
    
    Terminal window
    
    ```shell
    kubectl -n aerospike create serviceaccount aerospike-operator-controller-manager
    ```
    
7.  Create a ClusterRoleBinding to attach the `aerospike-cluster` ClusterRole with the ServiceAccount from the previous step.
    
    Terminal window
    
    ```shell
    kubectl create clusterrolebinding aerospike-cluster --clusterrole=aerospike-cluster --serviceaccount=aerospike:aerospike-operator-controller-manager
    ```
    
8.  Prepare the cluster to use SSD storage with a sample storage class file from the GitHub repository.
    
    -   [Google GKE](#tab-panel-5869)
    -   [Amazon EKS](#tab-panel-5870)
    
    Terminal window
    
    ```shell
    kubectl apply -f config/samples/storage/gke_ssd_storage_class.yaml
    ```
    
    Terminal window
    
    ```shell
    kubectl apply -f config/samples/storage/eks_ssd_storage_class.yaml
    ```
    
9.  Create the Aerospike cluster using a sample Custom Resource (CR) file that uses SSD storage.
    
    Terminal window
    
    ```shell
    kubectl apply -f config/samples/ssd_storage_cluster_cr.yaml
    ```
    
10.  Run the following command to check the startup status of the Aerospike cluster.
     
     Terminal window
     
     ```shell
     kubectl get aerospikeclusters aerocluster -n aerospike -w
     ```
     
     Wait until the **PHASE** column shows `Completed`. This can take a few minutes, depending on your cluster size and the resources available.
     
     Terminal window
     
     ```shell
     NAME          SIZE   IMAGE                                           MULTIPODPERHOST   HOSTNETWORK   AGE   PHASE
     
     aerocluster   2      aerospike/aerospike-server-enterprise:8.1.0.0   true                            2s    InProgress
     
     aerocluster   2      aerospike/aerospike-server-enterprise:8.1.0.0   true                            21s   InProgress
     
     aerocluster   2      aerospike/aerospike-server-enterprise:8.1.0.0   true                            21s   InProgress
     
     aerocluster   2      aerospike/aerospike-server-enterprise:8.1.0.0   true                            27s   InProgress
     
     aerocluster   2      aerospike/aerospike-server-enterprise:8.1.0.0   true                            28s   Completed
     ```
     
11.  Run the following command to find the access endpoints. Client applications connect to these endpoints to access your Aerospike Database deployment for reading and writing data.
     
     Terminal window
     
     ```shell
     kubectl -n aerospike describe aerospikeclusters aerocluster | grep -E 'Access Endpoints|Alternate Access Endpoints' -A1
     ```
     

You now have a running Aerospike Database deployment using AKO!

## Next steps

The biggest difference between the cluster created in this tutorial and a production cluster is in the storage class and CR file configurations. See the [AKO Configuration](https://aerospike.com/docs/kubernetes/4.1.x/manage/configure/overview) section to learn how to configure your deployment for your own application needs.

Become familiar with the [Aerospike Backup Service (ABS)](https://aerospike.com/docs/kubernetes/4.1.x/tools/backup/overview) and the [monitoring stack](https://aerospike.com/docs/kubernetes/4.1.x/observe/operator-monitoring). They are separate services that run alongside the database in your cluster. ABS listens for REST requests to perform backups and restores of the database, while the monitoring stack lets you visualize cluster statistics on Grafana dashboards.