github.phpd.cn/cilium/cilium@v1.6.12/Documentation/kubernetes/ciliumendpoint.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      http://docs.cilium.io
     6  
     7  ************
     8  Endpoint CRD
     9  ************
    10  
    11  When managing pods in Kubernetes, Cilium will create a Custom Resource
    12  Definition (CRD) of Kind ``CiliumEndpoint``. One ``CiliumEndpoint`` is created
    13  for each pod managed by Cilium, with the same name and in the same namespace.
    14  The ``CiliumEndpoint`` objects contain the same information as the json output
    15  of ``cilium endpoint get`` under the ``.status`` field, but can be fetched for
    16  all pods in the cluster.  Adding the ``-o json`` will export more information
    17  about each endpoint. This includes the endpoint's labels, security identity and
    18  the policy in effect on it.
    19  
    20  For example:
    21  
    22  ::
    23  
    24      kubectl get ciliumendpoints --all-namespaces
    25      NAMESPACE     NAME                     AGE
    26      default       app1-55d7944bdd-l7c8j    1h
    27      default       app1-55d7944bdd-sn9xj    1h
    28      default       app2                     1h
    29      default       app3                     1h
    30      kube-system   cilium-health-minikube   1h
    31      kube-system   microscope               1h
    32  
    33  .. note:: Each cilium-agent pod will create a CiliumEndpoint to represent its
    34            own inter-agent health-check endpoint. These are not pods in
    35            Kubernetes and are in the ``kube-system`` namespace. They are named as
    36            ``cilium-health-<node-name>``