Setting up the DC/OS cluster

ENTERPRISE

Learn to setup the DC/OS cluster to demonstrate Kubernetes on DC/OS Enterprise

Prerequisite: DC/OS Enterprise cluster Enterprise

You will need superuser access to an unutilized cluster of virtual machines (VMs). The following is the minimal setup for this current tutorial.

  • 1 master node
  • 5 private agent nodes
  • 1 public agent node
  • Each node with resources equivalent or greater to that of an m4.xlarge AWS EC2 VM

Once you have your cluster infrastructure up and ready as specified by the above minimum prerequisites, you will next install both DC/OS CLIs:

before continuing on.

Kubernetes https prerequisite

The Mesosphere Kubernetes Engine (MKE) requires access over https to connect to the kubernetes-apiserver using kubectl. To finish setting up the cluster and before moving on to installing the MKE, go ahead and authenticate to the DC/OS CLI using https:

  1. In your CLI, enter:

    dcos config show core.dcos_url
    
  1. If the returned URL does not start with https://, enter:

    dcos config set core.dcos_url https://<dcos_master_public_IP_address>
    
  1. Moreover, if the TLS certificate used by DC/OS is not trusted in your case, you can run the following command to disable TLS verification for the purposes of completing this tutorial:

    dcos config set core.ssl_verify false
    
  1. To verify that the cluster is connected, or if there was a change to https, setup the cluster again, making sure to insert the actual URL of your cluster:

    dcos cluster setup <cluster-url>
    

    Accept any permissions requests for your certificate.

Next Step: Installing the Mesosphere Kubernetes Engine

Now that you have your DC/OS cluster all set up, you are ready to install the Mesosphere Kubernetes Engine.