@@ -115,6 +115,7 @@ func (r *RebootManager) rebootRequiredPod(nodeName string) *corev1.Pod {
115115 ReadOnly : true ,
116116 MountPath : "/host/var/run" ,
117117 }},
118+ Resources : config .GetConfig ().Pod .ContainerResources .ToResourceRequirement (),
118119 }},
119120 RestartPolicy : "Never" ,
120121 TerminationGracePeriodSeconds : PtrTo (int64 (1 )),
@@ -133,6 +134,7 @@ func (r *RebootManager) rebootRequiredPod(nodeName string) *corev1.Pod {
133134 Operator : corev1 .TolerationOpExists ,
134135 Effect : corev1 .TaintEffectNoSchedule ,
135136 }},
137+ PriorityClassName : config .GetConfig ().Pod .PriorityClassName ,
136138 },
137139 }
138140}
@@ -169,7 +171,6 @@ func (r *RebootManager) rebootNodePod(nodeName string) *corev1.Pod {
169171 GenerateName : "reboot-" ,
170172 Namespace : r .namespace ,
171173 Labels : map [string ]string {LabelComponent : "reboot" },
172- Annotations : map [string ]string {"container.apparmor.security.beta.kubernetes.io/shell" : "unconfined" },
173174 },
174175 Spec : corev1.PodSpec {
175176 Tolerations : []corev1.Toleration {{
@@ -196,8 +197,15 @@ func (r *RebootManager) rebootNodePod(nodeName string) *corev1.Pod {
196197 Privileged : PtrTo (false ),
197198 ReadOnlyRootFilesystem : PtrTo (true ),
198199 },
200+ Resources : config .GetConfig ().Pod .ContainerResources .ToResourceRequirement (),
199201 }},
200- RestartPolicy : "Never" ,
202+ RestartPolicy : "Never" ,
203+ PriorityClassName : config .GetConfig ().Pod .PriorityClassName ,
204+ SecurityContext : & corev1.PodSecurityContext {
205+ AppArmorProfile : & corev1.AppArmorProfile {
206+ Type : corev1 .AppArmorProfileTypeUnconfined ,
207+ },
208+ },
201209 },
202210 }
203211}
0 commit comments