- Fork this repo and clone it to your machine.
- In the cli repo, checkout the branch
catalog-v2
and runmake install
to build a binary and install it to your$GOPATH/bin
directory. - In the gm-catalog repo, checkout the branch
feat/istio
and runmake docker.feat
. Go to/docs/test/redis
and follow theREADME.md
until you are able to create mesh and service entries. - Configure the included
.greymatter.yaml
config example with the following:sync.configuration.url
should point to the forked reposync.credentials.privateKey
,cipher.confiugration.privateKey
, andcipher.configuration.publicKey
should point to generated keys for connecting to Github with SSH.
- Run
./sync.sh
in this directory to store the config state of the mesh in this directory and push it up to your remote repo - Inspect the contents of
catalog-meshes
,catalog-services
,zone-0
andzone-1
.
- Run
greymatter sync plan -c $PWD/.greymatter.yaml
- all actions should be UPDATE, since no./cache
directory has been populated for storing applied config checksums - Run
greymatter sync apply -c $PWD/.greymatter.yaml
- this populates the local./cache
directory with checksums of applied configs - Run
greymatter sync plan -c $PWD/.greymatter.yaml
again - all actions should be NOOP since the destination config state (in deployed mesh) matches the source config state (this repo)
- Open
catalog-services/my-mesh-catalog.json
and edit"max_instances"
to2
- Commit this change and push to your remote repo
- Run
greymatter sync plan -c $PWD/.greymatter.yaml
- you should see an UPDATE action for catalog. - Run
greymatter sync apply -c $PWD/.greymatter.yaml
- you should see a MODIFY action