Private Kubernetes Cluster

Introduction

With Bunnyshell you can easily connect a private Kubernetes cluster to your Organization. Make sure you meet the prerequisites, then follow the steps described in this guide.

 

Connect a Private Kubernetes Cluster to Bunnyshell

Prerequisites for connecting the cluster

  • You have a Bunnyshell account
  • You have created an Organization.
  • You have a private Kubernetes Cluster already configured.

🚧

Before connecting the cluster to Bunnyshell, make sure you have access to the .kube/config file.

 

How to connect the cluster

  1. Go to the Bunnyshell platform and click Clusters on the left-side menu.
  1. Click Connect cluster and choose Private Cluster
  1. For a Private Cluster, you need to provide:
  • Name
    Choose what name your cluster will have in Bunnyshell.
  • Cluster name
    You can find it in the kubeconfig file, in clusters[*].name.
  • Cluster URL
    You can find it in the kubeconfig file, in clusters[*].cluster.server.
  • CA Certificate
    You can find it in the kubeconfig file, in clusters[*].cluster.certificate-authority-data.
  1. Then for authentication you have two options
  • Certificate & Key with:
    • User Certificate
      You can find it in the kubeconfig file, in users[*].user.client-certificate-data, for the user corresponding to the cluster.
    • User Certificate Private Key
      You can find it in the kubeconfig file, in users[*].user.client-key-data, for the user corresponding to the cluster.
  • Static token with:
    • Token
      You can find it in the kubeconfig file, in users[*].user.token, for the user corresponding to the cluster.