mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #45341 from shyamjvs/kubemark-initcontainer
Automatic merge from submit-queue (batch tested with PRs 45316, 45341) Move hollow-node's initContainer from annotation to field In 1.6, we have moved init containers spec from beta annotation to field. Updating this in kubemark hollow-node. This should solve issues with setting of default fields (like ImagePullPolicy) in the container spec for older versions of apiservers too (as annotation->field change has been cherry picked for older releases too). We noticed this issue in https://github.com/kubernetes/kubernetes/issues/45290 where an old apiserver apparently wasn't setting default ImagePullPolicy for container spec inside annotations. cc @wojtek-t @gmarek @gamename
This commit is contained in:
commit
166003f166
@ -12,18 +12,13 @@ spec:
|
||||
metadata:
|
||||
labels:
|
||||
name: hollow-node
|
||||
annotations:
|
||||
pod.beta.kubernetes.io/init-containers: '[
|
||||
{
|
||||
"name": "init-inotify-limit",
|
||||
"image": "busybox",
|
||||
"command": ["sysctl", "-w", "fs.inotify.max_user_instances=200"],
|
||||
"securityContext": {
|
||||
"privileged": true
|
||||
}
|
||||
}
|
||||
]'
|
||||
spec:
|
||||
initContainers:
|
||||
- name: init-inotify-limit
|
||||
image: busybox
|
||||
command: ['sysctl', '-w', 'fs.inotify.max_user_instances=200']
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: kubeconfig-volume
|
||||
secret:
|
||||
|
Loading…
Reference in New Issue
Block a user