Repository navigation
Commit 6ee7e20
committed
fix(kubernetes): raise kubectl Job memory limits above the OOMKill floor
The chart's kubectl-apply containers were capped at 256Mi and got
OOMKilled (exit 137) part-way through their scripts. Under
restartPolicy: OnFailure the pod respawned while the Job-level status
stayed active, which made the failure invisible apart from a growing
restart count.
kubectl apply loads full discovery plus the aggregated OpenAPI document
of the target apiserver before it can compute a patch, and on a
Cozystack management cluster that spans several hundred CRDs. 256Mi is
below the working set. Raise the floor to 512Mi on bootstrap-token-tenant
and oidc-bootstrap.
The talos-reconcile Job, where this was first observed, no longer exists
in the chart: it was removed with the worker node pools, which also
retires the talos.reconcileJobMemoryLimit knob this change first carried.
The bootstrap-token Job is named by a content hash of its rendered spec,
so the new limit rotates the name and the pinned fixtures move with it.
Fixes #3519
Signed-off-by: Mattia Eleuteri <[email protected]>
Assisted-by: LLM1 parent a1b32f2 commit 6ee7e20
3 files changed
Lines changed: 23 additions & 7 deletions
File tree
- packages/apps/kubernetes
- templates
- talos
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
171 | 178 | | |
172 | 179 | | |
173 | 180 | | |
174 | 181 | | |
175 | 182 | | |
176 | 183 | | |
177 | | - | |
| 184 | + | |
178 | 185 | | |
179 | 186 | | |
180 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
121 | 130 | | |
122 | 131 | | |
123 | 132 | | |
124 | 133 | | |
125 | 134 | | |
126 | 135 | | |
127 | | - | |
| 136 | + | |
128 | 137 | | |
129 | 138 | | |
130 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments