kind create cluster -n kcdsp --config kind.yaml
kubectl apply -f tempo.yaml
docker build -t nodejs-voting-app:kcdsp nodejs-voting-app
- Replace the IMAGE
kubectl apply -f nodejs-voting-app/deployment.yaml
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.14.2/cert-manager.yaml
kubectl apply -f https://github.com/open-telemetry/opentelemetry-operator/releases/latest/download/opentelemetry-operator.yaml
kubectl apply -f otel.yaml
kubectl port-forward -n kcdsp svc/nodejs-voting-app-service 8080:80
kubectl port-forward -n kcdsp svc/grafana 3000:3000
kubectl apply -f instrumentation.yaml
kubectl patch deployment nodejs-voting-app -n kcdsp -p '{"spec": {"template":{"metadata":{"annotations":{"instrumentation.opentelemetry.io/inject-nodejs":"true"}}}} }'
curl -X POST localhost:8080/vote -H "Content-Type: application/json" -d '{"candidate": "1"}'