Ask the Expert: How can I deploy ThingWorx Docker images on Kubernetes?

Ask the Expert: How can I deploy ThingWorx Docker images on Kubernetes?

Disclaimer: The scripts and content published here are provided solely as a courtesy to PTC customers. Each script is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the PTC be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the scripts, including any software vulnerabilities.

Hi developers,

Ready to deploy ThingWorx containers on Kubernetes using Helm?

Let's get started using the steps below from Luis, one of our awesome software developers.

Before you dive too far in, please note that the following instructions assume you have downloaded the Docker scripts from our downloads portal and followed the instructions to build and publish the ThingWorx Docker images to your own Docker registry; they also assume that you have a working Kubernetes cluster with sufficient resources available.

These steps are intended to be used as a deployment manual and will not provide in-depth information about Kubernetes or the Helm package manager.

In this example, we'll use the ThingWorx platform with PostgreSQL as a persistence provider.

To prepare for the deployment, start by downloading the sample Helm chart thingworx-0.1.0.tgz (this is zipped in the .7z file attached ). You can take a look at what is configurable in this Helm chart:

$ helm inspect thingworx-0.1.0.tgz

This will show you the default configuration (values.yaml) and instructions (README.md) provided within the package. In the next steps, you'll see how to override some of these values to make the deployment fit your environment.

Let's create your customvalues file. Use your favorite text editor and create a new file that looks like the following example. Please note the comments and make the necessary adjustments.