github.com/cilium/cilium@v1.16.2/Documentation/network/servicemesh/basic-ingress.rst (about)

     1  .. only:: not (epub or latex or html)
     2  
     3      WARNING: You are looking at unreleased Cilium documentation.
     4      Please use the official rendered version released here:
     5      https://docs.cilium.io
     6  
     7  Deploy the First Ingress
     8  ========================
     9  
    10  You'll find the example Ingress definition in ``basic-ingress.yaml``.
    11  
    12  .. literalinclude:: ../../../examples/kubernetes/servicemesh/basic-ingress.yaml
    13  
    14  .. parsed-literal::
    15  
    16      $ kubectl apply -f \ |SCM_WEB|\/examples/kubernetes/servicemesh/basic-ingress.yaml
    17  
    18  
    19  This example routes requests for the path ``/details`` to the ``details`` service,
    20  and ``/`` to the ``productpage`` service.
    21  
    22  Getting the list of services, you'll see a LoadBalancer service is automatically
    23  created for this ingress. Your cloud provider will automatically provision an
    24  external IP address, but it may take around 30 seconds.
    25  
    26  .. code-block:: shell-session
    27  
    28      # For dedicated load balancer mode
    29      $ kubectl get svc
    30      NAME                           TYPE           CLUSTER-IP       EXTERNAL-IP     PORT(S)        AGE
    31      cilium-ingress-basic-ingress   LoadBalancer   10.98.169.125    10.98.169.125   80:32478/TCP   2m11s
    32      details                        ClusterIP      10.102.131.226   <none>          9080/TCP       2m15s
    33      kubernetes                     ClusterIP      10.96.0.1        <none>          443/TCP        10m
    34      productpage                    ClusterIP      10.97.231.139    <none>          9080/TCP       2m15s
    35      ratings                        ClusterIP      10.108.152.42    <none>          9080/TCP       2m15s
    36      reviews                        ClusterIP      10.111.145.160   <none>          9080/TCP       2m15s
    37  
    38      # For shared load balancer mode
    39      $ kubectl get services -n kube-system cilium-ingress
    40      NAME             TYPE           CLUSTER-IP      EXTERNAL-IP     PORT(S)                      AGE
    41      cilium-ingress   LoadBalancer   10.98.169.125   10.98.169.125   80:32690/TCP,443:31566/TCP   18m
    42  
    43  The external IP address should also be populated into the Ingress:
    44  
    45  .. code-block:: shell-session
    46  
    47      $ kubectl get ingress
    48      NAME            CLASS    HOSTS   ADDRESS         PORTS   AGE
    49      basic-ingress   cilium   *       10.98.169.125   80      97s
    50  
    51  .. Note::
    52  
    53      Some providers e.g. EKS use a fully-qualified domain name rather than an IP address.