# Drakemall Admin Dashboard 

## TL;DR

0. Create namaspace and properly configure cluster
```bash 
$ K8S_NAMESPACE=your_namespace ./scripts/k8s/configure_cluster.sh
```

1. Install nginx-ingress contoller from helm chart

```bash
 $ helm install --namespace kube-system --name nginx-ingress stable/nginx-ingress --set rbac.create=true
```

2. Intall drakemall-admin from root folder

```bash
 $ helm install --namespace live -f ./charts/drakemall-admin/values.yaml ./charts/drakemall-admin
```

## Configuration

The following table lists the configurable parameters of the Redis chart and their default values.

| Parameter                                  | Description                                                                                                     | Default                                |
|--------------------------------------------|-----------------------------------------------------------------------------------------------------------------|---------------------------------------|
| `serviceAccountName`                       | Kubernetes Service Account (should be configured with access to docker registry)                                | `tiller`                              |
| `drakemall.domain_name`                    | Site url to Drakemall frontend to login via Google                                                              | https://drakemall.com                 |
| `drakemall.api_addr`                       | API address points to unprotected endpoint by CloudFlare Access                                                 |                                       |
| `graphql_adapter.image.repository`         | GraphQL adapter docker image name                                                                               | skinholdings/graphql-adapter          |
| `graphql_adapter.image.tag`                | GraphQL adapter docker image tag                                                                                | skinholdings/graphql-adapter          |
| `graphql_adapter.image.pullPolicy`         | GraphQL adapter docker image pull policy                                                                        | IfNotPresent



## Prerequisites

- Kubernetes 1.8+ with Beta APIs enabled

## Uninstalling the Chart

To uninstall/delete the `my-release` deployment:

```bash
$ helm delete my-release
```
