You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Vince.Feng (Jira)" <ji...@apache.org> on 2023/04/20 10:09:00 UTC

[jira] [Created] (FLINK-31863) Add 'Hostname' enum val to k8s NodeAddress type.

Vince.Feng created FLINK-31863:
----------------------------------

             Summary: Add 'Hostname' enum val to k8s NodeAddress type.
                 Key: FLINK-31863
                 URL: https://issues.apache.org/jira/browse/FLINK-31863
             Project: Flink
          Issue Type: Improvement
          Components: Deployment / Kubernetes
    Affects Versions: 1.17.0
         Environment: OS: CentOS 7

Kubernetes: v1.18.5
            Reporter: Vince.Feng
             Fix For: 1.17.1
         Attachments: image-2023-04-20-17-53-30-969.png

Class io.fabric8.kubernetes.api.model.NodeAddress.type contains 'InternalIP','ExternalIP' and 'Hostname'. The InternalIP address is unavailable in the private cloud environment. But the hostname can be resolved by the DNS server. So 'org.apache.flink.kubernetes.configuration.NodePortAddressType.NodePortAddressType' should add 'Hostname' enumeration value.
{code:java}
//org.apache.flink.kubernetes.configuration.NodePortAddressType.NodePortAddressType
    public enum NodePortAddressType {
        InternalIP,
        ExternalIP,
        Hostname
    } {code}
 

!image-2023-04-20-17-53-30-969.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)