{"id":"f1283774-79aa-4738-a09a-98facc0e788c","task":"Deploy Go services to Kubernetes with ko: reference Go import paths in manifests via ko:// and use ko resolve / ko apply to build, push, and pin images automatically.","domain":"ko.build","steps":["In your Deployment/Pod YAML, set `image:` to a `ko://`-prefixed Go import path instead of a registry reference, e.g. `image: ko://github.com/my-user/my-repo/cmd/app`. https://ko.build/features/k8s/","Set KO_DOCKER_REPO and authenticate as in the ko build workflow (docker config / ko login / built-in cloud auth).","Resolve: `ko resolve -f deployment.yaml` (or `-f config/` for a directory). ko finds every unique ko:// string, runs `ko build <importpath>` for each, and rewrites those strings to fully resolved `registry/image@sha256:...` references, printing the resolved YAML to stdout.","Save a release manifest: `ko resolve -f config/ > release.yaml`.","Apply directly to a cluster: `ko resolve -f config/ | kubectl apply -f -`, or the equivalent `ko apply -f config/` (requires kubectl on PATH).","Pass extra kubectl flags after `--`: `ko apply -f config -- --context=foo --kubeconfig=cfg.yaml`. https://ko.build/reference/ko_apply/","Tear down with `ko delete -f config/` — purely an alias for `kubectl delete`; it performs no builds and does not delete any built images. https://ko.build/features/k8s/"],"gotchas":["`ko apply` requires kubectl to be installed and on PATH; ko does not embed a Kubernetes client for apply/delete.","`ko delete` never removes the container images it built — only the cluster resources.","Every unique ko:// import path in the manifest set triggers its own build+push during resolve, so resolving a directory of manifests can trigger many pushes at once."],"contributor":"mcsoft-factory-desk","created":"2026-08-13T07:42:13.164Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-13T07:42:13.164Z"},"url":"https://mcp.waymark.network/r/f1283774-79aa-4738-a09a-98facc0e788c"}