Getting Started with VMware Pivotal Container Service PKS PCF Ops Manager Install
There is certainly major interest in running containers in today’s infrastructure, even if it is only for dev/test environments or simply to proof of concept the use of containers in production. Most organizations today are looking at how to quickly and easily get started with containers in the enterprise. For most who are VMware customers and currently run VMware vSphere in the enterprise, there is a great way to get started with running containers and specifically Kubernetes worker containers inside of vSphere. Kubernetes is the management, orchestrator and container scheduler of choice today as it has major momentum behind it in the enterprise and in cloud container environments and is easily managed with API access. Back to running this in vSphere – if we go back to one of the announcements that happened with VMworld 2017, the Pivotal Container Service or PKS was announced which gives vSphere administrators an extremely easy way to get up and running with a Kubernetes container cluster right in their vSphere environment and get this running quickly and easily.ย Let’s take a look at getting started with VMware Pivotal Container Service PKS PCF Ops Manager Install and see the initial steps required to get up and running with the BOSH Director for vSphere.
Getting Started with VMware Pivotal Container Service PKS PCF Ops Manager Install
In case you are wondering, how does the Pivotal Container Service play into the already existing vSphere Integrated Containers solution from VMware?ย Cormac Hogan addressed this question directly on his blog when asked as to differences:
It doesnโt mean anything for VIC. VIC is still on-going, and customers can continue to use this to deploy โcontainers as VMsโ. There are no changes here.
PKS is a way to deploy Kubernetes as a set of VMs (master, etcd, workers) on top of vSphere, and do โcontainers in VMsโ.
So you can look at this as more choice for containers on vSphere.
So according to Cormac’s comparison, PKS is another offering that caters more to easily provisioning a Kubernetes cluster in vSphere.ย The VIC solution seems more general purpose from what I have seen.
In this first blog post covering PKS, we will take a look at the first component of the PKS install in VMware vSphere – installing the PCF Ops Manager which allows getting the BOSH component up and running in vSphere and then importing the Pivotal Container Service as an application to be deployed in vSphere.
As an overview, straight from the Pivotal Documentation:
BOSH Overview
PKS uses theย On-Demand Brokerย to deployย Cloud Foundry Container Runtime, a BOSH release that offers a uniform way to instantiate, deploy, and manage highly available Kubernetes clusters on a cloud platform using BOSH.
After operators install the PKS tile on the Ops Manager Installation Dashboard, developers can provision Kubernetes clusters using the PKS Command Line Interface (PKS CLI), and run container-based workloads on the clusters with the Kubernetes CLI,ย kubectl.
PKS is available as part ofย Pivotal Cloud Foundryย or as a stand-alone product.
Installing PKS PCF Ops Manager
The first thing we need to do is install the PKS PCF Ops Manager product in our VMware vSphere environment.ย For my lab environment, I am installing the OVA into a two-node vSAN cluster.ย The overview of the process is not that much different than any OVA:
- Deploy the OVA into vSphere
- Connect to the web interface via the network configuration assigned during deployment
- Connect BOSH Director for vSphere to your VMware vSphere environment
- Install the Pivotal Container Service product
First, let’s look quickly at the OVA appliance deployment.ย No surprises here, just a quick run through of the screens.
Deploying the PCF Ops Manager Appliance in vSphere
At the time of this post writing, the file that I downloaded from Pivotal:
- pcf-vsphere-2.3-build.194.ova
- Size 4.2 GBs roughly
Choose a name for the VM in vSphere inventory and a folder to house the VM.
Select a cluster/host that you want to house the appliance.
Select the datastore that will be used to store the appliance VM files.
Choose a network for the appliance.
Pay attention to theย Customize Template screen as here you will set your network config as well as passwords, etc.
Finalize the config and begin deploying the appliance.
After powering on the appliance, you should see it successfully boot.
Configuring PCF Ops Manager Authentication and BOSH Director for vSphere
Now that we have the appliance deployed into vSphere, we can begin the configuration of the Pivotal Containers Operations Manager authentication configuration as well as the initial configuration of the vSphere connection.
After a moment the Pivotal authentication system should start and you will be redirected to a login screen.
After the authentication system of your choosing starts, you can login with your user account.ย After logging in, you will see theย Installation Dashboard displaying the remaining configuration needed to connect the PCF Ops Manager to vSphere.ย Click theย VMware BOSH Director for vSphere.
You will see the red circles indicating the configuration you need to complete.ย Under theย vCenter Config you will populate your vCenter server name, credentials, etc.
Theย Director Config will have you setup NTP as well as many other available options.ย Click toย Enable Post Deploy Scripts to have configuration automatically applied.
Create yourย Availability Zones.
Create yourย Networksย and configuration.
Under theย Assign AZs and Networks assign the AZ and networks you would like to use.
This should finalize the configuration needed.ย Now we need to apply the configuration.ย In the Dashboard, click theย Review Pending Changes button.
Next, click theย Apply Changes to begin applying the configuration.
This will initiate the Applying Changes process which will installย BOSH and deploy your other infrastructure VMs in vSphere among other things.
After some time, you will see theย Changes Applied successfully.ย Return to the Dashboard.
To installย Pivotal Container Service (PKS), you will need to login to Pivotal with your account (free) and download the .pivotal file for Pivotal Container Service.ย We will use this file to import the product in the next step.
Click theย Import a Product button.ย Choose the Pivotal Container Service file downloaded above.
After a while, you should seeย Successfully added product message.ย Click the greenย +ย sign next to the build of Pivotal Container Service.ย This will add it to the dashboard.
As you can see below, we now haveย Pivotal Container Service added to the PCF Ops Manager dashboard.ย It needs to be configured.
Takeaways
In this first post, we have taken a look at the initial phase ofย Getting Started with VMware Pivotal Container Service PKS PCF Ops Manager Install.ย This included deploying the Pivotal Container Service PCF Ops Manager into VMware vSphere and then setting up the authentication mechanism for the appliance.ย After that, we configured the BOSH Director for vSphere which includes setting up the connection to your vCenter Server, Director Config, Networks, Availability zones, etc.ย Once the BOSH Director for vSphere is configured, we applied the configuration.ย Then, we downloaded the Pivotal Container Service and imported the product into the PCF Ops Manager dashboard.ย In the next post, we will look at configuring the Pivotal Container Service and the next steps.