mirror of
https://github.com/ko-build/ko.git
synced 2025-11-23 22:35:11 +02:00
* update docs: fix broken links, align with README * update google/ko references that can be updated
1.8 KiB
1.8 KiB
Deployment
See Kubernetes Integration for information about deploying to Kubernetes.
Because the output of ko build is an image reference, you can easily pass it to other tools that expect to take an image reference.
docker run
To run the container locally:
docker run -p 8080:8080 $(ko build ./cmd/app)
Google Cloud Run
gcloud run deploy --image=$(ko build ./cmd/app)
💡 Note: The image must be pushed to Google Container Registry or Artifact Registry.
fly.io
flyctl launch --image=$(ko build ./cmd/app)
💡 Note: The image must be publicly available.
AWS Lambda
aws lambda update-function-code \
--function-name=my-function-name \
--image-uri=$(ko build ./cmd/app)
💡 Note: The image must be pushed to ECR, based on the AWS provided base image, and use the
aws-lambda-goframework. See official docs for more information.
Azure Container Apps
az containerapp update \
--name my-container-app
--resource-group my-resource-group
--image $(ko build ./cmd/app)
💡 Note: The image must be pushed to ACR or other registry service. See official docs for more information.