You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, Service annotations are required.
These can currently be set on the ListenerClass, but not via the Listener itself.
Ideally, the ListenerClass would have annotations that apply broadly to the Services created by the Listener of that class. Then more specific annotations should be set on the Listener itself.
apiVersion: listeners.stackable.tech/v1alpha1kind: ListenerClassmetadata:
name: aws-ec2-nlb-publicspec:
...# 👇 Broad set of annotationsserviceAnotations:
service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facingservice.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip # Forward directly through node to Pod IP instead of an L3 hop/NAT through the node.service.beta.kubernetes.io/aws-load-balancer-attributes: >- proxy_protocol_v2.enabled=true
Specific annotation set:
kind: Listenermetadata:
name: the-nifi-listenerspec:
className: aws-nlb-tls-public# 👇 New: annotations specific to this listener instanceserviceAnnotations:
external-dns.alpha.kubernetes.io/hostname: app.internal.example.comservice.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:eu-central-1:123456789012:certificate/4e12c4fe-eed9-48db-98d8-820b6b50ace4service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "8443"
In some cases, Service annotations are required.
These can currently be set on the
ListenerClass, but not via theListeneritself.Ideally, the
ListenerClasswould have annotations that apply broadly to the Services created by theListenerof that class. Then more specific annotations should be set on theListeneritself.Example
Tip
The example below is not real. Please see:
spec.serviceOverridesspec.objectOverridesBroad annotations set:
Specific annotation set:
The resulting Service should look like:
From here,
listenerOverridesshould be configurable from the product resources (eg: NifiCluster).Important
See also: #330