Skip to content

addK8sCluster

Add a Kubernetes cluster Supported in v9.0+ Adds a Kubernetes cluster to the Rubrik cluster.

Arguments

Argument Type Description
input (required) AddK8sClusterInput! Input for V1AddK8sCluster.

Returns

K8sClusterSummary!

Sample

mutation AddK8sCluster($input: AddK8sClusterInput!) {
  addK8sCluster(input: $input) {
    backupSubnetCidr
    dataPathTransport
    distribution
    effectiveSlaId
    effectiveSlaSource
    effectiveSlaType
    helmStatus
    helmVersion
    id
    k8SVersion
    kubevirtVersion
    kuprServerProxyPodMultusIp
    lastRefreshTime
    loadbalancerIpDns
    maxConcurrentAgents
    maxPvcsPerAgent
    nadName
    nadNamespace
    name
    namespaceCount
    numLabels
    numProtectionSets
    numVms
    onboardingType
    port
    pvcGroupingStrategy
    region
    registry
    status
    transport
  }
}
{
  "input": {
    "clusterUuid": "example-string",
    "config": {
      "name": "example-string"
    }
  }
}
{
  "data": {
    "addK8sCluster": {
      "backupSubnetCidr": "example-string",
      "dataPathTransport": "example-string",
      "distribution": "example-string",
      "effectiveSlaId": "example-string",
      "effectiveSlaSource": "example-string",
      "effectiveSlaType": "example-string",
      "crdServiceAccountInfo": {
        "accessToken": "example-string",
        "clientId": "example-string",
        "isK8SError": true,
        "serviceAccountName": "example-string"
      },
      "kuprServerProxyConfig": {
        "cert": "example-string",
        "ipAddress": "example-string",
        "port": 0
      }
    }
  }
}