cert-manager icon indicating copy to clipboard operation
cert-manager copied to clipboard

Custom labels/annotations in ACME solver services created by Issuer/ClusterIssuer

Open bntan opened this issue 2 years ago • 6 comments

Is your feature request related to a problem?

We are using micro-segmentation in our cloud environnements. Our micro-segmentation solution requires the ACME solver service to be labeled/annotated in order to access the ACME solver pod and validate the ACME HTTP-01 challenge.

Describe the solution you'd like

Support custom labels and annotations in services that are created by the Issuer/ClusterIssuer.

One solution is to add a serviceTemplate like existing podTemplate and ingressTemplate:

apiVersion: cert-manager.io/v1
kind: Issuer
[...]
spec:
  acme:
    [...]
    solvers:
      - http01:
          ingress:
            [...]
            serviceTemplate:
              metadata:
                labels:
                  label_1_key: label_1_value
                  label_2_key: label_2_value
                annotations:
                  annotation_1_key: annotation_1_value
                  annotation_2_key: annotation_2_value

Describe alternatives you've considered

NA

Additional context

NA

/kind feature

bntan avatar Mar 16 '22 09:03 bntan

I'm also facing this issue and hope a solution exists

ChrisR240 avatar Mar 23 '22 17:03 ChrisR240

Up...

ChrisR240 avatar Apr 01 '22 17:04 ChrisR240

I am using cert-manager in an auto-scaled Kubernetes cluster in Google Cloud. The cluster is not able to scale down underutilised nodes, because the came solver pods are not backed by a controller (see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-types-of-pods-can-prevent-ca-from-removing-a-node for details). Adding the label 'cluster-autoscaler.kubernetes.io/safe-to-evict': 'true' is supposed to solve this issue, but I can't use it since adding labels is not supported.

So one more vote from my side for adding this feature :)

image

0x7f avatar May 03 '22 12:05 0x7f

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle stale

jetstack-bot avatar Aug 01 '22 13:08 jetstack-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle rotten /remove-lifecycle stale

jetstack-bot avatar Aug 31 '22 13:08 jetstack-bot

/remove-lifecycle rotten

bntan avatar Sep 12 '22 13:09 bntan

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle stale

jetstack-bot avatar Dec 11 '22 14:12 jetstack-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle rotten /remove-lifecycle stale

jetstack-bot avatar Jan 10 '23 14:01 jetstack-bot

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten. Send feedback to jetstack. /close

jetstack-bot avatar Feb 09 '23 15:02 jetstack-bot

@jetstack-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten. Send feedback to jetstack. /close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

jetstack-bot avatar Feb 09 '23 15:02 jetstack-bot