VMware Integrated Openstack 4.0 is available with a great new feature for users wanting to explore container orchestration. Kubernetes provides enterprise grade container orchestration, enabling coveted technology such as auto-scaling and auto-healing.
Pairing VIO with Kubernetes makes sense as it augments the out of the box feature set with that provided by the vSphere Hypervisor and NSX, providing a much higher level of centralized management and augmented networking capabilities over the core mainline Openstack product.
The Kubernetes + OpenStack bits are available in VMware’s download portal under the VIO 4.0 download page. A 60 day trial license is included out of the box to get you started:
After downloading, go thru the normal OVA installation and deployment. There are some great blogs out there on deploying VMware Integrated Openstack such as this blog post by Sean Whitney.
Once you’ve deployed the Kubernetes appliance, log in with the root credentials you created during OVA deployment:
First, we will need to deploy a new provider. We will target the previously deployed VIO 4.0 as our new provider. You are allowed to have multiple providers, so you could target multiple different instances of VIO or an Openstack provider hosted in the public cloud as well.
Name your provider appropriately and set the provider type.
In the next step, we are going to need the SSL Certificate from our VIO instance. In my lab, the cert I’m using is the default cert and is self signed. By providing Kubernetes the cert out of band and double checking the thumbprint, we can validate that we have the correct certificate and our K8S cluster is trusting the correct provider.
Make sure to add the .crt extension to the exported file. I find it easiest to use the Firefox web browser to do this as the latest versions of Chrome have moved the certificate viewer and exporter into the developer tools. Whichever is easiest for you is fine.
Fill out the Openstack authentication information in the next step of the wizard. Note the Keystone public URL for authentication in VIO 4.0 is the base URL of your openstack instance with on port 5000 with /v3 added to the end of the URL. This information is available under the info popup as well.
Make sure to use the cloud image version of Ubuntu, it is correctly prepared with the necessary packages to make everything work out of the box. It is available in VMDK format (as well as many others) here.
You’ll need to upload the image to your Openstack instance in the project you are using for Kubernetes before proceeding.
Choose an appropriate external network to provide network access to your K8S cluster.
Choose the internal network you want your Kubernetes deployed containers to utilize.
Once this information is added, you are ready to deploy your cloud provider! This should only take a few minutes. Once completed, it will look similar to this.
Once you have a provider added, you are ready to create your first Kubernetes Cluster. First, select the infrastructure provider we just created above.
Next, choose the security group you want to use to secure network traffic for this cluster. This will vary depending on the environment and applications running in the cluster.
Choose the users and groups who will be able to access and utilize the cluster.
Cluster creation can take awhile. You’ll see the cluster being created in the VIO with Kubernetes UI.
During cluster creation, you should see the infrastructure for the cluster being created in the vSphere client.
Next Steps Deploying Your First Kubernetes Pod:
Once the cluster deploys, you should be able to access and authenticate against the kubernetes API. From this point on, the process is identical for developers and users as consuming any other Kubernetes cluster. This is a well documented and often written about process. For a great starter tutorial, check out this post by Raziel Tabib at CodeFresh.