Skip to content

Commit

Permalink
Endpoints are local to the node on which the cilium agent is running.
Browse files Browse the repository at this point in the history
The example assumed that there was only one node as invoking against
ds/cilium just picks one pod in the daemonset.

Signed-off-by: Tony Norlin <tony.norlin@localdomain.se>
  • Loading branch information
tnorlin committed Mar 6, 2023
1 parent 918b75c commit a2d1efc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Documentation/security/gsg_sw_demo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,18 @@ point the pod is ready.
service/deathstar ClusterIP 10.96.110.8 <none> 80/TCP 107s
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 3m53s
Each pod will be represented in Cilium as an :ref:`endpoint`. We can invoke the
``cilium`` tool inside the Cilium pod to list them:
Each pod will be represented in Cilium as an :ref:`endpoint` in the local cilium agent.
We can invoke the ``cilium`` tool inside the Cilium pod to list them (in a single-node installation
``kubectl -n kube-system exec ds/cilium -- cilium endpoint list`` lists them all, but in a
multi-node installation, only the ones running on the same node will be listed):

.. code-block:: shell-session
$ kubectl -n kube-system get pods -l k8s-app=cilium
NAME READY STATUS RESTARTS AGE
cilium-5ngzd 1/1 Running 0 3m19s
$ kubectl -n kube-system exec ds/cilium -- cilium endpoint list
$ kubectl -n kube-system exec cilium-5ngzd -- cilium endpoint list
ENDPOINT POLICY (ingress) POLICY (egress) IDENTITY LABELS (source:key[=value]) IPv6 IPv4 STATUS
ENFORCEMENT ENFORCEMENT
232 Disabled Disabled 16530 k8s:class=deathstar 10.0.0.147 ready
Expand Down

0 comments on commit a2d1efc

Please sign in to comment.