Was this page helpful?
RemoteKubernetesCluster¶
Introduction¶
The cluster-scoped RemoteKubernetesCluster
resource provides an abstraction layer for managing resources in a remote Kubernetes cluster.
It allows users to define and interact with a separate Kubernetes environment, distinct from the cluster where the resource is created.
This is particularly useful in scenarios that require centralized management of ScyllaDB clusters distributed across multiple geographic regions.
Example¶
1apiVersion: scylla.scylladb.com/v1alpha1
2kind: RemoteKubernetesCluster
3metadata:
4 name: dev-us-east-1
5spec:
6 kubeconfigSecretRef:
7 name: dev-us-east-1
8 namespace: remotekubernetescluster-credentials
Status¶
Since the RemoteKubernetesCluster specification must authenticate with a remote Kubernetes cluster, it is important to carefully verify that the configured credentials are valid. RemoteKubernetesCluster resources include standard aggregated conditions, which provide an easy way to confirm whether the configuration and connection were successful:
$ kubectl wait --for='condition=Progressing=False' remotekubernetesclusters.scylla.scylladb.com/example
remotekubernetesclusters.scylla.scylladb.com/example condition met
$ kubectl wait --for='condition=Degraded=False' remotekubernetesclusters.scylla.scylladb.com/example
remotekubernetesclusters.scylla.scylladb.com/example condition met
$ kubectl wait --for='condition=Available=True' remotekubernetesclusters.scylla.scylladb.com/example
remotekubernetesclusters.scylla.scylladb.com/example condition met