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

CRIO runtime & registry addon #11621

Closed
commarmi76 opened this issue Jun 10, 2021 · 9 comments
Closed

CRIO runtime & registry addon #11621

commarmi76 opened this issue Jun 10, 2021 · 9 comments
Labels
kind/support Categorizes issue or PR as a support question. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. long-term-support Long-term support issues that can't be fixed in code

Comments

@commarmi76
Copy link

commarmi76 commented Jun 10, 2021

minikube version: v1.20.0

Steps to reproduce the issue:

  1. Start minikube using crio as a container runtime and registry addon

minikube start --driver=kvm2 --cpus=8 --memory=8192m --container-runtime=crio --insecure-registry "192.168.39.0/24" --addons registry

  1. Push image using minikube ip:

podman push --tls-verify=false $(minikube ip):5000/test-img

  1. Access the shell via minikube ssh

  2. Check crio service: ps fax|grep "/usr/bin/crio"

2098 ? Ssl 0:22 /usr/bin/crio –log-level=debug

You can see there is no “--insecure-registry” in the command line.

If you try to create a pod it will fail because crio uses https to pull the image.

kubectl run test1 --image=$(minikube ip):5000/test-img

  1. To solve the problem you have to restart crio service.

minikube ssh
sudo systemctl restart crio

after that you can see:

ps fax|grep "/usr/bin/crio"

4004 ? Ssl 0:00 /usr/bin/crio --log-level=debug --insecure-registry 10.96.0.0/12 --insecure-registry 192.168.39.0/24

now there are two “--insecure-registry” in the command line and crio can pull the image using http.

@afbjorklund
Copy link
Collaborator

I think the images were usually accessed through the localhost:5000 proxy (hack), to avoid having to configure runtime

@commarmi76
Copy link
Author

I think the images were usually accessed through the localhost:5000 proxy (hack), to avoid having to configure runtime

I'm not able to make this solution (registry proxy) to work, maybe you could write some instructions to help me.

@afbjorklund
Copy link
Collaborator

Like this: kubectl run test1 --image=localhost:5000/test-img

I think most of the documentation was removed when it was deprecated, but maybe the registry has some docs somewhere...

https://minikube.sigs.k8s.io/docs/handbook/addons/

https://minikube.sigs.k8s.io/docs/handbook/registry/

@commarmi76
Copy link
Author

Like this: kubectl run test1 --image=localhost:5000/test-img

I think most of the documentation was removed when it was deprecated, but maybe the registry has some docs somewhere...

https://minikube.sigs.k8s.io/docs/handbook/addons/

https://minikube.sigs.k8s.io/docs/handbook/registry/

It's not working for me, I've got : "ErrImagePull: "rpc error: code = Unknown desc = error pinging docker registry localhost:5000: Get http://localhost:5000/v2/: dial tcp 127.0.0.1:5000: i/o timeout"

PD: I forgot to mention I'm using podman

@afbjorklund
Copy link
Collaborator

afbjorklund commented Jun 13, 2021

This looks OK: podman push --tls-verify=false $(minikube ip):5000/test-img

I meant when running in Kubernetes, and using the registry-proxy DaemonSet ?

Here was some details that we digged up when trying to make it multi-arch:

#10780 (comment) (like the old README for instance, before it was removed)

@afbjorklund afbjorklund added the kind/support Categorizes issue or PR as a support question. label Jun 13, 2021
@spowelljr spowelljr added the long-term-support Long-term support issues that can't be fixed in code label Jul 14, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 12, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 11, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. long-term-support Long-term support issues that can't be fixed in code
Projects
None yet
Development

No branches or pull requests

5 participants