Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

CircleCI Go Report Card GoDoc Docker Pulls GitHub (pre-)release

CVManager is deprecated. Please use


Container Version Manager (cvmanager) is a continous integration (CI) and continous delivery (CD) tool designed for Kubernetes cluster/services. Fundamentally, cvmanager is a custom Kubernetes controller to achieve a declarative configuration approach to continuous deployment.

Deployments that requires CI/CD, can declare ContainerVersion resource. CVManager, ContainerVersion (CV) controller starts monitoring for any new changes that should be rolled-out. If so, using the rollout strategy specified in this deployment, the rollout of new version is carried out.

CVManager assumes ECR as the container registry. Supporting other registeries is T2D.

The tool has 3 main parts:

  • CV Manager
  • Docker Registry Syncer (supports ECR and Dockerhub)
  • Docker Registry Tagger (supports ECR, with limited Dockerhub support)


Docker images are on

CVManager: Controller service

ContainerVersion controller that manages ContainerVersion resources.

Run locally

 cvmanager run --k8s-config ~/.kube/config --configmap-key=kube-system/cvmanager

Docker registry sync service

Registry sync service is a polling service that frequently check on registry (AWS ECR and dockerhub only) to see if new version should be rolled out for a given deployment/container.

Sync service default to using AWS ECR as regisrty provider but dockerhub is also supported. Use --provider dockerhub to use syncer service against dockerhub repo.

Dockerhub note: Dockerhub has very limited support w.r.t. tags via API and also multi-tag support is very limited. see 1, 2, 3 and 4 for more info. When using dockerhub, regisrty syncer monitors a tag (example latest) and when the latest image is change i.e. the digest of the image is changed Syncer picks it up as a candidate deployment and deploys new version.

Run locally

    cvmanager cr sync \
    --namespace=usdev-api \
    --provider=ecr \
    --cv=photos-cv \
    --k8s-config ~/.kube/config

ECR Tagger Util

A tagging tool that integrates with CI side of things to manage tags on the ECR repositories.

Get Tag

    cvmanager cr tags get \
    --repo  nearmap/cvmanager  \
    --version <SHA>

Add Tag

    cvmanager cr tags remove \
    --repo  nearmap/cvmanager  \
    --tags env-audev-api,env-usdev-api \
    --version <SHA>

Remove Tag

    cvmanager cr tags remove \
    --repo  nearmap/cvmanager  \
    --tags env-audev-api,env-usdev-api

Supporting other docker registries

We plan to support other docker registries as well in future via cvmanager.

Building and running CVManager

Build & Run

docker build -t nearmap/cvmanager .
docker run -ti  nearmap/cvmanager <command>

Testing with docker-compose

 docker-compose down
 docker-compose rm -f
 docker-compose up --force-recreate --build --abort-on-container-exit

Deploying CVManager to Kubernetes cluster

CVManage is only supported on Kubernetes >= 1.9

CVManager can be deployed using:

  1. Kubectl: yaml specs for Kubenetes configuration is here
  2. Helm: Helm chart spec is here and helm package is avaialble here

Please see for more info.

Getting current version of all CV managed deployments

  • REST API http://<host>:8081/v1/cv/workloads is exposed that return naive html page with tabluar data of all CV managed deployments and current version eg.
  • Html format can also be queried using format query, supported values are json/html. eg. http://localhost:8081/v1/cv/workloads?format=html see example

  • Same can also be generated by (use --k8s-config only if running outside cluster:

    cvmanager cv get --k8s-config ~/.kube/config

Rollout history

Use --history CLI option on CVManager to capture release history in configmap.

  • When history option is chosen, REST interface http://<host>:8081/v1/cv/workloads/cvmanagerapp?namespace=kube-system, details the update/rollout history. see example

  • The history is stored in configmap under same namespace as workload resource with configmap name <workload_resource_name>.history eg cvmanagerapp.history see example

Reference links


No description or website provided.





No packages published