Deployment examples

The examples in this section demonstrate container deployment to Kubernetes or OpenShift clusters using a Helm chart or a YML file.

You can find and download deployment examples for both clusters on the container main page.

Note: The container deployment  procedure is the same for both clusters, however, you should note that some parameters in the samples differ (see below).

Deployment to a cluster using a Helm chart

This example shows how to deploy ABBYY OCR Container to your cluster using a Helm chart.

To deploy the container, do the following:

  1. Install the helm utility on the machine that will be used to deploy the container.
  2. On the container web page, download the helm chart sample depending on the cluster you use (K8s helm chart sample link or OpenShift helm chart sample link).
  3. Unpack the downloaded archives.
  4. In the unpacked folder, open the values.yaml file in a text editor.
  5. Fill in the parameters with values that meet your requirements and your environment.
    • In the Image section, specify the name of the container image in the imageTag parameter. In the containerRegisterSecret parameter, specify the name of the secret that stores the credentials to the Docker image registry.
    • In the Ingress section, in the host parameter, specify the address where the container should be accessible. In the tlsSecretName parameter, specify the name of the secret that stores the TLS certificate data for establishing a secure HTTPS connection .
  1. Save the values.yaml file.
  2. Check that the cluster where you want to deploy the container is selected in the current context:
kubectl config get-contexts
    
  1. Run the command below:

helm install name chart flags

The parameters are described in the table below:

Parameter Description
name Release name.
chart The path to the folder where the Chart.yaml and values.yaml files are located.
flags Specifies the flags if needed.

Command example:

helm install ocr-container-release D:\ocr-container-0.1.0\ocr-container-0.1.0\ocr-container -n ocr-test
    

Deployment to a cluster using YAML

The example below shows how to deploy ABBYY OCR Container to your cluster using a YML file.

To deploy the container, do the following:

  1. Install the kubectl utility on the machine that will be used to deploy the container.
  2. On the container web page, download the sample file depending on the cluster you use (K8s deployment sample link or OpenShift deployment sample link) and edit it according to your environment settings.
    • In the Deployment section, specify the name of the container image in the spec/template/spec/containers/image parameter. In the spec/template/spec/imagePullSecrets parameter, specify the name of the secret that stores the credentials to the docker image registry.    
    • In the Ingress section, in the spec/rules/host and spec/tls/hosts parameters, specify the address where the container should be accessible. In the spec/tls/secretName parameter, specify the name of the secret that stores the TLS certificate data for establishing a secure HTTPS connection.
    • Specify the name of your namespace in all the namespace parameters.
    • Change any other settings as appropriate.
  1. Check that the cluster where you want to deploy the container is selected in the current context:
kubectl config get-contexts
    
  1. Deploy the container:

kubectl apply -f ocr-k8s-example.yml for a Kubernetes cluster, or

kubectl apply -f ocr-os-example.yml for an OpenShift cluster

2/19/2024 10:23:36 AM

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.