Traffic: the policies against the calls Istio measured
netatlas draws the calls between your workloads from the metrics Istio's proxies write to Prometheus. It compares each call with the policies it read, so you see what runs without a policy, what a policy allows that nobody uses, and what is being refused. This page connects netatlas to Prometheus, says how to read the Traffic view and what each figure and mark means, and lists what Istio's metrics cannot tell netatlas.

The policies have their own pages: the Policy map, Open workloads and Istio AuthorizationPolicies. Outbound covers the calls that leave a cluster, and Egress the mesh needs the egress rules that cut a workload off from istiod or DNS.
What you need
- Istio in the cluster, and a Prometheus that scrapes Istio's proxies: the sidecars, and in ambient mode ztunnel. netatlas leaves out what waypoints report, so it needs nothing from them. netatlas does not install Prometheus, and reading traffic changes nothing in a cluster. Istio's own documentation describes a sample Prometheus for this and calls it "intended for demonstration only, and is not tuned for performance or security".
- A
prometheusentry in each cluster whose traffic you want to see. A cluster without one saysNo traffic source for <cluster>: its registry entry names no Prometheus.wherever traffic would show. Its policies and workloads are not affected. - A read role that includes ServiceEntries, Sidecars and Istio's mesh config (The role).
Connect netatlas to Prometheus
Add prometheus to the cluster's entry in the chart's clusters value. Its fields:
| Field | What it does |
|---|---|
url |
Where Prometheus answers, starting http:// or https://. Required. Do not put a user or password in it: netatlas refuses such a URL, and auth.type: basic is how to send them. A path stays: https://example.com/prometheus is asked at /prometheus/api/v1/query. |
auth.type |
none (the default) sends no credentials. bearer sends Authorization: Bearer <token>: Prometheus itself checks only basic authentication, so use bearer for a proxy or a hosted service in front of it. basic sends a user name and a password. |
auth.secretName |
Required for bearer and basic. A Secret in the namespace netatlas is installed in, with the keys below. |
caData |
The CA of an https:// Prometheus, as base64 PEM. Leave it out when a public CA signed its certificate. |
clusterLabel |
name and value, for one Prometheus that holds the metrics of several clusters. netatlas adds name="value" to every query, so the cluster counts only the series that carry that label value. The label must be on the Istio series. |
The Secret holds one key for each credential:
auth.type |
Secret keys |
|---|---|
bearer |
token |
basic |
username and password |
Create the Secret in the namespace netatlas is installed in, before you install or upgrade the chart. This one holds a basic login:
kubectl --namespace netatlas create secret generic netatlas-prometheus-prod-eu-1 --from-file=username=./username.txt --from-file=password=./password.txt
Then name it in the cluster's entry. This entry reads a Prometheus behind HTTPS with a private CA, and it shares that Prometheus with other clusters:
clusters:
- name: prod-eu-1
server: https://ABCDEF0123456789.gr7.eu-west-1.eks.amazonaws.com
caData: LS0tLS1CRUdJTi...
login:
type: eks
clusterName: prod-eu-1
region: eu-west-1
prometheus:
url: https://prometheus.example.com
auth:
type: basic
secretName: netatlas-prometheus-prod-eu-1
caData: LS0tLS1CRUdJTi...
clusterLabel:
name: cluster
value: prod-eu-1
A Prometheus inside the cluster, with no login, needs only its address:
clusters:
- name: my-cluster
login:
type: inCluster
prometheus:
url: http://prometheus.istio-system:9090
How netatlas handles the credentials
- Credentials come only from files the chart mounts from your Secret. netatlas never reads a Secret through the Kubernetes API.
- netatlas trims each value, so a file saved with a trailing newline works. It reads the files again once the last read is a minute old, so a rotated Secret works without a restart, as soon as Kubernetes has updated the mounted files.
- A
bearertoken must be made of visible ASCII characters only: no space, no control character and no other character inside it. netatlas does not send a token that holds one, and the reason readsthe Prometheus credentials could not be read. Abasiclogin has no such limit. - With
http://and abearerorbasiclogin, the credential crosses the network unencrypted. netatlas does not refusehttp://, because a Prometheus inside the cluster often has no TLS. Usehttps://when the credential would travel over a network you do not trust. - netatlas never stores, logs or shows a token, a password or an Authorization header. A reason or an error names what failed: an HTTP status, a socket error, the size of an answer, which mounted file could not be read, or Prometheus's own error text. It never quotes a header. Prometheus's text is shown with each control character made a space and is cut at 200 characters, ending in
…, because it goes into the log and onto every page.
What the chart and netatlas refuse
The chart stops helm install with one of these:
cluster "<name>" sets prometheus, so it needs prometheus.urlcluster "<name>" prometheus.url must not carry a user or password: use prometheus.auth basic with a Secretcluster "<name>" prometheus.auth.type "<type>" is not none, bearer or basiccluster "<name>" uses prometheus <type> auth, so it needs prometheus.auth.secretNamecluster "<name>" is too long to name its Secret volume: at most 52 characters with a Prometheus Secret, 55 with a token Secret
netatlas stops at start, naming the cluster, when:
- the URL does not start with
http://orhttps://, or is not a URL it can read; - the URL carries a user or a password (
use auth basic with a Secret); clusterLabellacks anameor avalue, or its name is not a Prometheus label name;clusterDomainis not a DNS name.
What netatlas asks Prometheus
netatlas sends five fixed queries to <url>/api/v1/query. Nothing a browser sends reaches a query. They count Istio's standard metrics:
requests:
sum by (reporter, source_workload, source_workload_namespace, source_cluster, destination_workload, destination_workload_namespace, destination_service, destination_service_name, destination_cluster, response_code, response_flags) (rate(istio_requests_total{reporter=~"source|destination"}[5m])) > 0
requestBytes:
sum by (reporter, source_workload, source_workload_namespace, source_cluster, destination_workload, destination_workload_namespace, destination_service, destination_service_name, destination_cluster) (rate(istio_tcp_received_bytes_total{reporter=~"source|destination"}[5m])) > 0
responseBytes:
sum by (reporter, source_workload, source_workload_namespace, source_cluster, destination_workload, destination_workload_namespace, destination_service, destination_service_name, destination_cluster) (rate(istio_tcp_sent_bytes_total{reporter=~"source|destination"}[5m])) > 0
closed:
sum by (reporter, source_workload, source_workload_namespace, source_cluster, destination_workload, destination_workload_namespace, destination_service, destination_service_name, destination_cluster, response_flags) (rate(istio_tcp_connections_closed_total{reporter=~"source|destination"}[5m])) > 0
recent:
sum by (reporter, source_workload, source_workload_namespace, destination_workload, destination_workload_namespace) (increase(istio_requests_total{reporter=~"source|destination"}[24h])) > 0 or sum by (reporter, source_workload, source_workload_namespace, destination_workload, destination_workload_namespace) (increase(istio_tcp_connections_opened_total{reporter=~"source|destination"}[24h])) > 0
- The first four give the figures of the Traffic view. The fifth,
recent, lists the pairs of workloads that had any call in the last 24 hours. - Each of the first four ends in
> 0. A series whose 5-minute rate is 0 was seen earlier and is idle now, so it is not a call, and the query leaves it out. Only therecentpairs tell that a pair of workloads was seen lately. - The matcher keeps the reports of the caller's proxy (
reporter="source") and of the callee's (reporter="destination"), and leaves out a waypoint's. A call is reported on both ends, so netatlas counts each call once: the caller's report, plus the callee's only where the caller has no proxy to report it. A caller has no proxy whensource_workloadisunknown, or when it names a pod netatlas sees that is not in the mesh (ztunnel names such a caller; a sidecar cannot). The callee's report is also kept when itssource_clusteranddestination_clusterare both known and differ: a caller in another cluster of the mesh reports into that cluster's own Prometheus, so this cluster's figures do not hold its report. - netatlas reads labels by name. A label that is missing, for example one an operator removed with Istio's Telemetry API, reads as
unknown. What that does depends on the label. Withsource_workloadunknown, the caller counts as one netatlas cannot name. With the destination's workload,destination_serviceanddestination_service_nameall unknown, the call is unattributed traffic. A call to a ServiceEntry host that loses onlydestination_servicereads as a call to a workloadnot running now, because its workload name is the entry's own making (What workloads do call). - netatlas ignores the
namespaceandpodlabels of the scrape: in Istio's sample Prometheus they hold the namespace and name of the pod that was scraped, which is the proxy that reported, not the workload. - With a
clusterLabel, each query's selector also carries it, for exampleistio_requests_total{reporter=~"source|destination", cluster="prod-eu-1"}.
How often
- The four figure queries run every 30 seconds, together. The next poll starts 30 seconds after the last one ended, so a slow Prometheus never gets two polls at once.
- The
recentquery runs every 10 minutes. After a failure it runs again 2 minutes later, and every 2 minutes until one succeeds, so a heavy query that keeps timing out is not sent every 30 seconds. The pairs already shown stay meanwhile. When the last answer ofrecentis more than 30 minutes older than the figures, which means the query keeps failing while the figures go on, netatlas treats it as not answered: idle edges readno traffic, 5 min, and nothing is listed under Allowed, not used. - A query that gets no answer in 10 seconds fails with
Prometheus stopped answering.
When Prometheus does not answer
The cluster stays reachable, and netatlas keeps asking. The pages that show traffic say Traffic unavailable since <time>: <reason>. and go on showing the last figures: Showing figures from <age>., or No figures yet. when there are none. While netatlas has not read Prometheus once, they say Reading traffic from Prometheus. The views column counts the sources under Data sources, for example Prometheus, 1 of 2: how many of the clusters that name a Prometheus answer now. Every open page changes that count when a source starts or stops answering, not only the pages that show traffic. The reason is one of these:
| Reason | What it means |
|---|---|
Prometheus refused the connection |
Nothing listens at the url. |
Prometheus stopped answering |
No answer in 10 seconds, or the host cannot be reached. |
the address of Prometheus could not be resolved |
The host name does not resolve. |
Prometheus's certificate was not accepted |
The certificate is self-signed, expired, signed by a CA netatlas does not trust, or does not name the host. For a private CA, set caData. |
Prometheus did not accept netatlas's credentials |
HTTP 401: check the Secret. |
netatlas's credentials may not query Prometheus |
HTTP 403: the login may not run queries. |
Prometheus answered HTTP <status> with a body that is not JSON |
Usually a proxy in front of Prometheus answering with a login page or a redirect. netatlas never reads such an answer as "no traffic". |
Prometheus refused the query: <type>: <message> |
Prometheus rejected one of the five queries. The text is Prometheus's own, with control characters made spaces and cut at 200 characters. |
Prometheus answered with a body larger than 16 MiB |
netatlas does not read an answer larger than 16 MiB, because the pod's memory is limited, and the query fails. |
Prometheus answered with a body netatlas does not understand |
The answer is JSON that is not a Prometheus query result. |
the Prometheus credentials could not be read |
The Secret is not mounted, or lacks a key, or the bearer token holds a character an Authorization header cannot carry. |
Prometheus could not be reached |
Any other failure. |
The log names the cause too, without a token or a header. When a source stops, netatlas logs netatlas: cluster <name>: <source> stopped: <message>, where <source> is Kubernetes API or Prometheus. When a check finds a token file no header can carry, it logs netatlas: cluster <name>: the token file holds a character an Authorization header cannot carry, once until a check passes. When one of the pages listening for a change fails while netatlas tells them, it logs netatlas: a listener of <cluster> failed: <message>, and the other pages still hear the change.
What the figures mean
- Every figure is a rate per second, averaged over the last 5 minutes and read again every 30 seconds. A change shows up gradually: a service that stopped a minute ago is still in the average.
- An edge's label shows up to three figures, joined with
·: requests per second, the share of them answered with a 5xx code, and bytes per second with both directions added, for example52 req/s · 2.1% errors · 18 kB/s. A figure that is 0 is left out. A request edge shows requests and errors; a TCP edge shows bytes. TCP connections closed per second are in the label only when they are the only figure, as on a connection refused before it carried a byte:0.2 conn/s, or< 0.1 conn/sbelow the smallest step. In words they read0.2 connections a secondor1 connection a second. Otherwise they decide the refused marks, and they count toward a destination's rate on the Outbound view. - A figure below its smallest step reads
< 0.1 req/s,< 0.1 conn/s,< 0.1%or< 1 B/s. - "No calls recorded in the last 24 hours" is only as good as Prometheus's retention. A Prometheus that keeps less than a day has recorded less, so netatlas says "recorded", not "made". It says so only while the pairs of the 24-hour query are at most 30 minutes older than the figures (How often).
- The marks compare workloads, not ports: Istio's metrics carry no destination port.
The Traffic view
The Traffic view draws one cluster's workloads by namespace, as the Policy map does. It lays them out with the Policy map's lines, the calls of the last 5 minutes and the calls of the last 24 hours, so each line goes around the boxes in its way, a call that comes or goes on a poll moves no box for 24 hours, and a workload can sit elsewhere than on the Policy map. The box of the callers outside the mesh keeps its place too, left empty while no call from them is measured. The 24-hour query names the two workloads of a call only, so a call to a service no workload answered, or from or to a workload not running now, can still move boxes when it comes or goes (Traffic). Choose Traffic in the views column, under Network. With All clusters chosen it says Choose a cluster to see its traffic. and lists the clusters.
Above the map are what it measures (Requests measured by Istio, read from Prometheus), the namespaces it shows (Namespaces: 3 of 5, a list of checkboxes), the window (Last 5 minutes, fixed) and the Compare with policies button, which is on until you turn it off. Moving around the map says how to move around it. When no namespace box is drawn, the map says No namespace is shown. Open Namespaces to show one. above what is still drawn. That includes a pick of only namespaces that hold no workload, because a namespace with no workload is never drawn as a box.
Each workload's box says how many pods it has and where it stands: 2 pods · in the mesh, 1 pod · not in the mesh, 2 pods · open for an open workload in the mesh (the box then leaves out in the mesh), or 1 pod · not in the mesh · open. Open workloads says what open means. Each edge is a caller and what it called in the last 5 minutes, labelled with its figures (for example 52 req/s · 2.1% errors). Besides the workloads, the map draws these nodes:
| Node | When it is drawn |
|---|---|
Internet (outside the cluster) |
Always, for a cluster with a traffic source. Every call that leaves the cluster is an edge to it, and every call from a caller in another cluster of the mesh is an edge from it. |
Callers outside the mesh (no proxy, so no workload name) |
A call whose caller has no proxy and no name. |
A workload's name (<namespace> · not running now) |
The metrics name a workload that netatlas does not see in the cluster. |
A service's name (no workload answered) |
A service of the cluster that no workload answered. |
With Compare with policies on, every edge carries a mark.
The marks
netatlas gives a traffic edge the first of the first seven marks below that holds, in this order, with the exceptions the rows name, and draws it as the legend under the map says. The last line is for an edge with no traffic. The first column has the legend's lines, in the legend's words:
| Legend line | It holds when | What to do |
|---|---|---|
leaves the cluster |
The destination is not a workload of the cluster: a host, an address Istio did not name, a call REGISTRY_ONLY blocked, or a call into another cluster of the mesh. | The edge goes to the Internet node. The Outbound view lists each destination. |
not compared with the policies, or not measured |
The caller is outside the mesh, in another cluster of the mesh, or not running now, or the destination is not running now, is a service no workload answered, or is a waypoint. netatlas cannot match these to policies. The edge from the Internet node to an ingress gateway (The Internet node and the notes on edges) is in this line too, and so is an idle edge that is not measured (Allowed, but no traffic). So is a measured pair that would have read allowed, covered by no policy or answered though the policies deny it, while netatlas may not read the NetworkPolicies or the AuthorizationPolicies: the edge says depends: netatlas's role may not read ... and the page names the kind (A kind netatlas may not read). |
Nothing: the edge is drawn without a verdict. For a kind netatlas may not read, apply the rules of The role. |
refused by Istio |
For requests: every answer was a 403, and Istio's own rule denies the call (Calls Istio refused). For TCP in ambient mode: the callee's ztunnel closed every connection it reported with DENY, whether or not the pair also has requests. For TCP between sidecars: there are no requests, every connection closed with no byte sent back, and Istio's own rule denies the call. |
Check the AuthorizationPolicies of the callee. |
refused by the network |
For requests: every one was a 503 with the response flag UF, UH or URX (the upstream connection failed, no upstream was healthy, or the retries ran out). For TCP: every closed connection carried UF (Envoy's connection failure) or one of ztunnel's flags for a connection that failed: CONNECT, NETWORK_POLICY, TLS_FAILURE, H2_HANDSHAKE_FAILURE, IDENTITY_ERROR or CERT_REVOKED. |
Check that the callee runs and is healthy, and the NetworkPolicies between the two. |
answered though the policies now deny it |
The policies deny the call, and it was answered. | An enforcer may be missing, or a policy is newer than the figures. |
traffic seen, and a policy allows it |
A policy covers the call and does not deny it. This includes a call Istio lets in because no ALLOW policy selects the callee: nothing refuses it, and no policy is named as allowing it (Workloads no ALLOW policy selects says how netatlas words it). | Nothing. |
traffic seen, no policy covers it |
No policy covers the call. | Add a policy if the call should be limited. |
allowed by a policy, no traffic seen |
The policies allow the pair and no call was seen. This is the idle edge (Allowed, but no traffic). It includes a pair Istio lets in because no ALLOW policy selects the callee, and it is drawn only where neither the NetworkPolicies nor Istio's policies refuse the pair. | Nothing is broken: a policy allows a call that was not seen. |
The legend has eight lines for ten marks. An idle edge with no calls in the last 5 minutes and one with none in the last 24 hours share the line allowed by a policy, no traffic seen and the same dotted line, and an edge that is not measured is drawn in the grey of the line not compared with the policies, or not measured. With Compare with policies off, an edge has no mark: the legend has one line, traffic seen, and the idle edges are left out, because nothing was measured on them.
A policy covers a call when a NetworkPolicy selects the caller for egress or the callee for ingress, or when an Istio AuthorizationPolicy that the callee's proxy enforces applies to the callee. The policies deny a call when a NetworkPolicy selects either side and admits no port between the two workloads, or when Istio denies it.
Istio AuthorizationPolicies says how Istio decides, how netatlas words a call to a workload that no ALLOW policy selects (Workloads no ALLOW policy selects), and how it reads a refusal (Calls Istio refused).
Allowed, but no traffic
netatlas also draws, dotted, each pair the policies allow that has no traffic edge, and labels it. It uses the recent query to say how long nothing was seen:
no traffic, 24 hwhen the pair is not among the pairs of the last 24 hours. Its spoken label saysallowed by a policy, no calls recorded in the last 24 hours, and What stands out lists it as "Allowed, not used".no traffic, 5 minwhen the pair had calls in the last 24 hours, before therecentquery has answered once, or while its last answer is more than 30 minutes older than the figures (How often). Its spoken label saysallowed by a policy, no calls in the last 5 minutes, and What stands out does not list it.not measuredfor an edge to an ambient destination in a cluster that runs waypoints. A call through a waypoint names the waypoint as its destination, so the calls may have gone through it, and netatlas claims neither calls nor their absence. Its spoken label saysallowed by a policy, traffic not measured, and the edge carries the notedepends: traffic through waypoints is not attributed yet.not measuredfor a pair the NetworkPolicies allow on UDP ports only (no TCP and no SCTP port), whatever Istio policy also admits it, because the NetworkPolicies let nothing else through: Istio's proxies do not carry UDP, so calls of that pair have no figure. A pair that only Istio's policies cover, with no NetworkPolicy on either side, is open on every port and stays measured. Its spoken label says the same as the one above, the edge carries the noteUDP only: Istio does not measure UDP, and What stands out does not list it.
Where Istio lets the call in only because no ALLOW policy selects the callee, the spoken label of the Traffic map says that in place of allowed by a policy, on a seen call marked traffic seen, and a policy allows it too: no ALLOW policy selects <callee>, so Istio lets in every request that <policies> do not refuse, or, when a NetworkPolicy lets the call in as well, allowed by a policy, and no ALLOW policy selects <callee>, so Istio lets in every request that <policies> do not refuse. The text of the bullets above follows it after a comma, for example ..., so Istio lets in every request that deny-all does not refuse, no calls recorded in the last 24 hours. A CUSTOM or DENY policy allows nothing, so it is named only as not refusing the call (the words are in The marks).
netatlas draws no idle edge in these cases:
- A pair whose caller is not in the mesh. netatlas attributes a call only to a caller with a proxy, so it cannot tell whether such a caller made one.
- A pair whose destination is kube-dns. Names resolve over UDP, which the Istio metrics netatlas reads do not count, so nothing says whether kube-dns was called.
- A pair to or from the Internet node. The 24-hour history names workloads only, so an allowed way out that nobody used is not drawn (What netatlas does not do yet).
- A pair that either layer refuses: a NetworkPolicy that admits no port between the two workloads, or Istio's policies, even when the other layer would let it in. A call seen on such a pair and answered is marked
answered though the policies now deny it, so an idle edge and a seen call never disagree. - Any pair, while netatlas may not read NetworkPolicies or AuthorizationPolicies: the kind it may not read could refuse any pair, so netatlas cannot say that the policies allow it.
What stands out
The panel beside the map lists the edges that need a look, in groups. A group with no edge is left out, and when no group is left the panel says Nothing stands out. Each entry says what happens and, under it, why it is listed. A workload is named by its name, or as <namespace> / <name> when another workload of the cluster has the same name. The panel does not follow the map's filters: it lists calls whose ends are in namespaces the map hides (by default kube-* and Istio's root namespace), and it reads the same with Compare with policies off, when the map shows no mark. While netatlas may not read a policy kind, the groups Traffic no policy covers and Allowed, not used stay empty, because without the policies netatlas cannot say that no policy covers a call or that one allows a call nobody made; Errors still lists the failures it measured. The groups come in this order:
| Group | Lists | The entry reads | The reason it gives |
|---|---|---|---|
| Traffic no policy covers | Edges drawn as traffic seen, no policy covers it. |
<caller> calls <callee>, <figures>. |
No policy restricts calls out of <caller> or into <callee>. |
| Allowed, not used | Edges with no traffic, 24 h. |
<caller> may call <callee> on <port>. for a NetworkPolicy edge, <caller> may call <callee>: <what Istio allows>. for an Istio edge |
Allowed by <policies>. No calls recorded in the last 24 hours. |
| Errors | Edges that are allowed, uncovered or answered though denied, or left not compared because netatlas may not read a policy kind, with at least 1% of requests answered 5xx. | <caller> calls <callee>: <share> of requests fail. |
<n> requests a second over the last 5 minutes. |
| Refused calls | Edges drawn as refused by Istio or refused by the network. |
<caller> calls <callee>: refused by Istio. or ... refused by the network. |
Every answer was a 403, and the Istio policies on <callee> do not allow <caller>. or ztunnel closed every connection with DENY. or Every connection closed with nothing sent back, and the Istio policies on <callee> do not allow <caller>. or No call got an answer: the connection failed, or no upstream was healthy. |
| Answered though the policies deny it | Edges drawn as answered though the policies now deny it. |
<caller> calls <callee>, <figures>. |
The policies deny this call, yet it was answered: an enforcer may be missing, or a policy is newer than the figures. |
The reason of an Allowed, not used entry names what lets the call in: the NetworkPolicies and the Istio ALLOW policies that allow it. Where no ALLOW policy selects the callee it reads No ALLOW policy selects <callee>, so Istio lets in every request that <policies> do not refuse. No calls recorded in the last 24 hours., or, when a NetworkPolicy lets the call in as well, Allowed by <NetworkPolicies>, and no ALLOW policy selects <callee>, so Istio lets in every request that <policies> do not refuse. No calls recorded in the last 24 hours. The group lists a pair only where neither the NetworkPolicies nor Istio's policies refuse it.
The figures in an entry are in words: 6 requests a second, 2.1 percent errors. The first group is drawn in the colour the map uses for open workloads, and the last two in the warning colour. Notes of two kinds can follow the groups (the notes): one for each workload outside the mesh that traffic reaches, and one for the callers outside the mesh when that node is drawn.
The Internet node and the notes on edges
Istio records nothing for the hop from a client outside the cluster into an ingress gateway. So each ingress gateway that has a proxy and forwarded something in the last 5 minutes gets an edge from the Internet node, carrying what the gateway forwarded: the sum of its own outgoing figures. A gateway that forwarded nothing gets no edge. Its note is what the gateway forwarded: Istio records nothing for the hop into a gateway. A gateway without a proxy gets no such edge, because nothing measured what it forwarded. netatlas takes a pod for an ingress gateway when it carries the label istio=ingressgateway, or a label with the key gateway.networking.k8s.io/gateway-name, unless it is a waypoint or its proxy runs as a sidecar. A pod is an egress gateway when it carries istio=egressgateway, unless its proxy runs as a sidecar. A pod whose proxy runs as a sidecar is never taken for a gateway or a waypoint, whatever labels it carries.
An edge's notes come after its figures and mark in the label a screen reader reads for it, for example From Internet to ingressgateway, 6 requests a second, what the gateway forwarded: Istio records nothing for the hop into a gateway. A workload in these labels is named as What stands out names it. A note on the page is a line under the groups of What stands out. A note is one of these:
| Note | Where it comes from |
|---|---|
through the egress gateway: Istio splits this link in two |
The call went to an egress gateway. |
through a waypoint: figures per destination need the waypoint's metrics, not read in 0.2.0 |
The destination is a waypoint. |
TCP only: no waypoint |
An ambient destination with no requests: ztunnel sees connections only. |
the callers are outside the mesh, so netatlas cannot tell which workloads they are |
The caller has no proxy and no name. |
the callers are in another cluster of the mesh, so netatlas does not compare the call with this cluster's policies |
The caller is in another cluster of the mesh: the edge is drawn from the Internet node. |
UDP only: Istio does not measure UDP |
An idle edge to a pair the NetworkPolicies allow on UDP only, whatever Istio policy the pair has. |
depends: netatlas's role may not read NetworkPolicies, ... AuthorizationPolicies or ... NetworkPolicies and AuthorizationPolicies |
A measured pair left not compared because netatlas may not read that kind. |
not running now |
The metrics name a workload netatlas does not see in the cluster. |
depends: traffic through waypoints is not attributed yet |
An idle edge to an ambient destination in a cluster with waypoints. |
<workload> is not in the mesh, so its traffic is measured from the callers' side only. |
A workload with no proxy that traffic reaches. |
Callers outside the mesh are drawn as one node: they have no proxy, so Istio cannot name them. |
The node Callers outside the mesh is drawn. |
What Istio cannot tell
- Unregistered TLS and TCP. For TLS or TCP to a destination no ServiceEntry names, Istio records no host, SNI or IP in any metric label. The Outbound view shows one row for each caller,
Unregistered TLS or TCP traffic, and cannot say where the calls went. A ServiceEntry for the destination names it: calls to a registered host carry the host. Istio's Telemetry API can add labels taken from Envoy's attributes, which may name such a destination. netatlas groups by the labels listed above only, so it does not read them yet (What netatlas does not do yet). - Ambient without a waypoint. ztunnel reports TCP only, so the edge has bytes and connections and no requests or error share, and says
TCP only: no waypoint. In ambient mode a call to a host that no label names is unattributed traffic, not unregistered. ztunnel names the destination of a call only when it knows a service or workload at the address the client connected to; otherwise it passes the connection through with no destination to name. For a ServiceEntry host, that address is one of the entry'saddresses, or, for an entry that has none and whoseresolutionis notNONE, an address that istiod allocates and writes into the entry's status. ztunnel's DNS proxy answers with it when the pod's DNS goes through ztunnel. Istio turns DNS capture for ambient pods and istiod's address allocation on by default. A call to an entry with noaddressesis unattributed when either is off, when the entry'sresolutionisNONE, or when the entry carries the labelnetworking.istio.io/enable-autoallocate-ipset tofalse, because ztunnel then has no address to match. - Traffic behind a waypoint. ztunnel names the waypoint as the destination, so the edge is drawn to the waypoint and carries its note. Figures per destination need the waypoint's own metrics, which netatlas does not read yet.
- Egress gateways split the link. With an egress gateway, "workload X calls host Y" is not in one series: X calls the gateway, and the gateway calls Y. netatlas shows both edges and says so. It does not join them.
- DNS over UDP is not measured. The Istio metrics netatlas reads do not count DNS over UDP: a sidecar does not proxy UDP, and the DNS proxy in ztunnel counts the requests it answers in its own metrics, which netatlas does not read. A call to kube-dns over UDP therefore never shows, and netatlas draws no idle edge to kube-dns, so it never calls one unused.
- Callers outside the mesh. A caller with no proxy is seen only by the callee's proxy. A sidecar cannot name it, so netatlas draws one node,
Callers outside the mesh, with no workload name. In ambient mode ztunnel names such a caller, and netatlas draws it as its own workload. A workload outside the mesh is measured from its callers' side only, and the page says so. - Gateways are recognised by label. An ingress edge is drawn for any pod with the label key
gateway.networking.k8s.io/gateway-name(waypoints excepted), so a Gateway API egress gateway, which carries the same key, is drawn as if it were an ingress one. A gateway installed under other labels is drawn as an ordinary meshed workload, because a proxy role ofroutercannot tell an ingress gateway from an egress one. A pod whose proxy runs as a sidecar is never taken for a gateway or a waypoint, whatever labels it carries.
The role
The chart's read role grants read access and nothing else:
- Get, list and watch on what netatlas watches: namespaces and pods, DaemonSets and ReplicaSets (
apps), Jobs (batch), NetworkPolicies (networking.k8s.io), AuthorizationPolicies (security.istio.io), and ServiceEntries and Sidecars (networking.istio.io). - Get, list and watch on the ConfigMap named
istioand no other ConfigMap, withresourceNames: [istio]. RBAC lets a list or a watch read a ConfigMap named inresourceNamesonly when the request selectsmetadata.name=istio, and netatlas's does. - On Kubescape's four kinds of results, in the API group
spdx.softwarecomposition.kubescape.io, only the verbs netatlas uses, and no watch: list on the two kinds of summaries, get and list on the images' lists of vulnerabilities, and get on the full configuration scans (What netatlas reads from Kubescape).
netatlas still never reads Secrets.
0.2.0 added ServiceEntries, Sidecars and the ConfigMap to what the first release read, and 0.3.0 added Kubescape's four kinds.
deploy/reader-access.yaml and the Terraform example carry the same rules. A cluster read with a token or an EKS access entry that you set up before 0.3.0 needs them applied again, and the chart's own role gets them when you upgrade the chart (Grant the access again gives the command for each login). Until then the Findings page says netatlas may not read Kubescape's results here. For a cluster set up before 0.2.0, the overview's list of what needs attention also says <cluster>: Cannot read ServiceEntries: netatlas's role does not allow it. under Cannot read (and the same for Sidecars), the Policy map, the Traffic view and the Outbound view say Cannot read ServiceEntries: netatlas's role does not allow it. (and the same for Sidecars) too, and the Istio layer says depends: netatlas's role may not read the ConfigMap istio, ... Sidecars or ... ServiceEntries.