In the previous post, we took a look at getting started with VMware Pivotal Container Service PKS PCF Ops Manager Install. We looked at deploying the PCF Ops Manager appliance into vSphere and getting the BOSH Director connected to a VMware vSphere environment. This included importing the product – Pivotal Container Service which adds it into the PCF Ops Manager installation dashboard to get ready for configuration. In this next part, we will look at configuring the Pivotal Container Service PKS in PCF Ops Manager Dashboard and the steps required to get the Pivotal Container Service ready for operation to spin up our first Kubernetes K8S cluster in vSphere.
Configuring Pivotal Container Service PKS in PCF Ops Manager Dashboard
Since we have already installed the Pivotal Container Service with the Import a Product button in the PCF Ops Manager Dashboard, we simply need to configure the Pivotal Container Service configuration. The steps to do that involve the following:
- Assign AZs and Networks
- PKS API
- Plan 1 configuration
- Plan 2 configuration
- Plan 3 configuration
- Kubernetes Cloud Provider
- Usage Data configuration
Below, let’s look at the screenshots and the configuration contained on the screens that is relevant for getting a working configuration stood up for Pivotal Container Service.
Once again, after we add the Pivotal Container Service into the PCF Ops Manager dashboard, you will see the PKS tile appear with a “red” progress bar, indicating we have additional configuration to do before it is ready to go. Click the Pivotal Container Service tile.
First, we will run through the Assign AZs and Networks configuration. Here we assign the availability zones and network/service network for the PKS configuration.
Next, the PKS API configuration screen requires the generating of an RSA certificate for use with the API service. Click on the Generate RSA Certificate to begin the process.
The Generate RSA Certificate screen simply needs a domain name to be configured for generating the certificate.
Back at the PKS API Service screen, we see the certificates populated. Now we simply need to populate the API Hostname (FQDN) field with the hostname.
Under the Plans configuration, there are Plan 1, Plan 2, and Plan 3 plans that determine the resource configuration of various K8S deployments in PKS. I only populated the Plan 1 and Plan 2 configuration, and set the Plan 3 to inactive.
On the Kubernetes Cloud Provider you configure the IaaS configuration to vSphere and populate the configuration accordingly. The required fields are very similar to the BOSH Director configuration. On the Stored VM folder I used the same folder that was configured in the BOSH configuration.
Lastly, the Usage Data configuration allow opting in or out of the CEIP program for collecting data.
After this step, you are ready to apply changes. Click on the Installation Dashboard and click the Review Pending Changes button.
On the Review Pending Changes screen, click the Apply Changes button to commit the changes.
Once you click the Apply Changes button, you will be taken to the verbose output of the apply process where you can monitor the overall progress.
After a while, you should see the steps all complete successfully which is noted by the Succeeded directive in the verbose output.
You will also see the Changes Applied box pop up letting you know the changes were successfully applied.
There are many advantages to running K8S on top of VMware vSphere and Pivotal Container Service makes the provisioning and maintenance of the Kubernetes clusters much easier than provisioning yourself. Configuring Pivotal Container Service PKS in PCF Ops Manager Dashboard is another step in the direction of being able to provision your Kubernetes cluster on top of VMware vSphere by way of Pivotal Container Service PKS. The overall process so far has been great from my lab experience and the workflow is intuitive and has worked well. In my case, I haven’t ran into any unexplained issues that were simply flukes. Everything has been rock solid. In the next Pivotal Container Service post, we will look at setting up and configuring a workstation with the required CLI utilities to interact with the Pivotal Container Service and start provisioning Kubernetes inside of VMware vSphere.