Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 2.42 KB

kind-deployment.md

File metadata and controls

65 lines (44 loc) · 2.42 KB

Deploying using kind

The following instructions will guide you through provisioning and configuring a local Kubernetes cluster, using kind (Kubernetes IN Docker), that our Helm Charts can be deployed on.

Install CLI Tools

Kubernetes Cluster

Simply run the following command to spin up a local Kubernetes cluster, running inside a Docker container:

kind create cluster

Container Images

If the versions of the container images you would like to deploy are not available in Docker Hub then you will need to build them yourself and import them into your kind cluster.

To import the images, run this from the kubernetes directory:

export HADOOP_VERSION=${HADOOP_VERSION:-3.2.1}
export GAFFER_VERSION=${GAFFER_VERSION:-1.15.0}
export GAFFER_TOOLS_VERSION=${GAFFER_TOOLS_VERSION:-1.15.0}

docker-compose --project-directory ../docker/accumulo/ -f ../docker/accumulo/docker-compose.yaml build
docker-compose --project-directory ../docker/gaffer-ui -f ../docker/gaffer-ui/docker-compose.yaml build
docker-compose --project-directory ../docker/gaffer-operation-runner/ -f ../docker/gaffer-operation-runner/docker-compose.yaml build

kind load docker-image gchq/hdfs:${HADOOP_VERSION}
kind load docker-image gchq/gaffer:${GAFFER_VERSION}
kind load docker-image gchq/gaffer-rest:${GAFFER_VERSION}
kind load docker-image gchq/gaffer-ui:${GAFFER_TOOLS_VERSION}
kind load docker-image gchq/gaffer-road-traffic-loader:${GAFFER_VERSION}
kind load docker-image gchq/gaffer-operation-runner:${GAFFER_VERSION}

Ingress

Deploy the Nginx Ingress Controller:

INGRESS_NGINX_VERSION="nginx-0.30.0"
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/${INGRESS_NGINX_VERSION}/deploy/static/mandatory.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/${INGRESS_NGINX_VERSION}/deploy/static/provider/baremetal/service-nodeport.yaml

Deploy Helm Charts

Uninstall

kind delete cluster