IBMStockTrader / stocktrader-operator

Umbrella operator that installs/configures the IBM Stock Trader sample
7 stars 17 forks source link

Add global boolean for AWS LoadBalancer #16

Closed jwalcorn closed 1 year ago

jwalcorn commented 2 years ago

Today, to expose the Trader UI to be callable from a browser on your laptop, we have to manually create a special type of Service that exposes it via a Load Balancer, with an AWS-specific annotation. Need to teach the operator to do that for us, when requested. Here's the yaml we're manually running today:

apiVersion: v1
kind: Service
metadata:
  name: trader-loadbalancer
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-type: nlb
  finalizers:
  - service.kubernetes.io/load-balancer-cleanup
  labels:
    app: example-stocktrader-trader
spec:
  ports:
  - name: http
    protocol: TCP
    port: 9080
    targetPort: 9080
  - name: https
    protocol: TCP
    port: 9443
    targetPort: 9443
  selector:
    app: trader
  sessionAffinity: None
  type: LoadBalancer
jwalcorn commented 1 year ago

Addressed in v1.0.0 of the operator