Experiment for kubernetes and golang.
Generated with swag. Install with go install github.com/swaggo/swag/cmd/swag@latest
.
Configuration handled by ENV
variables prefixed with GOAPI_
. See .env.sample.
- microk8s enable registry
- update Makefile version, use
make image-build
andmake image-push
. - update kubernetes/deployment.yml
- update image tag
kubectl apply -f kubernetes/deployment.yml
Goals:
- DataDog
- OpenTelemetry
Forward:
- Jaeger:
kubectl port-forward $(kubectl get pods -l=app="jaeger" -o name) 16686:16686
- Collector:
kubectl port-forward -n default service/simplest-collector 14268:14268 --address 0.0.0.0
See DEBUG.
- github actions
- https://github.com/nektos/act
- https://github.com/keel-hq/keel
- https://github.com/argoproj
- GOPATH is a project level env var.
- use
gimme
to manage go - gimme has a different base path between linux and macos (with brew).