goauthentik / goauthentik/authentik

Kubernetes outpost service - additional annotations

Open
#15,730 0 comments 7 reactions 1 assignee Claimed by @rissson View on GitHub
enhancement
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 1h
Merged PRs (30d)
644

Description

**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:
```yaml
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.
```yaml
kubernetes_json_patches:
services:
- op: add
path: "/metadata/annotations/external-dns.alpha.kubernetes.io~1hostname"
value: "ldap.authentik.example"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.