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

new image save command #12162

Merged
merged 2 commits into from
Aug 13, 2021
Merged

new image save command #12162

merged 2 commits into from
Aug 13, 2021

Conversation

afbjorklund
Copy link
Collaborator

@afbjorklund afbjorklund commented Aug 8, 2021

Implements the minikube image save command:

minikube --alsologtostderr image load --pull busybox

minikube --alsologtostderr image save busybox busybox.tar

It looks big because of the somewhat silly structure of "machine", and the missing CopyFrom functionality for VM "assets":

NewFileAsset: busybox.tar -> /var/lib/minikube/images/busybox.tar

scp /var/lib/minikube/images/busybox.tar --> busybox.tar (1463808 bytes)

Closes #11130

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 8, 2021
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 8, 2021
@afbjorklund afbjorklund changed the title Image save cmd Image save command Aug 8, 2021
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 10, 2021
Previously you could only Copy(To), not CopyFrom.

Implies that some Assets can be written to instead.
This is the opposite command of "minikube image load",
and can be used after doing a "minikube image build".

The default is to save images in the cache, but it is
also possible to save to files or to standard output.
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 10, 2021
@afbjorklund
Copy link
Collaborator Author

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Aug 10, 2021
@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12162) |
+----------------+----------+---------------------+
| minikube start | 49.2s    | 47.0s               |
| enable ingress | 34.9s    | 34.7s               |
+----------------+----------+---------------------+

Times for minikube start: 49.7s 46.9s 52.3s 46.8s 50.2s
Times for minikube (PR 12162) start: 47.5s 45.9s 46.3s 47.8s 47.3s

Times for minikube ingress: 31.3s 31.8s 39.2s 40.8s 31.4s
Times for minikube (PR 12162) ingress: 37.4s 39.8s 32.3s 32.2s 31.7s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12162) |
+----------------+----------+---------------------+
| minikube start | 22.2s    | 21.9s               |
| enable ingress | 35.0s    | 37.0s               |
+----------------+----------+---------------------+

Times for minikube ingress: 32.0s 37.5s 36.5s 37.0s 32.0s
Times for minikube (PR 12162) ingress: 35.5s 38.5s 36.0s 37.9s 37.0s

Times for minikube start: 22.6s 22.4s 21.6s 22.1s 22.4s
Times for minikube (PR 12162) start: 21.5s 22.7s 20.9s 20.8s 23.7s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12162) |
+----------------+----------+---------------------+
| minikube start | 40.3s    | 45.2s               |
| enable ingress |          |                     |
+----------------+----------+---------------------+

Times for minikube start: 27.1s 43.8s 43.5s 43.9s 43.5s
Times for minikube (PR 12162) start: 43.6s 48.7s 45.6s 43.8s 44.2s

@minikube-pr-bot
Copy link

These are the flake rates of all failed tests.

Environment Failed Tests Flake Rate (%)
KVM_Linux_crio TestFunctional/serial/LogsFileCmd (gopogh) 0.73 (chart)
Docker_Linux_containerd_arm64 TestFunctional/serial/LogsCmd (gopogh) 6.38 (chart)
Docker_Linux_containerd_arm64 TestFunctional/serial/LogsFileCmd (gopogh) 6.38 (chart)
KVM_Linux_crio TestPause/serial/PauseAgain (gopogh) 8.82 (chart)
Docker_Windows TestFunctional/serial/LogsFileCmd (gopogh) 9.03 (chart)
Docker_Windows TestKubernetesUpgrade (gopogh) 11.20 (chart)
Docker_Linux_docker_arm64 TestScheduledStopUnix (gopogh) 11.54 (chart)
Docker_Linux TestScheduledStopUnix (gopogh) 18.18 (chart)
KVM_Linux TestScheduledStopUnix (gopogh) 23.94 (chart)
Docker_Linux_containerd TestPause/serial/PauseAgain (gopogh) 24.48 (chart)
Docker_Linux_containerd_arm64 TestScheduledStopUnix (gopogh) 34.75 (chart)
Docker_Linux_crio_arm64 TestStartStop/group/embed-certs/serial/DeployApp (gopogh) 35.42 (chart)
Docker_Linux_containerd_arm64 TestNetworkPlugins/group/kindnet/Start (gopogh) 36.69 (chart)
Docker_Linux_crio_arm64 TestAddons/parallel/GCPAuth (gopogh) 36.88 (chart)
Docker_Linux_containerd TestScheduledStopUnix (gopogh) 37.76 (chart)
Docker_Linux_crio_arm64 TestAddons/parallel/CSI (gopogh) 44.68 (chart)
Docker_Linux_crio_arm64 TestFunctional/parallel/TunnelCmd/serial/AccessDirect (gopogh) 48.94 (chart)
Docker_Linux_crio_arm64 TestFunctional/parallel/MountCmd/any-port (gopogh) 50.35 (chart)
Docker_Linux_crio_arm64 TestFunctional/parallel/PersistentVolumeClaim (gopogh) 51.06 (chart)
Docker_Linux_crio_arm64 TestMultiNode/serial/DeployApp2Nodes (gopogh) 52.48 (chart)
Docker_Windows TestAddons/parallel/GCPAuth (gopogh) 57.36 (chart)
Docker_Windows TestNetworkPlugins/group/bridge/Start (gopogh) 72.17 (chart)
Docker_Windows TestNetworkPlugins/group/kindnet/Start (gopogh) 73.04 (chart)
Docker_Windows TestNetworkPlugins/group/kubenet/DNS (gopogh) 76.92 (chart)
Docker_Linux_containerd_arm64 TestNetworkPlugins/group/bridge/Start (gopogh) 82.73 (chart)
Docker_Linux_docker_arm64 TestStartStop/group/old-k8s-version/serial/AddonExistsAfterStop (gopogh) 92.16 (chart)
Docker_Linux_docker_arm64 TestStartStop/group/old-k8s-version/serial/SecondStart (gopogh) 92.31 (chart)
Docker_Linux_docker_arm64 TestStartStop/group/old-k8s-version/serial/UserAppExistsAfterStop (gopogh) 92.31 (chart)
Docker_Windows TestNetworkPlugins/group/calico/Start (gopogh) 94.78 (chart)
Docker_Linux_containerd_arm64 TestStartStop/group/old-k8s-version/serial/AddonExistsAfterStop (gopogh) 97.86 (chart)
More tests... Continued...

Too many tests failed - See test logs for more details.

To see the flake rates of all tests by environment, click here.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: afbjorklund, medyagh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [afbjorklund,medyagh]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@medyagh medyagh merged commit 41ba49d into kubernetes:master Aug 13, 2021
@medyagh medyagh changed the title Image save command new image save command Aug 13, 2021
This was referenced Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement minikube image save
4 participants