Skip to main content

Bring Your Own Kubernetes

With Bring Your Own Kubernetes (BYOK), you provide the Amazon EKS cluster, and Onehouse deploys its data plane into it. The compute clusters, Spark, monitoring and the Onehouse agent are the same as on a managed data plane.

tip

This page applies to EKS clusters on AWS. BYOK uses the Onehouse customer stack, which creates the IAM roles that Onehouse uses in your AWS account. For a Kubernetes cluster outside AWS, Google Cloud and Azure, with an S3-compatible object store, see Self-Managed Kubernetes.

Use cases​

BYOK is for organizations that:

  • Operate Kubernetes with their own tools and conventions
  • Require a specific CNI, node image, security agent or tagging scheme
  • Run Onehouse workloads together with their own workloads on the same cluster

Shared responsibility​

You manageOnehouse manages
The EKS cluster and its Kubernetes versionNode provisioning and autoscaling for Onehouse workloads
Core networking and DNS add-onsMonitoring, Spark and the Onehouse agent
The seed node groupThe components that Onehouse deploys, including their upgrades

Create a BYOK project​

The deployment mode is a property of the project. Create a project with the BYOK deployment mode:

  1. In the Onehouse console, choose Project at the top of the left pane.

  2. Choose + Create New Project.

  3. Enter these values:

    FieldValue
    AccountYour Onehouse account
    ProjectA name for the project
    Cloud ProviderAmazon Web Services (AWS)
    Deployment ModeBYOK — bring your own Kubernetes cluster
    RegionThe AWS Region of your EKS cluster
  4. Choose Save.

Create New Project dialog with Cloud Provider set to AWS and Deployment Mode set to BYOK

The Deployment Mode field appears after you select Amazon Web Services (AWS). Its default value is Managed.

Self-Managed Kubernetes and Quanton Operator are different cloud provider options. Do not select them for BYOK.

If the Deployment Mode field does not appear, BYOK is not enabled for your account. Contact your Onehouse account team.

Onboarding steps​

To start onboarding, open your BYOK project, go to Settings > Project Settings > Data Plane, and choose Link Cloud Account.

Data Plane tab with the Link Cloud Account button

The wizard has four steps:

  1. Create a Kubernetes cluster. Create the cluster and meet the prerequisites. In the wizard, select Terraform as the onboarding method, and enter the cluster name exactly as it is in your account.
  2. Set up access for Onehouse. Apply the Onehouse customer stack with Terraform. The stack creates IAM roles and cluster access entries. It does not create a cluster. Enter the core role ARN, the cluster endpoint and the stack output in the wizard.
  3. Set up connectivity. Install the Onehouse connectivity agent with Helm, and test the connection.
  4. Provision. Review the cluster readiness checks, and start provisioning.
warning

If you reload the browser page before you choose Provision, the wizard discards the values from steps 1 and 2, and you must enter them again. The customer stack and the installed agent are not affected.

note

The wizard does not show all of the stack inputs that BYOK requires. Set deploymentMode = "byok" and lbControllerSupport = { enabled = true } in addition to the values from the wizard. See Apply the stack.

Step 1 of the wizard says that step 2 asks for customerNodeRoleArns. Step 2 does not have this field. customerNodeRoleArns is an input of the customer stack.

note

The Docs links in steps 1 and 2 of the AWS BYOK wizard open the Azure onboarding pages. For AWS BYOK, use this guide.

Step 3: Set up connectivity​

Step 3 of the wizard with the values file, the helm command and Test Connection

Run these commands with a kubeconfig for the cluster from step 1.

note

While the Helm chart loads, step 3 shows a checklist. The last item is Run another simple kubectl command to bind the cluster admin role. No action is necessary for this item. The customer stack already gives Onehouse administrator access to the cluster.

  1. Choose onehouse-values.yaml to download the values file. Onehouse generates the file from the values that you entered in step 2.

    warning

    The values file contains credentials: an image pull password, a tunnel token and an mTLS client key. Store the file securely, and do not add it to source control.

  2. Run the helm install command that the wizard shows. The chart runs a job in the oh-dpconnect namespace. The job deploys the agent in the oh-connectivity namespace.

  3. Monitor the agent:

    kubectl get pods -n oh-connectivity -w

    Wait until the tunnel-client pod has the status Running and READY is 1/1.

    note

    The wizard shows the command kubectl get pods -n oh-frpc -w. The agent runs in the oh-connectivity namespace, not in oh-frpc.

  4. Choose Test Connection. When the wizard shows Connection successful!, choose Next.

Step 4: Provision​

Step 4 starts with the Cluster readiness page. The page checks the node groups, outbound network access and cluster components, and shows the action for each failed check. Hosts marked Optional do not block provisioning.

note
  • The CoreDNS row can show an orange "needs attention" icon when CoreDNS is healthy. If the row shows Found and the EKS add-on status is ACTIVE, no action is necessary.
  • The optional *.splunkcloud.com check can fail with a TLS certificate error. This check does not block provisioning.
  1. Correct each failed check.
    • If the AWS Load Balancer Controller shows Unavailable: your stack has not granted load-balancer permissions, set lbControllerSupport = { enabled = true } in the customer stack, and apply the stack again.
    • The readiness page does not detect changes to the customer stack automatically. After you apply the stack again, reinstall the Helm chart from step 3 (helm uninstall, then helm install). Then choose Back, choose Test Connection, and choose Next.
  2. Choose Provision.

Provisioning has eight stages, from Configuring data plane to Finalizing kubernetes setup. The wizard says that provisioning can take up to 40 minutes. Allow approximately one hour. You can close the page while provisioning runs. When provisioning completes, Settings > Project Settings > Data Plane shows the linked cluster.

Data Plane tab after the cluster is linked

warning

During provisioning, the wizard can show Provisioning of Cloud Resources & Infrastructure for Onehouse ran into an errors! while provisioning continues. Before you contact Onehouse, wait for provisioning to complete, and then open Settings > Project Settings > Data Plane. If the page shows the linked cluster, provisioning was successful.

note

Settings > Project Settings > Data Plane can show an EKS Version that is different from the version of your cluster. To get the cluster version, run aws eks describe-cluster --name <cluster-name> --query cluster.version --output text.

Coming soon​

Table Optimizer for external Apache Iceberg tables is coming soon. But table optimizations for managed tables, including compaction, clustering and cleaning, are supported.