deploy-services is the GitOps repository of the msa-event-market services. Because msa-event-market services run on a K8s cluster, it's deployment configuration consists of K8s manifests. The k8s manifest is efficiently configured using kustomize. ArgoCD on K8s cluster monitors this repo. When ArgoCD detects changes K8s manifest on this repo, it applies new K8s manifests.
- Install kustomize
# Ubuntu
$ cd /usr/local/bin
$ curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
- service-auth
# Dev
$ kustomize build service-auth/overlays/dev | kubectl apply -f -
# Prod
$ kustomize build service-auth/overlays/prod | kubectl apply -f -
- service-store
# Dev
$ kustomize build service-store/overlays/dev | kubectl apply -f -
# Prod
$ kustomize build service-store/overlays/prod | kubectl apply -f -