mirror of https://github.com/k3s-io/k3s
Merge pull request #57517 from verb/paws-bump
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Bump pause container used by kubelet and tests to 3.1 This updates the version of the pause container used by the kubelet and various test utilities to 3.1. **What this PR does / why we need it**: The pause container hasn't been rebuilt in quite a while and needs an update to reap zombies (#50865) and for schema2 manifest (#56253). **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #50865, Fixes #56253 **Special notes for your reviewer**: **Release note**: ```release-note The kubelet uses a new release 3.1 of the pause container with the Docker runtime. This version will clean up orphaned zombie processes that it inherits. ```pull/6/head
commit
afbbd394c1
|
@ -0,0 +1,8 @@
|
||||||
|
# 3.1
|
||||||
|
|
||||||
|
* The pause container gains a signal handler to clean up orphaned zombie processes. ([#36853](https://prs.k8s.io/36853), [@verb](https://github.com/verb))
|
||||||
|
* `pause -v` will return build information for the pause binary. ([#56762](https://prs.k8s.io/56762), [@verb](https://github.com/verb))
|
||||||
|
|
||||||
|
# 3.0
|
||||||
|
|
||||||
|
* The pause container was rewritten entirely in C. ([#23009](https://prs.k8s.io/23009), [@uluyol](https://github.com/uluyol))
|
|
@ -21,9 +21,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
validTmpl = "image: {{ .ImageRepository }}/pause-{{ .Arch }}:3.0"
|
validTmpl = "image: {{ .ImageRepository }}/pause-{{ .Arch }}:3.1"
|
||||||
validTmplOut = "image: gcr.io/google_containers/pause-amd64:3.0"
|
validTmplOut = "image: gcr.io/google_containers/pause-amd64:3.1"
|
||||||
doNothing = "image: gcr.io/google_containers/pause-amd64:3.0"
|
doNothing = "image: gcr.io/google_containers/pause-amd64:3.1"
|
||||||
invalidTmpl1 = "{{ .baz }/d}"
|
invalidTmpl1 = "{{ .baz }/d}"
|
||||||
invalidTmpl2 = "{{ !foobar }}"
|
invalidTmpl2 = "{{ !foobar }}"
|
||||||
)
|
)
|
||||||
|
|
|
@ -26,9 +26,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// When these values are updated, also update test/e2e/framework/util.go
|
// When these values are updated, also update test/utils/image/manifest.go
|
||||||
defaultPodSandboxImageName = "gcr.io/google_containers/pause"
|
defaultPodSandboxImageName = "gcr.io/google_containers/pause"
|
||||||
defaultPodSandboxImageVersion = "3.0"
|
defaultPodSandboxImageVersion = "3.1"
|
||||||
// From pkg/kubelet/rkt/rkt.go to avoid circular import
|
// From pkg/kubelet/rkt/rkt.go to avoid circular import
|
||||||
defaultRktAPIServiceEndpoint = "localhost:15441"
|
defaultRktAPIServiceEndpoint = "localhost:15441"
|
||||||
)
|
)
|
||||||
|
|
|
@ -719,9 +719,9 @@ run_pod_tests() {
|
||||||
kube::test::get_object_assert pods "{{range.items}}{{$image_field}}:{{end}}" 'changed-with-yaml:'
|
kube::test::get_object_assert pods "{{range.items}}{{$image_field}}:{{end}}" 'changed-with-yaml:'
|
||||||
## Patch pod from JSON can change image
|
## Patch pod from JSON can change image
|
||||||
# Command
|
# Command
|
||||||
kubectl patch "${kube_flags[@]}" -f test/fixtures/doc-yaml/admin/limitrange/valid-pod.yaml -p='{"spec":{"containers":[{"name": "kubernetes-serve-hostname", "image": "gcr.io/google_containers/pause-amd64:3.0"}]}}'
|
kubectl patch "${kube_flags[@]}" -f test/fixtures/doc-yaml/admin/limitrange/valid-pod.yaml -p='{"spec":{"containers":[{"name": "kubernetes-serve-hostname", "image": "gcr.io/google_containers/pause-amd64:3.1"}]}}'
|
||||||
# Post-condition: valid-pod POD has image gcr.io/google_containers/pause-amd64:3.0
|
# Post-condition: valid-pod POD has image gcr.io/google_containers/pause-amd64:3.1
|
||||||
kube::test::get_object_assert pods "{{range.items}}{{$image_field}}:{{end}}" 'gcr.io/google_containers/pause-amd64:3.0:'
|
kube::test::get_object_assert pods "{{range.items}}{{$image_field}}:{{end}}" 'gcr.io/google_containers/pause-amd64:3.1:'
|
||||||
|
|
||||||
## If resourceVersion is specified in the patch, it will be treated as a precondition, i.e., if the resourceVersion is different from that is stored in the server, the Patch should be rejected
|
## If resourceVersion is specified in the patch, it will be treated as a precondition, i.e., if the resourceVersion is different from that is stored in the server, the Patch should be rejected
|
||||||
ERROR_FILE="${KUBE_TEMP}/conflict-error"
|
ERROR_FILE="${KUBE_TEMP}/conflict-error"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "kubernetes-pause",
|
"name": "kubernetes-pause",
|
||||||
"image": "gcr.io/google_containers/pause-amd64:3.0"
|
"image": "gcr.io/google_containers/pause-amd64:3.1"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Never",
|
"restartPolicy": "Never",
|
||||||
|
|
|
@ -36,7 +36,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
defaultSandboxImage = "gcr.io/google_containers/pause-amd64:3.0"
|
defaultSandboxImage = "gcr.io/google_containers/pause-amd64:3.1"
|
||||||
|
|
||||||
// Various default sandbox resources requests/limits.
|
// Various default sandbox resources requests/limits.
|
||||||
defaultSandboxCPUshares int64 = 2
|
defaultSandboxCPUshares int64 = 2
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [{
|
"containers": [{
|
||||||
"name": "test-container",
|
"name": "test-container",
|
||||||
"image": "gcr.io/google_containers/pause-amd64:3.0"
|
"image": "gcr.io/google_containers/pause-amd64:3.1"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,10 +38,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// When these values are updated, also update cmd/kubelet/app/options/options.go
|
// When these values are updated, also update cmd/kubelet/app/options/container_runtime.go
|
||||||
// A copy of these values exist in e2e/framework/util.go.
|
// A copy of these values exist in test/utils/image/manifest.go
|
||||||
currentPodInfraContainerImageName = "gcr.io/google_containers/pause"
|
currentPodInfraContainerImageName = "gcr.io/google_containers/pause"
|
||||||
currentPodInfraContainerImageVersion = "3.0"
|
currentPodInfraContainerImageVersion = "3.1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetServerArchitecture fetches the architecture of the cluster's apiserver.
|
// GetServerArchitecture fetches the architecture of the cluster's apiserver.
|
||||||
|
|
|
@ -82,8 +82,8 @@ var (
|
||||||
NoSnatTest = ImageConfig{e2eRegistry, "no-snat-test", "1.0", true}
|
NoSnatTest = ImageConfig{e2eRegistry, "no-snat-test", "1.0", true}
|
||||||
NoSnatTestProxy = ImageConfig{e2eRegistry, "no-snat-test-proxy", "1.0", true}
|
NoSnatTestProxy = ImageConfig{e2eRegistry, "no-snat-test-proxy", "1.0", true}
|
||||||
NWayHTTP = ImageConfig{e2eRegistry, "n-way-http", "1.0", true}
|
NWayHTTP = ImageConfig{e2eRegistry, "n-way-http", "1.0", true}
|
||||||
// When these values are updated, also update cmd/kubelet/app/options/options.go
|
// When these values are updated, also update cmd/kubelet/app/options/container_runtime.go
|
||||||
Pause = ImageConfig{gcRegistry, "pause", "3.0", true}
|
Pause = ImageConfig{gcRegistry, "pause", "3.1", true}
|
||||||
Porter = ImageConfig{e2eRegistry, "porter", "1.0", true}
|
Porter = ImageConfig{e2eRegistry, "porter", "1.0", true}
|
||||||
PortForwardTester = ImageConfig{e2eRegistry, "port-forward-tester", "1.0", true}
|
PortForwardTester = ImageConfig{e2eRegistry, "port-forward-tester", "1.0", true}
|
||||||
Redis = ImageConfig{e2eRegistry, "redis", "1.0", true}
|
Redis = ImageConfig{e2eRegistry, "redis", "1.0", true}
|
||||||
|
|
Loading…
Reference in New Issue