Class Upstream

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<UpstreamBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class Upstream
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<UpstreamBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    Upstream can either be of type SystemResolvConf, or of type Network.


    - For an Upstream of type SystemResolvConf, no further fields are necessary:

    The upstream will be configured to use /etc/resolv.conf.

    - For an Upstream of type Network, a NetworkResolver field needs to be defined

    with an IP address or IP:port if the upstream listens on a port other than 53.

    See Also:
    Serialized Form
    • Constructor Detail

      • Upstream

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

      • getAddress

        public String getAddress()
        address must be defined when Type is set to Network. It will be ignored otherwise. It must be a valid ipv4 or ipv6 address.
      • setAddress

        public void setAddress​(String address)
        address must be defined when Type is set to Network. It will be ignored otherwise. It must be a valid ipv4 or ipv6 address.
      • getPort

        public Long getPort()
        port may be defined when Type is set to Network. It will be ignored otherwise. Port must be between 65535
      • setPort

        public void setPort​(Long port)
        port may be defined when Type is set to Network. It will be ignored otherwise. Port must be between 65535
      • getType

        public String getType()
        type defines whether this upstream contains an IP/IP:port resolver or the local /etc/resolv.conf. Type accepts 2 possible values: SystemResolvConf or Network.


        * When SystemResolvConf is used, the Upstream structure does not require any further fields to be defined:

        /etc/resolv.conf will be used

        * When Network is used, the Upstream structure must contain at least an Address

      • setType

        public void setType​(String type)
        type defines whether this upstream contains an IP/IP:port resolver or the local /etc/resolv.conf. Type accepts 2 possible values: SystemResolvConf or Network.


        * When SystemResolvConf is used, the Upstream structure does not require any further fields to be defined:

        /etc/resolv.conf will be used

        * When Network is used, the Upstream structure must contain at least an Address

      • getAdditionalProperties

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

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

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