chains icon indicating copy to clipboard operation
chains copied to clipboard

Pushing kaniko-chains to kind-registry

Open nistar opened this issue 1 year ago • 1 comments

I was wondering if anyone else got the following error while running tkn task start --param IMAGE=kind-registry:5000/kaniko-chains --use-param-defaults --workspace name=source,emptyDir="" --workspace name=dockerconfig,secret=docker-credentials kaniko-chains

"https://kind-registry:5000/v2/": http: server gave HTTP response to HTTPS client?

I've added that repo to insecure registries for my local docker engine:

Insecure Registries: kind-registry:5000 127.0.0.0/8

nistar avatar Sep 12 '24 22:09 nistar

I usually do something like this:

# Change this to the name of your kind cluster
export KIND_CLUSTER_NAME=kind

export KO_DOCKER_REPO='kind.local'

ko apply --sbom none -f <(
  kubectl -n tekton-chains patch deployment tekton-chains-controller --type='json' \
  -p '[{
        "op": "replace",
        "path": "/spec/template/spec/containers/0/image",
        "value": "ko://github.com/tektoncd/chains/cmd/controller"
      }]' \
  --dry-run=client -o yaml
)

lcarva avatar Sep 13 '24 17:09 lcarva