Introduction

This quick start guide describes the steps to install the Cybus Connectware on Kubernetes clusters.
Please consult the article Installing Cybus Connectware for the basic requirements to run the software.

The following topics are covered by this article:

Prerequisites

Please consult the prerequisites chapter in the article Installing Cybus Connectware, we assume that you are already familiar with the Cybus Portal and obtaining a license key and a license file.

This guide does not introduce Kubernetes, Docker, containerization or tooling knowledge, we expect the system admin to know about their respective Kubernetes environment, which brings – besides wellknown standards – a certain specific custom complexity, e.g. the choice of certain load balancers, the management environment, storage classes and the like, which are up to the customer’s operations team and should not affect the reliability of Cybus Connectware deployed there, if the requirements are met.

Besides a Kubernetes cluster the following tools and resources are required:

Quick Installation Guide

Start with Connectware on Kubernetes Clusters

To be able to start with Cybus Connectware on a Kubernetes cluster use the prepared helm chart please follow the following steps:

  1. Add the public Helm V3 repository to the local configuration using the Helm CLI:
    helm repo add cybus https://repository.cybus.io/repository/connectware-helm
  2. Update repository and verify available Connectware Helm Chart releases (e.g. 1.7.0)
    helm repo update
    helm search repo connectware [-l]

  3. Extract the values.yaml file from the helm package and define custom values (see specification below). A connectware licenseKey and a broker.clusterSecret are essential. Beside this at least the cpu/memory resource definitions at the end of the chart values list need to be adjusted for the runtime environment (in case of restrictions).
    helm show values cybus/connectware > values.yaml
  4. Optionally perform a dry-run with debug options to validate all settings:
    helm install <YOURDEPLOYMENTNAME> <REPONAME>/connectware -f ./values.yaml --dry-run --debug -n<YOURNAMESPACE> --create-namespace
    (shows user supplied values, along with computed values and the rendered template)

    Example:
    sudo helm install connectware-1.0 cybus/connectware -f ./values.preview.yaml --dry-run --debug -ncybus --create-namespace
  5. Then initially execute accordingly:
    helm install <YOURDEPLOYMENTNAME> <REPONAME>/connectware -f ./values.yaml --n<YOURNAMESPACE> --create-namespace
  6. Subsequent updates can be executed by
    helm upgrade <YOURDEPLOYMENTNAME> <REPONAME>/connectware -f ./values.yml -n<YOURNAMESPACE>

Important values.yml parameters

The Helm Chart contains a values.schema.json file with more detailed information about these available options:

Important notes on setting values when upgrading to newer versions of the chart

Helm allows setting values by both specifying a values file (using -f or --values) and the --set flag. When upgrading this chart to newer versions you should use the same arguments for the Helm upgrade command to avoid conflicting values being set for the Chart; this is especially important for the value of global.broker.clusterSecret, which would cause the nodes not to form the cluster correctly, if not set to the same value used during install or upgrade.

For more information about value merging see the respective Helm documentation.

Using the Connectware

After following all the steps above Cybus Connectware is now installed. You can access the Admin UI by opening your browser and entering the Kubernetes application URL https://<external-ip> with the initial login credentials username=admin and password=admin.

To determine this data, the following kubectl command can be used:
kubectl get svc connectware --namespace=<YOURNAMESPACE> -o jsonpath={.status.loadBalancer.ingress}

If you would like to learn more how to use the Connectware, check out our docs at https://docs.cybus.io/ or see more guides here.

The Cybus Connectware Helm Chart

The Kubernetes version of Cybus Connectware comes with a Helm Umbrella chart, describing the instrumentation of the Connectware images for deployment in a Kubernetes cluster.

It is publicly available in the Cybus Repository for download resp. direct use with Helm.

System requirements for Kubernetes clusters

Cybus Connectware expects regular Kubernetes clusters and was tested for Kubernetes 1.18 or higher.
In case of specific boundary conditions and requirements in customer Kubernetes clusters, a system specification should be shared to evaluate them for secure and stable Cybus Connectware operations.

Resource limits

Connectware specifies default limits for CPU and memory in the values.yml, that need to be at least fulfilled by the Kubernetes cluster. Variations need to be discussed with Cybus, depending on the specific demands and requirements in the customer environment, e.g., the size of the broker cluster for the expected workload with respect to the available CPU cores and memory.

The additional file values.preview.yaml (for limited cluster environments) show some typical resource limit differences, which are defined to guarantee proper operation of Cybus Connectware.

Permissions

To be able to run Cybus Connectware in Kubernetes clusters the implemented compatibility layer requires the following permissions in form of resource[/sub-resource]/action for the required features.

Current required permissions defined in the role definitions for broker and container/pod-manager are:

Broker:

resource(/subresource)/actionpermission
pods/listlist all containersget status of all containers
pods/get
pods/watch
inspect containers

Container/Pod-manager:

resource(/subresource)/actionpermission
pods/listlist all containersget status of all containers
pods/get
pods/watch
inspect containers
pods/log/get
pods/log/watch
inspect containersget a stream of container logs
deployments/createcreate containers
deployments/deletedelete containers
deployments/update
deployments/patch
to restart containers (since we rescale deployments)

Specialties

The system administrator needs to be aware of certain characteristics of the Connectware deployment:

Deploying Protocol-Mapper Agents

The values.yaml file contains a protocolMapperAgents section representing a list of Connectware agents to deploy. The general configuration for these agents is the same as described in the Connectware documentation.

The only required property of the list items is name; if only this property is specified the chart assumes some defaults:

Each entry on the list of agents accepts env properties as environment variables injected into each agent:

The complete documentation for these values can be found in the Connectware Agent documentation.

Ihr Browser unterstützt diese Webseite nicht.

Liebe Besucher:innen, Sie versuchen unsere Website über den Internet Explorer zu besuchen. Der Support für diesen Browser wurde durch den Hersteller eingestellt, weshalb er moderne Webseiten nicht mehr richtig darstellen kann.
Um die Inhalte dieser Website korrekt anzeigen zu können, benötigen Sie einen modernen Browser.

Unter folgenden Links finden Sie Browser, für die unsere Webseite optimiert wurde:

Google Chrome Browser herunterladen Mozilla Firefox Browser herunterladen

Sie können diese Website trotzdem anzeigen lassen, müssen aber mit erheblichen Einschränkungen rechnen.

Diese Website trotzdem anzeigen.