Creating and accessing a Kubernetes cluster on OpenStack, part 2: Access the cluster

Nick Chase - November 14, 2016 - ,

To access the Kubernetes cluster we created in part 1, we’re going to create a Ubuntu VM (if you have a Ubuntu machine handy you can skip this step), then configure it to access the Kubernetes API we just deployed.

Create the client VM

  1. Create a new VM by choosing Project->Compute->Intances->Launch Instance:
    screenshot of Launch Instance window with Detail tab selected
  2. Fortunately you don’t have to worry about obtaining an image, because you’ll have the Ubuntu Kubernetes image that was downloaded as part of the Murano app. Click the plus sign (+) to choose it.  (You can choose another distro if you like, but these instructions assume you’re using Ubuntu.)
    screenshot of Launch Instance window with Source tab selected
  3. You don’t need a big server for this, but it needs to be big enough for the Ubuntu image we selected, so choose the m1.small flavor:
    screenshot of Launch Instance window with Flavor tab selected
  4. Chances are it’s already on the network with the cluster, but that doesn’t matter; we’ll be using floating IPs anyway. Just make sure it’s on a network, period.
    screenshot of Launch Instance window with Networks tab selected
  5. Next make sure you have a key pair, because we need to log into this machine:
    screenshot of Launch Instance window with Key Pair tab selected
  6. After it launches…
    screenshot of KubeClient instance after it launches
  7. Add a floating IP if necessary to access it by clicking the down arrow on the button at the end of the line and choosing Associate Floating IP.  If you don’t have any floating IP addresses allocated, click the plus sign (+) to allocate a new one:
    screenshot of Manage Floating IP Associations showing IP Address and Port to be associated dropdown menu bars
  8. Choose the appropriate network and click Allocate IP:
    screenshot of Allocate Floating IP window with ext_float populating the Pool dropdown menu bar
  9. Now add it to your VM:
    screenshot of Manage Floating IP Associations window with IP Address and Port to be associated dropdown menu bars already populated
  10. You’ll see the new Floating IP listed with the Instance:
    screenshot of KubeClient instance after it launches now with Floating IPs in IP Address column
  11. Before you can log in, however, you’ll need to make sure that the security group allows for SSH access. Choose Project->Compute->Access & Security and click Manage Rules for the default security group:
    screenshot of Access & Security dashboard with Security Groups tab selected
  12. Click +Add Rule:
    screenshot of Access & Security dashboard's Add Rule and Delete Rule buttons
  13. Under Rule, choose SSH at the bottom and click Add.
    screenshot of the Add Rule window from Access & Security dashboard
  14. You’ll see the new rule on the Manage Rules page:
    screenshot of Mirantis OpenStack Dashboard after rules have been added
  15. Now use your SSH client to go ahead and log in using the username ubuntu and the private key you specified when you created the VM.

Now you’re ready to actually deploy containers to the cluster.

Sound interesting? If you live in Austin, Texas, you’re in luck; we’ll be presenting Kubernetes 101 at OpenStack Austin Texas on November 15, and at the Cloud Austin meetup on Nov 16, or you can dive right in and sign up for Mirantis’ Kubernetes and Docker Boot Camp.

banner-img
From Virtualization to Containerization
Learn how to move from monolithic to microservices in this free eBook
Download Now
Radio Cloud Native – Week of May 11th, 2022

Every Wednesday, Nick Chase and Eric Gregory from Mirantis go over the week’s cloud native and industry news. This week they discussed: Docker Extensions Artificial Intelligence shows signs that it's reaching the common person Google Cloud TPU VMs reach general availability Google buys MobileX, folds into Google Cloud NIST changes Palantir is back, and it's got a Blanket Purchase Agreement at the Department of Health and Human …

Radio Cloud Native – Week of May 11th, 2022
Where do Ubuntu 20.04, OpenSearch, Tungsten Fabric, and more all come together? In the latest Mirantis Container Cloud releases!

In the last several weeks we have released two updates to Mirantis Container Cloud - versions 2.16 and 2.17, which bring a number of important changes and enhancements. These are focused on both keeping key components up to date to provide the latest functionality and security fixes, and also delivering new functionalities for our customers to take advantage of in …

Where do Ubuntu 20.04, OpenSearch, Tungsten Fabric, and more all come together? In the latest Mirantis Container Cloud releases!
Monitoring Kubernetes costs using Kubecost and Mirantis Kubernetes Engine [Transcript]

Cloud environments & Kubernetes are becoming more and more expensive to operate and manage. In this demo-rich workshop, Mirantis and Kubecost demonstrate how to deploy Kubecost as a Helm chart on top of Mirantis Kubernetes Engine. Lens users will be able to visualize their Kubernetes spend directly in the Lens desktop application, allowing users to view spend and costs efficiently …

Monitoring Kubernetes costs using Kubecost and Mirantis Kubernetes Engine [Transcript]
FREE EBOOK!
Service Mesh for Mere Mortals
A Guide to Istio and How to Use Service Mesh Platforms
DOWNLOAD
Technical training
Learn Kubernetes & OpenStack from Deployment Experts
Prep for certification!
View schedule
Mirantis Webstore
Purchase Kubernetes support
SHOP NOW