Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
metacoma opened this issue Dec 16, 2024 · 0 comments
Open

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

metacoma opened this issue Dec 16, 2024 · 0 comments

Comments

@metacoma
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant