Configuring Pivotal Container Service PKS in PCF Ops Manager Dashboard
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.
Takeways
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.