CRD EgressClusterEndpointSlice
The EgressClusterEndpointSlice CRD is used to aggregate address information of Pods matched by EgressClusterPolicy. This resource is for internal use only, aiming to improve the performance of the control plane.
apiVersion: egressgateway.spidernet.io/v1beta1
kind: EgressClusterEndpointSlice
metadata:
generateName: cluster-policy-
labels:
spidernet.io/policy-name: cluster-policy # (1)
name: cluster-policy-zp667
ownerReferences:
- apiVersion: egressgateway.spidernet.io/v1beta1 # (2)
blockOwnerDeletion: true
controller: true
kind: EgressClusterPolicy
name: cluster-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 EgressClusterPolicy to which the EgressClusterEndpointSlice belongs.
- By using
ownerReferences
, the CRD is associated with its parent resource, enabling automatic recycling of EgressClusterEndpointSlice when the EgressClusterPolicy is deleted. - The EgressClusterEndpointSlice object is used to summarize the address information of Pods matched by EgressClusterPolicy. By default, a new EgressClusterEndpointSlice 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.