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

Kind: Indicates images loaded into Kind in Images page #1450

Closed
slemeur opened this issue Feb 14, 2023 · 5 comments
Closed

Kind: Indicates images loaded into Kind in Images page #1450

slemeur opened this issue Feb 14, 2023 · 5 comments

Comments

@slemeur
Copy link
Collaborator

slemeur commented Feb 14, 2023

Is your feature request related to a problem? Please describe

Images loaded in a Kind cluster should be visible in the list of images.

Describe the solution you'd like

Images displayed in the images pages should display images loaded into kind clusters with the label on the kind cluster.

Describe alternatives you've considered

@slemeur slemeur changed the title Kind: Display images from Kind in Images page Kind: Indicates images loaded into Kind in Images page Apr 19, 2023
@afbjorklund
Copy link
Contributor

afbjorklund commented May 21, 2023

You can use crictl (over podman exec) for this, then it would also work when you start supporting CRI-O for the cluster...

podman exec kind-control-plane crictl images --output json
    {
      "id": "sha256:221177c6082a88ea4f6240ab2450d540955ac6f4d5454f0e15751b653ebda165",
      "repoTags": [
        "registry.k8s.io/pause:3.7"
      ],
      "repoDigests": [
      ],
      "size": "311278",
      "uid": {
        "value": "65535"
      },
      "username": "",
      "spec": null,
      "pinned": false
    }

Alternatively if you only want images (and pods) I think they might be available over kubectl as properties of the node?

kubectl get node kind-control-plane -o json | jq .status.images
  {
    "names": [
      "registry.k8s.io/pause:3.7"
    ],
    "sizeBytes": 311278
  }

@afbjorklund
Copy link
Contributor

The documentation is slightly misleading about this:

Kind does not enable you to list loaded images.

It is true that kind makes it hard for you to list images...


But it is not impossible. See above (crictl images), and also:

https://kind.sigs.k8s.io/docs/user/quick-start/#loading-an-image-into-your-cluster

If you have multiple nodes, you need some kind of for loop...

If you need more image details, you can use crictl inspecti.

@afbjorklund
Copy link
Contributor

The images from the kubernetes cluster should probably only be properties on the node, not listed under "images".

When working with kubernetes (as opposed to with containers), they don't really add anything and can be hidden.

Copy link
Contributor

github-actions bot commented Apr 8, 2024

This issue has been automatically marked as stale because it has not had activity in the last 6 months. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

Copy link
Contributor

github-actions bot commented May 9, 2024

This issue has been automatically closed because it has not had any further activity in the last 30 days. Thank you for your contributions!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants