Class ContainerPort

    • Constructor Detail

      • ContainerPort

        public ContainerPort()
        No args constructor for use in serialization
    • Method Detail

      • getContainerPort

        public Integer getContainerPort()
        Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
      • setContainerPort

        public void setContainerPort​(Integer containerPort)
        Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
      • getHostIP

        public String getHostIP()
        What host IP to bind the external port to.
      • setHostIP

        public void setHostIP​(String hostIP)
        What host IP to bind the external port to.
      • getHostPort

        public Integer getHostPort()
        Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.
      • setHostPort

        public void setHostPort​(Integer hostPort)
        Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.
      • getName

        public String getName()
        If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.
      • setName

        public void setName​(String name)
        If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.
      • getProtocol

        public String getProtocol()
        Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".
      • setProtocol

        public void setProtocol​(String protocol)
        Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)