项目作者: ninotoshi

项目描述 :
Kubernetes Operator implemented with Metacontroller to run a MongoDB migration
高级语言: Makefile
项目地址: git://github.com/ninotoshi/MongoDB-migration-with-Metacontroller.git


This is an example Kubernetes Operator implemented with Metacontroller to run a MongoDB migration.

before you begin

Make these commands available.

  • docker
  • kubectl

edit a migration

  1. cd operation
  2. Edit spec.url in migration.yaml.
    The content of url will be executed in MongoDB.

to run a migration

  1. cd db
    1. make apply-service
  2. cd metacontroller
    1. make install
  3. cd custom
    1. make apply-crd
    2. make apply-controller
  4. cd webhook
    1. make image-build
    2. make create-namespace
    3. make apply-service
  5. cd operation
    1. make apply-migration

to confirm

  1. cd db
    1. make exec-mongo

to clean up

  1. cd operation
    1. make delete-migration
  2. cd webhook
    1. make delete-service
    2. make delete-namespace
    3. make image-rm
  3. cd custom
    1. make delete-controller
    2. make delete-crd
  4. cd metacontroller
    1. make uninstall
    2. make image-rm
  5. cd db
    1. make delete-service
    2. make image-rm