KubernetesCluster
KubernetesCluster API reference.
Proto: kubernetes_cluster.proto
Package: admin.gloo.solo.io
Types:
KubernetesClusterReport
The resources that the applied resource selects.
Field | Description |
---|---|
state | (common.gloo.solo.io.State ) |
KubernetesClusterSpec
KubernetesCluster
defines a Kubernetes cluster that has been registered with Gloo Mesh for management.
A KubernetesCluster must be created in order to connect the Gloo Mesh Agent
with the Gloo Mesh Server.
KubernetesCluster must be deployed to the management cluster in the gloo-mesh
namespace.
The name of the KubernetesCluster has to be unique among all managed workload clusters for a
given Gloo Mesh management plane.
The name or/and labels of a KubernetesCluster resource can be used in a Workspace resource to determine
the workload clusters for a given workspace. Note: The KubernetesCluster resource name must be unique
across the KubernetesCluster resources for other clusters that you register with Gloo. For simplicity, any
KubernetesCluster resources that are created automatically for you during cluster registration use the same
name as the workload cluster. However, the name of the KubernetesCluster resource
is not required to match the name of the cluster.
The following example show a simple KubernetesCluster resource named cluster1
with cluster.local
as its cluster domain:
apiVersion: admin.gloo.solo.io/v2
kind: KubernetesCluster
metadata:
name: cluster1
namespace: gloo-mesh
spec:
clusterDomain: cluster.local
The following example adds the region label to the KubernetesCluster resource:
apiVersion: admin.gloo.solo.io/v2
kind: KubernetesCluster
metadata:
name: cluster1
namespace: gloo-mesh
labels:
region: us-east
spec:
clusterDomain: cluster.local
Field | Description |
---|---|
clusterDomain | (string )Optional: The cluster domain suffix this Cluster is configured with. Defaults to ‘cluster.local’. |
KubernetesClusterStatus
The status of the KubernetesCluster after it is applied to your Gloo environment.
Field | Description |
---|---|
common | (common.gloo.solo.io.Status )Indicates the state of the Gloo agent that is connected to the Gloo management server. |