Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-23507

The node IP obtained in NodePort mode is a VIP

    XMLWordPrintableJSON

Details

    • Hide
      When using "kubernetes.rest-service.exposed.type=NodePort", connection string for Rest gateway is now correctly constructed in form of "<nodeIp>:<nodePort>" instead of "<kubernetesApiServerUrl>:<nodePort>". This may be a breaking change for some users.

      This also introduces a new config option "kubernetes.rest-service.exposed.node-port-address-type" that lets you select "<nodeIp>" from a desired range.
      Show
      When using "kubernetes.rest-service.exposed.type=NodePort", connection string for Rest gateway is now correctly constructed in form of "<nodeIp>:<nodePort>" instead of "<kubernetesApiServerUrl>:<nodePort>". This may be a breaking change for some users. This also introduces a new config option "kubernetes.rest-service.exposed.node-port-address-type" that lets you select "<nodeIp>" from a desired range.

    Description

      When the three masters of k8s turn on the load balancing mode, when the job is submitted to the k8s cluster and the parameter -Dkubernetes.rest-service.exposed.type=NodePort is used, the web ui address of the job obtained at this time is Get the address of the k8s master, but this address is a VIP. VIP does not belong to the k8s cluster, so it cannot be accessed. The node ip we should get is the IP of any machine in the k8s cluster.
      like this:

      Attachments

        Issue Links

          Activity

            People

              dmvk David Morávek
              long jiang john
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: