Create a Kubernetes Cluster on DigitalOcean and Import into Rancher

August 01, 2019

1 min read

Instructions

  1. Create kubernetes cluster on DigitalOcean
  2. Install doctl DigitalOcean CLI tool
brew install doctl
  1. Install kubectl command line tool for kubernetes
brew install kubectl
  1. Get a list of your DigitalOcean kubernetes clusters
doctl kubernetes cluster list
  1. Save the kubernetes .kubeconfig file using doctl
doctl kubernetes cluster kubeconfig save $cluster_name
  1. Go to your rancher install
  2. Click Add Cluster, select Import under Import Existing Cluster and click Create
  3. Copy the kubectl command given to you in the next screen and paste into your terminal

Screencast

Resources

Get More!