Optional - yet recommanded:
kubectx + kubenscallable via thekubensbinaryKustomizechromiumcallable via thechromiumbinary
Deploy a microservice architecture app
- redis
- api (./src/api)
- consumer (./src/pinger)
- client (./src/poller)
- Use
redisto store pings, usingredis:latest@sha256:a89cb097693dd354de598d279c304a1c73ee550fbfff6d9ee515568e0c749cfeto ensure these LAB's function as expected altoughlatestshould work ;) - To disable redis authentication Use
nodejs-pingwith tagno-authorlatest@sha256:85d7474aabdd2d01802a9957c770ec157a478db71b7ce5f8d07d1e221cc39cbasee thedocker-compose-no-auth.yml - Pinger & Poller are just 2 clients using
latesttag should suffice.
In order to test you have everything docker-compose build will buid all images locally,
A functional a docker-compose up should build/pull the required images.
1️⃣ prep
k3d cluster delete nodejs-demok3d cluster create nodejs-demo kubectl cluster-infoShould yield somthing like the following:
Kubernetes control plane is running at https://0.0.0.0:52951
CoreDNS is running at https://0.0.0.0:52951/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
Metrics-server is running at https://0.0.0.0:52951/api/v1/namespaces/kube-system/services/https:metrics-server:/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.🆙 next deploy - redis