This repo contains the code and Kubernetes manifest, and slides markdown for Kim Schlesinger's August 2022 Temporal Interview
- Define "sidecar pattern"
- Explain how to identify the sidecar pattern in a code repo
If you'd like to experiment with the sidecar pattern example, here's how:
-
Spin up a Kubernetes cluster
-
Create the sidecar-demo pod by running
kubectl apply -f deployment.yaml
-
Port forward the node.js server with the command
kubectl port-forward pod/<sidecar-demo-pod-name> 3000:3000
-
Use your browser or cURL to make a
GET
request to http://localhost:3000 -
Halt the port-forward process with
ctrl + c
-
Look at the helper-app logs with the command
kubectl logs <sidecar-demo-pod-name> -c helper-app
-
Pat yourself on the back for seeing how the sidecar pattern is implemented in Kubernetes!