Skip to content

Commit 712546b

Browse files
Merge pull request #1782 from lunarwhite/next
Add doc content for HTTP01 solver pod template resources support
2 parents ad1f3d2 + f68510f commit 712546b

File tree

1 file changed

+18
-4
lines changed
  • content/docs/configuration/acme/http01

1 file changed

+18
-4
lines changed

content/docs/configuration/acme/http01/README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ By default, type `NodePort` will be used when you don't set HTTP01 or when you s
125125
You may wish to change or add to the labels and annotations of solver pods.
126126
These can be configured under the `metadata` field under `podTemplate`.
127127

128-
Similarly, you can set the `nodeSelector`, tolerations and affinity of solver
129-
pods by configuring under the `spec` field of the `podTemplate`. No other
130-
spec fields can be edited.
128+
Similarly, you can set the `nodeSelector`, `tolerations`, `affinity`,
129+
`priorityClassName`, `serviceAccountName`, `securityContext`, `imagePullSecrets`
130+
and `resources` of solver pods by configuring under the `spec` field of
131+
the `podTemplate`. No other spec fields can be edited.
131132

132133
An example of how you could configure the template is as so:
133134

@@ -152,12 +153,25 @@ spec:
152153
spec:
153154
nodeSelector:
154155
bar: baz
156+
resources:
157+
requests:
158+
cpu: 20m
159+
memory: 32Mi
160+
limits:
161+
cpu: 150m
162+
memory: 64Mi
155163
```
156164

157165
The added labels and annotations will merge on top of the cert-manager defaults,
158166
overriding entries with the same key.
159167

160-
No other fields of the `podTemplate` exist.
168+
The resources configuration **overrides** the global defaults (configured via controller flags
169+
`--acme-http01-solver-resource-*`) for the specific Issuer, enabling granular resource management
170+
in multi-tenant or restricted policy scenarios.
171+
172+
> Note that when only specifying resource limits, ensure they are greater than or equal to the
173+
> corresponding global resource requests configured via controller flags. Kubernetes will reject
174+
> pod creation if limits are lower than requests, causing challenge failures.
161175

162176
### `ingressTemplate`
163177

0 commit comments

Comments
 (0)