CRD EgressEndpointSlice
The EgressEndpointSlice CRD is used to aggregate address information of Pods matched by EgressPolicy. This resource is for internal use only, aiming to improve the performance of the control plane.
apiVersion: egressgateway.spidernet.io/v1beta1
kind: EgressEndpointSlice
metadata:
generateName: ns-policy-
labels:
spidernet.io/policy-name: ns-policy # (1)
name: ns-policy-zp667
ownerReferences:
- apiVersion: egressgateway.spidernet.io/v1beta1 # (2)
blockOwnerDeletion: true
controller: true
kind: EgressPolicy
name: ns-policy
uid: fdca1dd5-9c3b-4d58-b043-451e10f15ea8
endpoints: # (3)
- ipv4:
- 10.21.60.74 # (4)
ipv6:
- fd00:21::5328:9c2:3579:8cca # (5)
node: workstation3 # (6)
ns: ns1 # (7)
pod: ns2-mock-app-5c4cd6bb87-g4fdj # (8)
- This label value indicates the EgressPolicy to which the EgressEndpointSlice belongs.
- By using
ownerReferences
, the CRD is associated with its parent resource, enabling automatic recycling of EgressEndpointSlice when the EgressPolicy is deleted. - The EgressEndpointSlice object is used to summarize the address information of Pods matched by EgressPolicy. By default, a new EgressEndpointSlice is created when there are more than 100 matched results.
- The IPv4 address list of Pods.
- The IPv6 address list of Pods.
- Information about the node where the Pods are located.
- Information about the tenant to which the Pods belong.
- The names of the Pods.