Commit c7bbd26
authored
Append SystemCGroup from containderd config file (#435)
*Issue description:*
There was a change in the most recent EC2 AMI such that the config file
for containderd has the attribute `SystemdCgroup` missing. (Before the
attribute was present with the value set to `SystemdCgroup = false`)
This attribute needs to be set to true in order for the k8s cluster to
work.
*Description of changes:*
The sed command will initially replace the false value with true for
SystemCgroup. If the systemCgroup doesn't exist though, it will try to
append the attribute to the
`[plugins.'io.containerd.cri.v1.runtime'.containerd.runtimes.runc.options]
` plugin
Ran the script on personal account and verified that k8s is running
again
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.1 parent 830910a commit c7bbd26
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
145 | | - | |
| 146 | + | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
0 commit comments