You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: schema/DanmService.yaml
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,21 @@ metadata:
18
18
# DANM uses the information for the same purpose as teh default Service controller - for every Pod matching all key-value pairs in the selector field, one Endpoint will be created.
19
19
# MANDATORY - JSON FORMATTED LIST OF STRING:STRING ASSOCIATIONS (e.g. '{"app":"loadbalancer"},{"type":"sctp"}')
20
20
danm.k8s.io/selector: ## POD_SELECTORS ##
21
-
# When DANM creates an Endpoint for a selected Pod, it will populate it with the selected interface's IP.
22
-
#The selected interface will be the one which is connected to the DanmNet object identified (i.e. matching ObjectMeta.Name) in this attribute.
21
+
# When DANM creates an Endpoint for a selected Pod, it populates it with the selected interface's IP.
22
+
#If you want a Service to select an interface connected to a DanmNet, set the name of the DanmNet object into this attribute.
23
23
# Pods, DanmNets, and Services are all namespaced resources, so an Endpoint is created only if all three are within the same K8s namespace.
24
-
#MANDATORY - STRING
24
+
#OPTIONAL {AT LEAST ONE OF "network", "tenantNetwork", AND "clusterNetwork" shall be defined } - STRING
25
25
danm.k8s.io/network: ## NETWORK_SELECTOR ##
26
+
# When DANM creates an Endpoint for a selected Pod, it populates it with the selected interface's IP.
27
+
# If you want a Service to select an interface connected to a TenantNetwork, set the name of the TenantNetwork object into this attribute.
28
+
# Pods, TenantNetworks, and Services are all namespaced resources, so an Endpoint is created only if all three are within the same K8s namespace.
29
+
# OPTIONAL {AT LEAST ONE OF "network", "tenantNetwork", AND "clusterNetwork" shall be defined } - STRING
30
+
danm.k8s.io/tenantNetwork: ## NETWORK_SELECTOR ##
31
+
# When DANM creates an Endpoint for a selected Pod, it populates it with the selected interface's IP.
32
+
# If you want a Service to select an interface connected to a ClusterNetwork, set the name of the ClusterNetwork object into this attribute.
33
+
# As ClusterNetworks are not namespaced resources, EndPoints are created whenever a Pod connects to a matching ClusterNetwork in the same namespace as this Service.
34
+
# OPTIONAL {AT LEAST ONE OF "network", "tenantNetwork", AND "clusterNetwork" shall be defined } - STRING
# DANM recognized Services are selectorless Services, because we want to avoid default Kubernetes controllers to create an Endpoint to a wrong network interface.
28
38
# Selectorless Services don't have a spec.selector present in their object.
0 commit comments