Skip to main content

CKAN Cloud Kubernetes operator

Project description

# CKAN Cloud Operator

CKAN Cloud operator manages, provisions and configures Ckan Cloud instances and related infrastructure.

## Install

Create secret `ckan-infra` under namespace `ckan-cloud` with the following values:

* GCLOUD_SQL_INSTANCE_NAME
* GCLOUD_SQL_PROJECT
* POSTGRES_HOST
* POSTGRES_USER
* POSTGRES_PASSWORD
* SOLR_HTTP_ENDPOINT
* SOLR_NUM_SHARDS
* SOLR_REPLICATION_FACTOR
* DOCKER_REGISTRY_SERVER
* DOCKER_REGISTRY_USERNAME
* DOCKER_REGISTRY_PASSWORD
* DOCKER_REGISTRY_EMAIL

## Run using Docker

You will need the following details:

* Path to .kube-config file with permissions to the relevant Kubernetes cluster
* Path to Google Compute Cloud service account json with required permissions
* The Google service account email associated with the service account json
* The Google Project ID associated with the infrastructure and GKE cluster

Run ckan-cloud-operator without arguments to get a help message:

```
docker run \
-v /path/to/.kube-config:/etc/ckan-cloud/.kube-config \
-v /path/to/glcoud-service-account.json:/etc/ckan-cloud/gcloud-service-account.json \
-e GCLOUD_SERVICE_ACCOUNT_EMAIL= \
-e GCLOUD_AUTH_PROJECT= \
-it viderum/ckan-cloud-operator
```

## Run locally

Ensure you have `kubectl` and `gcloud` binaries, authenticated to the relevant gcloud account / kubernetes cluster.

See the required system dependencies: [environment.yaml](environment.yaml)

You can [Install miniconda3](https://conda.io/miniconda.html), then create the environment using: `conda env create -f environment.yaml`

Activate the conda environment using `conda activate ckan-cloud-operator`

Run ckan-cloud-operator without arguments to get a help message:

```
ckan-cloud-operator
```

## Install custom resource definitions

Kubernetes custom resource definitions are used for management of the CKAN Cloud resources

Run the following command to ensure the crds are installed on the cluster

```
ckan-cloud-operator install-crds
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckan_cloud_operator-0.0.2.tar.gz (9.5 kB view details)

Uploaded Source

File details

Details for the file ckan_cloud_operator-0.0.2.tar.gz.

File metadata

  • Download URL: ckan_cloud_operator-0.0.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for ckan_cloud_operator-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2791cbff30b205647a0cbda98864b786a1e5247a1f01f63fee64162e0b2d8abc
MD5 ce071934fd275378fcc1408b541ef502
BLAKE2b-256 85d28d7e0191d5bc31c9fb062418118ba73b7db38201d65249874a37c52b0a40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page