This repo serves to help deploy CKAN onto Kubernetes via Helm.
- docker if you want to build your own CKAN image
- helm to deploy to kubernetes
- a running kubernetes cluster, you can install minikube to test locally.
From the base repo directory where:
REGISTRY=<registry>
is your docker registry or username.TAG=<tag>
is the tag of the image.IMAGE=<image>
is the name of the image in the docker directory. Options areckan
, andckan-postgres
,ckan-solr
.
$ export REGISTRY=<registry> && \
export TAG=<tag> && \
export IMAGE=<image>
$ docker build -t $REGISTRY/$IMAGE:$TAG docker/$IMAGE && \
docker push $REGISTRY/$IMAGE:$TAG
From the base repo directory
# template out files to check output
$ helm template ckan helm/ckan --namespace ckan --create-namespace
$ helm install ckan helm/ckan --namespace ckan --create-namespace
$ helm upgrade ckan helm/ckan --namespace ckan