API Reference

v1beta1 Reference for cluster.kubernetes-fleet.io KubeFleet APIs

cluster.kubernetes-fleet.io/v1beta1

Resource Types

AgentStatus

AgentStatus defines the observed status of the member agent of the given type.

Appears in:

FieldDescriptionDefaultValidation
type AgentTypeType of the member agent.
conditions Condition arrayConditions is an array of current observed conditions for the member agent.
lastReceivedHeartbeat TimeLast time we received a heartbeat from the member agent.

AgentType

Underlying type: string

AgentType defines a type of agent/binary running in a member cluster.

Appears in:

FieldDescription
MemberAgentMemberAgent (core) handles member cluster joining/leaving as well as k8s object placement from hub to member clusters.
MultiClusterServiceAgentMultiClusterServiceAgent (networking) is responsible for exposing multi-cluster services via L4 load
balancer.
ServiceExportImportAgentServiceExportImportAgent (networking) is responsible for export or import services across multi-clusters.

ClusterState

Underlying type: string

Appears in:

FieldDescription
Join
Leave

InternalMemberCluster

InternalMemberCluster is used by hub agent to notify the member agents about the member cluster state changes, and is used by the member agents to report their status.

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringcluster.kubernetes-fleet.io/v1beta1
kind stringInternalMemberCluster
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec InternalMemberClusterSpecThe desired state of InternalMemberCluster.
status InternalMemberClusterStatusThe observed status of InternalMemberCluster.

InternalMemberClusterList

InternalMemberClusterList contains a list of InternalMemberCluster.

FieldDescriptionDefaultValidation
apiVersion stringcluster.kubernetes-fleet.io/v1beta1
kind stringInternalMemberClusterList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items InternalMemberCluster array

InternalMemberClusterSpec

InternalMemberClusterSpec defines the desired state of InternalMemberCluster. Set by the hub agent.

Appears in:

FieldDescriptionDefaultValidation
state ClusterStateThe desired state of the member cluster. Possible values: Join, Leave.
heartbeatPeriodSeconds integerHow often (in seconds) for the member cluster to send a heartbeat to the hub cluster. Default: 60 seconds. Min: 1 second. Max: 10 minutes.60Maximum: 600
Minimum: 1

InternalMemberClusterStatus

InternalMemberClusterStatus defines the observed state of InternalMemberCluster.

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayConditions is an array of current observed conditions for the member cluster.
properties object (keys:PropertyName, values:PropertyValue)Properties is an array of properties observed for the member cluster.

This field is beta-level; it is for the property-based scheduling feature and is only
populated when a property provider is enabled in the deployment.
resourceUsage ResourceUsageThe current observed resource usage of the member cluster. It is populated by the member agent.
agentStatus AgentStatus arrayAgentStatus is an array of current observed status, each corresponding to one member agent running in the member cluster.

MemberCluster

MemberCluster is a resource created in the hub cluster to represent a member cluster within a fleet.

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringcluster.kubernetes-fleet.io/v1beta1
kind stringMemberCluster
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec MemberClusterSpecThe desired state of MemberCluster.
status MemberClusterStatusThe observed status of MemberCluster.

MemberClusterList

MemberClusterList contains a list of MemberCluster.

FieldDescriptionDefaultValidation
apiVersion stringcluster.kubernetes-fleet.io/v1beta1
kind stringMemberClusterList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items MemberCluster array

MemberClusterSpec

MemberClusterSpec defines the desired state of MemberCluster.

Appears in:

FieldDescriptionDefaultValidation
identity SubjectThe identity used by the member cluster to access the hub cluster.
The hub agents deployed on the hub cluster will automatically grant the minimal required permissions to this identity for the member agents deployed on the member cluster to access the hub cluster.
heartbeatPeriodSeconds integerHow often (in seconds) for the member cluster to send a heartbeat to the hub cluster. Default: 60 seconds. Min: 1 second. Max: 10 minutes.60Maximum: 600
Minimum: 1
taints Taint arrayIf specified, the MemberCluster’s taints.

This field is beta-level and is for the taints and tolerations feature.
MaxItems: 100

MemberClusterStatus

MemberClusterStatus defines the observed status of MemberCluster.

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayConditions is an array of current observed conditions for the member cluster.
properties object (keys:PropertyName, values:PropertyValue)Properties is an array of properties observed for the member cluster.

This field is beta-level; it is for the property-based scheduling feature and is only
populated when a property provider is enabled in the deployment.
resourceUsage ResourceUsageThe current observed resource usage of the member cluster. It is copied from the corresponding InternalMemberCluster object.
agentStatus AgentStatus arrayAgentStatus is an array of current observed status, each corresponding to one member agent running in the member cluster.

PropertyName

Underlying type: string

PropertyName is the name of a cluster property; it should be a Kubernetes label name.

Appears in:

PropertyValue

PropertyValue is the value of a cluster property.

Appears in:

FieldDescriptionDefaultValidation
value stringValue is the value of the cluster property.

Currently, it should be a valid Kubernetes quantity.
For more information, see
https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity.
observationTime TimeObservationTime is when the cluster property is observed.

ResourceUsage

ResourceUsage contains the observed resource usage of a member cluster.

Appears in:

FieldDescriptionDefaultValidation
capacity ResourceListCapacity represents the total resource capacity of all the nodes on a member cluster.

A node’s total capacity is the amount of resource installed on the node.
allocatable ResourceListAllocatable represents the total allocatable resources of all the nodes on a member cluster.

A node’s allocatable capacity is the amount of resource that can actually be used
for user workloads, i.e.,
allocatable capacity = total capacity - capacities reserved for the OS, kubelet, etc.

For more information, see
https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/.
available ResourceListAvailable represents the total available resources of all the nodes on a member cluster.

A node’s available capacity is the amount of resource that has not been used yet, i.e.,
available capacity = allocatable capacity - capacity that has been requested by workloads.

This field is beta-level; it is for the property-based scheduling feature and is only
populated when a property provider is enabled in the deployment.
observationTime TimeWhen the resource usage is observed.

Taint

Taint attached to MemberCluster has the “effect” on any ClusterResourcePlacement that does not tolerate the Taint.

Appears in:

FieldDescriptionDefaultValidation
key stringThe taint key to be applied to a MemberCluster.
value stringThe taint value corresponding to the taint key.
effect TaintEffectThe effect of the taint on ClusterResourcePlacements that do not tolerate the taint.
Only NoSchedule is supported.
Enum: [NoSchedule]