This repository contains different microservices and Kubernetes manifests to deploy them.
Each microservice has it's own app.yaml
that should contain all of it's dependencies (besides other microservices).
To deploy on GKE, run:
kubectl apply -k overlays/gke
To enable SQS:
- Install mirrord Operator in cluster (with SQS splitting enabled)
aws iam create-user --user-name SQSPlayground
aws iam create-access-key --user-name SQSPlayground
- save data to fileaws sqs create-queue --queue-name IpCount
- take QueueUrl to be used in deployment.yaml- You need to edit
ip-visit-sqs-consumer/policy.json
and set REGION and ACCOUNT_ID aws iam create-policy --policy-name SQSPlaygroundPolicy --policy-document file://ip-visit-sqs-consumer/policy.json
aws iam attach-user-policy --policy-arn arn:aws:iam::526936346962:policy/SQSPlaygroundPolicy --user-name SQSPlayground
- Set Region in app.yaml in
ip-visit-counter
andip-visit-sqs-consumer
To build proto
cd proto
protoc --go_out=../protogen --go_opt=paths=source_relative \
--go-grpc_out=../protogen --go-grpc_opt=paths=source_relative ./ipinfo.proto
kubectl apply -k overlays/local