Interface ServiceBindOptions

    • Method Detail

      • getName

        @Stability(Stable)
        @Nullable
        default String getName()
        The name of this port within the service.

        This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service.

      • getNodePort

        @Stability(Stable)
        @Nullable
        default Number getNodePort()
        The port on each node on which this service is exposed when type=NodePort or LoadBalancer.

        Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one.

        Default: - auto-allocate a port if the ServiceType of this Service requires one.

        See Also:
        https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
      • getProtocol

        @Stability(Stable)
        @Nullable
        default Protocol getProtocol()
        The IP protocol for this port.

        Supports "TCP", "UDP", and "SCTP". Default is TCP.

        Default: Protocol.TCP

      • getTargetPort

        @Stability(Stable)
        @Nullable
        default Number getTargetPort()
        The port number the service will redirect to.

        Default: - The value of `port` will be used.