Merge pull request #8587 from lengrongfu/feat/upgrade_pause_version
This commit is contained in:
commit
4b7145cfd3
@ -61,6 +61,6 @@
|
|||||||
# TODO This needs to be removed once we have consistent concurrent pull results
|
# TODO This needs to be removed once we have consistent concurrent pull results
|
||||||
- name: "Pre-pull pause container image"
|
- name: "Pre-pull pause container image"
|
||||||
shell: |
|
shell: |
|
||||||
/usr/local/bin/ctr pull registry.k8s.io/pause:3.7
|
/usr/local/bin/ctr pull registry.k8s.io/pause:3.9
|
||||||
/usr/local/bin/crictl --runtime-endpoint unix:///run/containerd/containerd.sock \
|
/usr/local/bin/crictl --runtime-endpoint unix:///run/containerd/containerd.sock \
|
||||||
pull registry.k8s.io/pause:3.7
|
pull registry.k8s.io/pause:3.9
|
||||||
|
@ -137,7 +137,7 @@ version = 2
|
|||||||
selinux_category_range = 1024
|
selinux_category_range = 1024
|
||||||
|
|
||||||
# sandbox_image is the image used by sandbox container.
|
# sandbox_image is the image used by sandbox container.
|
||||||
sandbox_image = "registry.k8s.io/pause:3.7"
|
sandbox_image = "registry.k8s.io/pause:3.9"
|
||||||
|
|
||||||
# stats_collect_period is the period (in seconds) of snapshots stats collection.
|
# stats_collect_period is the period (in seconds) of snapshots stats collection.
|
||||||
stats_collect_period = 10
|
stats_collect_period = 10
|
||||||
|
@ -59,29 +59,29 @@ command. With the load command you inject a container image into the container
|
|||||||
runtime from a file. First you need to create a container image tarball. For
|
runtime from a file. First you need to create a container image tarball. For
|
||||||
example to create an image tarball for a pause container using Docker:
|
example to create an image tarball for a pause container using Docker:
|
||||||
```console
|
```console
|
||||||
$ docker pull registry.k8s.io/pause:3.7
|
$ docker pull registry.k8s.io/pause:3.9
|
||||||
3.7: Pulling from pause
|
3.9: Pulling from pause
|
||||||
7582c2cc65ef: Pull complete
|
7582c2cc65ef: Pull complete
|
||||||
Digest: sha256:bb6ed397957e9ca7c65ada0db5c5d1c707c9c8afc80a94acbe69f3ae76988f0c
|
Digest: sha256:7031c1b283388d2c2e09b57badb803c05ebed362dc88d84b480cc47f72a21097
|
||||||
Status: Downloaded newer image for registry.k8s.io/pause:3.7
|
Status: Downloaded newer image for registry.k8s.io/pause:3.9
|
||||||
registry.k8s.io/pause:3.7
|
registry.k8s.io/pause:3.9
|
||||||
$ docker save registry.k8s.io/pause:3.7 -o pause.tar
|
$ docker save registry.k8s.io/pause:3.9 -o pause.tar
|
||||||
```
|
```
|
||||||
Then use `ctr` to load the container image into the container runtime:
|
Then use `ctr` to load the container image into the container runtime:
|
||||||
```console
|
```console
|
||||||
# The cri plugin uses the "k8s.io" containerd namespace.
|
# The cri plugin uses the "k8s.io" containerd namespace.
|
||||||
$ sudo ctr -n=k8s.io images import pause.tar
|
$ sudo ctr -n=k8s.io images import pause.tar
|
||||||
Loaded image: registry.k8s.io/pause:3.7
|
Loaded image: registry.k8s.io/pause:3.9
|
||||||
```
|
```
|
||||||
List images and inspect the pause image:
|
List images and inspect the pause image:
|
||||||
```console
|
```console
|
||||||
$ sudo crictl images
|
$ sudo crictl images
|
||||||
IMAGE TAG IMAGE ID SIZE
|
IMAGE TAG IMAGE ID SIZE
|
||||||
docker.io/library/busybox latest f6e427c148a76 728kB
|
docker.io/library/busybox latest f6e427c148a76 728kB
|
||||||
registry.k8s.io/pause 3.7 221177c6082a8 311kB
|
registry.k8s.io/pause 3.9 e6f181688397 311kB
|
||||||
$ sudo crictl inspecti 221177c6082a8
|
$ sudo crictl inspecti e6f181688397
|
||||||
... displays information about the pause image.
|
... displays information about the pause image.
|
||||||
$ sudo crictl inspecti registry.k8s.io/pause:3.7
|
$ sudo crictl inspecti registry.k8s.io/pause:3.9
|
||||||
... displays information about the pause image.
|
... displays information about the pause image.
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -290,7 +290,7 @@ $ crictl info
|
|||||||
"streamIdleTimeout": "4h0m0s",
|
"streamIdleTimeout": "4h0m0s",
|
||||||
"enableSelinux": false,
|
"enableSelinux": false,
|
||||||
"selinuxCategoryRange": 1024,
|
"selinuxCategoryRange": 1024,
|
||||||
"sandboxImage": "registry.k8s.io/pause:3.8",
|
"sandboxImage": "registry.k8s.io/pause:3.9",
|
||||||
"statsCollectPeriod": 10,
|
"statsCollectPeriod": 10,
|
||||||
"systemdCgroup": false,
|
"systemdCgroup": false,
|
||||||
"enableTLSStreaming": false,
|
"enableTLSStreaming": false,
|
||||||
|
@ -50,7 +50,7 @@ func initImages(imageListFile string) {
|
|||||||
imageList = ImageList{
|
imageList = ImageList{
|
||||||
Alpine: "ghcr.io/containerd/alpine:3.14.0",
|
Alpine: "ghcr.io/containerd/alpine:3.14.0",
|
||||||
BusyBox: "ghcr.io/containerd/busybox:1.36",
|
BusyBox: "ghcr.io/containerd/busybox:1.36",
|
||||||
Pause: "registry.k8s.io/pause:3.8",
|
Pause: "registry.k8s.io/pause:3.9",
|
||||||
ResourceConsumer: "registry.k8s.io/e2e-test-images/resource-consumer:1.10",
|
ResourceConsumer: "registry.k8s.io/e2e-test-images/resource-consumer:1.10",
|
||||||
VolumeCopyUp: "ghcr.io/containerd/volume-copy-up:2.1",
|
VolumeCopyUp: "ghcr.io/containerd/volume-copy-up:2.1",
|
||||||
VolumeOwnership: "ghcr.io/containerd/volume-ownership:2.1",
|
VolumeOwnership: "ghcr.io/containerd/volume-ownership:2.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
alpine = "docker.io/library/alpine:latest"
|
alpine = "docker.io/library/alpine:latest"
|
||||||
busybox = "docker.io/library/busybox:latest"
|
busybox = "docker.io/library/busybox:latest"
|
||||||
pause = "registry.k8s.io/pause:3.7"
|
pause = "registry.k8s.io/pause:3.9"
|
||||||
VolumeCopyUp = "ghcr.io/containerd/volume-copy-up:2.1"
|
VolumeCopyUp = "ghcr.io/containerd/volume-copy-up:2.1"
|
||||||
VolumeOwnership = "ghcr.io/containerd/volume-ownership:2.1"
|
VolumeOwnership = "ghcr.io/containerd/volume-ownership:2.1"
|
||||||
ArgsEscaped = "cplatpublic.azurecr.io/args-escaped-test-image-ns:1.0"
|
ArgsEscaped = "cplatpublic.azurecr.io/args-escaped-test-image-ns:1.0"
|
||||||
|
@ -85,7 +85,7 @@ func DefaultConfig() PluginConfig {
|
|||||||
TLSKeyFile: "",
|
TLSKeyFile: "",
|
||||||
TLSCertFile: "",
|
TLSCertFile: "",
|
||||||
},
|
},
|
||||||
SandboxImage: "registry.k8s.io/pause:3.8",
|
SandboxImage: "registry.k8s.io/pause:3.9",
|
||||||
StatsCollectPeriod: 10,
|
StatsCollectPeriod: 10,
|
||||||
MaxContainerLogLineSize: 16 * 1024,
|
MaxContainerLogLineSize: 16 * 1024,
|
||||||
MaxConcurrentDownloads: 3,
|
MaxConcurrentDownloads: 3,
|
||||||
|
@ -74,7 +74,7 @@ func DefaultConfig() PluginConfig {
|
|||||||
TLSKeyFile: "",
|
TLSKeyFile: "",
|
||||||
TLSCertFile: "",
|
TLSCertFile: "",
|
||||||
},
|
},
|
||||||
SandboxImage: "registry.k8s.io/pause:3.8",
|
SandboxImage: "registry.k8s.io/pause:3.9",
|
||||||
StatsCollectPeriod: 10,
|
StatsCollectPeriod: 10,
|
||||||
MaxContainerLogLineSize: 16 * 1024,
|
MaxContainerLogLineSize: 16 * 1024,
|
||||||
MaxConcurrentDownloads: 3,
|
MaxConcurrentDownloads: 3,
|
||||||
|
Loading…
Reference in New Issue
Block a user