Skip to content

Kubernetes Operator implemented with Metacontroller to run a MongoDB migration

Notifications You must be signed in to change notification settings

ninotosh/MongoDB-migration-with-Metacontroller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Kubernetes Operator implemented with Metacontroller to run a MongoDB migration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published