kubectl-image

module
v0.0.0-...-721f655 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: Apache-2.0

README

kubectl-image

Latest Docker Image golangci-lint Go Report Card

docker image but for kubernetes

(WIP)

This project is called kuebctl-push before, if you find legacy names left, welcome open issue or PR.

Overview

Kubernetes (nearly) does not care about what images exist on the node, the only thing relates to "managing" image is image garbage collection.

I think it's not so convenient to cluster admin using another certain tools to management the images.

And another thing is I was always bothering with one problem: when I develop or debug chaos mesh, I need deliver the latest modified image to the target kubernetes cluster. If the kubernetes runs on minikube or kind with single node, I could use kind load docker-image, minikube image load, or build witheval minikube docker-env

Feature

  • List images on each Kubernetes Node
  • load image from local image
  • Deliver container images to kubernetes cluster simply, please do not use it in production env.

Roadmap

Out-of-date: This roadmap need updates.

  • build kubectl-image-agent that forwards HTTP request content to docker image load
  • play kubectl-image-agent with curl
  • build kubectl-push, automatically create Pod on Node, then send certain requests, in one command
  • terminal UI progress, silent mode
  • support kubernetes container runtime: docker
  • support local container runtime: docker
  • contributes to krew
  • reduce duplicated layers
  • support kubernetes container runtime: containerd
  • support local container runtime: containerd
  • support kubernetes container runtime: cri-o
  • support local container runtime: cri-o
  • p2p transmission

How it works

https://github.com/STRRL/kubectl-image/wiki/How-it-works%3F

Directories

Path Synopsis
cmd
kubectl-image command
pkg
agent
Package agent introduces the agent which would communicate with node's container runtime, and the client for it.
Package agent introduces the agent which would communicate with node's container runtime, and the client for it.
agent/container/runtime
Package runtime provides basic interfaces to interact with the different container runtimes.
Package runtime provides basic interfaces to interact with the different container runtimes.
agent/provisioner
Package provisioner provides the tools to setup the `kubectl-image-agent` on the target kubernetes cluster.
Package provisioner provides the tools to setup the `kubectl-image-agent` on the target kubernetes cluster.
kubectlimage/cmd
Package cmd provides commands for kubectl-image
Package cmd provides commands for kubectl-image
util
Package util contains some reusable codes which difficult to put in other packages.
Package util contains some reusable codes which difficult to put in other packages.
version
Package version provides help functions for versioning.
Package version provides help functions for versioning.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL