-
Couldn't load subscription status.
- Fork 1
Open
Description
We currently have all ListenerClass spec fields at the top level. Most are passed through to the Service and most are prefixed with service while others are not.
Perhaps we should consider one of these options:
- Prefix all fields that will be passed to
Servicewithservice. - Move
Servicerelated fields down toserviceOverrides- We need to consider if there are
Servicefields that should not be overridable.
- We need to consider if there are
Option 1
apiVersion: listeners.stackable.tech/v1alpha1
kind: ListenerClass
metadata:
name: aws-ec2-nlb-public
spec:
# 👇 This is not passed to the Service
preferredAddressType: HostnameConservative
serviceType: LoadBalancer
# 👇 prefix with `service`
serviceLoadBalancerClass: eks.amazonaws.com/nlb
serviceLoadBalancerAllocateNodePorts: false
# 👆
serviceExternalTrafficPolicy: Local
serviceAnotations: {}Option 2
apiVersion: listeners.stackable.tech/v1alpha1
kind: ListenerClass
metadata:
name: aws-ec2-nlb-public
spec:
# 👇 This remains unchanged, not passed to the Service
preferredAddressType: HostnameConservative
# 👇 New
serviceOverrides:
type: LoadBalancer
loadBalancerClass: eks.amazonaws.com/nlb
loadBalancerAllocateNodePorts: false
externalTrafficPolicy: Local
annotations: {}Option 3
apiVersion: listeners.stackable.tech/v1alpha1
kind: ListenerClass
metadata:
name: aws-ec2-nlb-public
spec:
# 👇 This remains unchanged, not passed to the Service
preferredAddressType: HostnameConservative
# 👇 New
serviceOverrides:
<service object>
metadata:
annotations:
spec:
type: LoadBalancer
loadBalancerClass: eks.amazonaws.com/nlb
allocateLoadBalancerNodePorts: false
externalTrafficPolicy: Localfetzerms
Metadata
Metadata
Assignees
Labels
No labels