Skip to content

kn func deploy --remote and "plain http" in-cluster registry #2616

@metacoma

Description

@metacoma

Hello, I'm using in-cluster Gitea instance to manage git and container registry services.

kn func deploy --remote --git-url=http://user:[email protected]:3000/mindwm/mindwm-function --remote --image=gitea-http.gitea:3000/mindwm/mindwm-function:latest --registry-insecure

leads to

Error: creating push check transport for gitea-http.gitea:3000 failed: Get "https://gitea-http.gitea:3000/v2/": http: server gave HTTP response to HTTPS client
Error: exit status 1

Is there a way to specify that I'm using an HTTP plain registry?

my func.yaml

$ cat func.yaml 
specVersion: 0.36.0
name: my-function
runtime: python
created: 2024-12-15T20:26:02.650229045+01:00
build:
  git:
    url: http://user:[email protected]:3000/mindwm/mindwm-function 
    revision: main                                    
  buildpacks: []
  builder: ""
  buildEnvs: 
    - name: CNB_INSECURE_REGISTRIES
      value: gitea-http.gitea:3000

Environment:

$ kn func version
v0.43.1
$ tkn version
Client version: 0.39.0
Pipeline version: v0.49.0

I am not sure, but may be it's related buildpacks/lifecycle#524

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions