ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Server
  • Cloud
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Download
ScyllaDB Docs Scylla Operator Resources RemoteKubernetesCluster

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

Remote authorization methods¶

Secret¶

This authorization method relies on a Secret containing credentials to a remote Kubernetes cluster in the kubeconfig format.
The user associated with these credentials must have the scylladb:controller:operator-remote ClusterRole bound. The name and namespace of this Secret are referenced in the spec of the corresponding RemoteKubernetesCluster resource.

Example:

Caution

While token-based authentication is the easiest to configure, the use of long-lived tokens is discouraged due to security risks.
For improved security, consider using alternative authentication methods outlined in the Kubernetes documentation:
https://kubernetes.io/docs/reference/access-authn-authz/authentication/

Currently, RemoteKubernetesCluster requires unconditional access to all Secrets and ConfigMaps across all namespaces in the remote cluster. Please note the security implications of this limitation.

 1apiVersion: v1
 2kind: Secret
 3metadata:
 4  name: dev-us-east-1
 5  namespace: remotekubernetescluster-credentials
 6type: Opaque
 7stringData:
 8  kubeconfig: |
 9    apiVersion: v1
10    kind: Config
11    clusters:
12      - cluster:
13          certificate-authority-data: <kube-apiserver-ca-bundle>
14          server: <kube-apiserver-address>
15        name: dev-us-east-1
16    contexts:
17      - context:
18          cluster: dev-us-east-1
19          user: dev-us-east-1
20        name: dev-us-east-1
21    current-context: dev-us-east-1
22    users:
23      - name: dev-us-east-1
24        user:
25          token: <token-having-remote-operator-cluster-role>
../_images/remotekubernetesclusters.svg

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

Was this page helpful?

PREVIOUS
ScyllaOperatorConfigs
NEXT
Quickstarts
  • Create an issue
  • Edit this page

On this page

  • RemoteKubernetesCluster
    • Introduction
    • Example
    • Remote authorization methods
      • Secret
    • Status
Scylla Operator
  • v1.17
    • v1.17
    • v1.16
    • v1.15
    • master
  • Architecture
    • Overview
    • Storage
      • Overview
      • Local CSI Driver
    • Tuning
    • ScyllaDB Manager
  • Installation
    • Overview
    • Kubernetes
      • Generic
      • EKS
      • GKE
    • GitOps (kubectl)
    • Helm
  • Resources
    • Overview
    • ScyllaClusters
      • ScyllaClusters
      • ScyllaDB clients
        • Discovering ScyllaDB Nodes
        • Using CQL
        • Using Alternator (DynamoDB)
      • Node operations using Scylla Operator
        • Upgrading version of Scylla
        • Replacing a Scylla node
        • Automatic cleanup and replacement in case when k8s node is lost
        • Maintenance mode
        • Restore from backup
      • Deploying multi-datacenter ScyllaDB clusters in Kubernetes
        • Build multiple Amazon EKS clusters with inter-Kubernetes networking
        • Build multiple GKE clusters with inter-Kubernetes networking
        • Deploy a multi-datacenter ScyllaDB cluster in multiple interconnected Kubernetes clusters
      • Exposing ScyllaDB cluster
    • ScyllaDBClusters
      • ScyllaDBClusters
      • Exposing ScyllaDB cluster
    • ScyllaDBMonitorings
    • NodeConfigs
    • ScyllaOperatorConfigs
    • RemoteKubernetesCluster
  • Quickstarts
    • Deploying ScyllaDB on GKE
    • Deploying ScyllaDB on EKS
  • Support
    • Support overview
    • Known issues
    • Troubleshooting
      • Troubleshooting installation issues
    • Gathering data with must-gather
    • Releases
  • API Reference
    • scylla.scylladb.com
      • NodeConfig (scylla.scylladb.com/v1alpha1)
      • RemoteKubernetesCluster (scylla.scylladb.com/v1alpha1)
      • RemoteOwner (scylla.scylladb.com/v1alpha1)
      • ScyllaCluster (scylla.scylladb.com/v1)
      • ScyllaDBCluster (scylla.scylladb.com/v1alpha1)
      • ScyllaDBDatacenter (scylla.scylladb.com/v1alpha1)
      • ScyllaDBMonitoring (scylla.scylladb.com/v1alpha1)
      • ScyllaOperatorConfig (scylla.scylladb.com/v1alpha1)
Docs Tutorials University Contact Us About Us
© 2025, ScyllaDB. All rights reserved. | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 04 June 2025.
Powered by Sphinx 8.1.3 & ScyllaDB Theme 1.8.6