Skip to content

Kubernetes outpost service - additional annotations #15730

@alexanderccc

Description

@alexanderccc

Is your feature request related to a problem? Please describe.
I'm trying to set an ldap outpost with Authentik. Since this requires TCP traffic, I'm looking to expose the service as a LoadBalancer. At the same time, I'd like to update my DNS to have a record created for my LDAP outpost.

I'm using external-dns to keep my DNS records up to date and this would require an additional annotation on the service, for example:

external-dns.alpha.kubernetes.io/hostname: ldap.authentik.example

There isn't any option to do so right now, as the annotations are limited to the Ingress/HTTPRoute resources.

Describe the solution you'd like
Add a kubernetes_service_annotations key to the outpost annotations that allows to add any annotations to the Service created.

Describe alternatives you've considered
I've tried setting a JSON patch, but I'm unsure this is correct as it definitely didn't work.

kubernetes_json_patches:
  services:
    - op: add
      path: "/metadata/annotations/external-dns.alpha.kubernetes.io~1hostname"
      value: "ldap.authentik.example"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions