Associated blog posts:
- Sail Sharp, 8 tips to optimize and secure your .NET containers for Kubernetes
alpine, distroless orscratch?- Keyless Google Cloud Authentication to push your containers to Artifact Registry from GitHub Actions
Run the pre-built container with Docker:
docker run \
-d \
-p 8080:8080 \
--read-only \
--cap-drop=ALL \
--user=65532 \
ghcr.io/mathieu-benoit/my-sample-workload:latestDeploy the pre-built container on Kubernetes:
kubectl apply \
-f deployment.yaml
kubectl apply \
-f service.yamlBuild and run the container with Docker Compose:
make compose-up
make compose-testDeploy the container in a local Kind cluster:
make kind-create-cluster
make kind-load-image
make k8s-up
make k8s-test