90DaysOfDevOps/2023/day2-ops-code
Alistair Hey 335acd5b82
Add day 85 - Queues Workers and Tasks
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
2023-03-27 08:48:39 +01:00
..
async Add day 85 - Queues Workers and Tasks 2023-03-27 08:48:39 +01:00
database Add 2023 day 84 What is an API 2023-03-24 14:46:31 +00:00
synchronous Add 2023 day 84 What is an API 2023-03-24 14:46:31 +00:00
buildpush.sh Add day 85 - Queues Workers and Tasks 2023-03-27 08:48:39 +01:00
README.md Add 2023 day 84 What is an API 2023-03-24 14:46:31 +00:00

Getting started

This repo expects you to have a working kubernetes cluster already setup and available with kubectl

We expect you already have a kubernetes cluster setup and available with kubectl and helm.

I like using (Civo)[https://www.civo.com/] for this as it is easy to setup and run clusters

The code is available in this folder to build/push your own images if you wish - there are no instructions for this.

Start the Database

kubectl apply -f database/mysql.yaml

deploy the day1 - sync

kubectl apply -f synchronous/k8s.yaml

Check your logs

kubectl logs deploy/generator

kubectl logs deploy/requestor

deploy nats

helm repo add nats https://nats-io.github.io/k8s/helm/charts/ helm install my-nats nats/nats

deploy day 2 - async

kubectl apply -f async/k8s.yaml

Check your logs

kubectl logs deploy/generator

kubectl logs deploy/requestor