redpanda-data / redpanda-operator

37 stars 9 forks source link

unable to update advertisedPorts #121

Open tylerbrewer2 opened 6 months ago

tylerbrewer2 commented 6 months ago

I'm attempting to update the external advertisedPorts for all protocols to use with a custom external service. It does not appear as if the operator is correctly setting these ports. When I view the brokers in the console, they are still using the default ports. Below is my configuration

apiVersion: cluster.redpanda.com/v1alpha1
kind: Redpanda
metadata:
  name: redpanda
spec:
  chartRef: {}
  clusterSpec:
    listeners:
      admin:
        external:
          default:
            advertisedPorts: [9645]
      http:
        external:
          default:
            advertisedPorts: [8083]
      kafka:
        external:
          default:
            advertisedPorts: [9094]
      schemaRegistry:
        external:
          default:
            advertisedPorts: [8084]
    external:
      domain: my-custom-domain
      service:
        enabled: false
    statefulset:
      replicas: 3
      tolerations:
        - effect: NoSchedule
          key: nvme
          value: enabled
          operator: Equal
      nodeSelector:
        NodeGroupName: Name
    storage:
      persistentVolume:
        enabled: true
        storageClass: csi-driver-lvm-striped-xfs

JIRA Link: K8S-211

tylerbrewer2 commented 6 months ago

Looking within redpanda.yaml it looks like advertised_kafka_api is using the incorrect port:

advertised_kafka_api:
        - address: redpanda-0.redpanda-core.redpanda-core.svc.cluster.local.
          port: 9093
          name: internal
        - address: my-custom-domain
          port: 31092
          name: default