Revision as of 06:00, February 20, 2020 by Jaba (talk | contribs)
Jump to: navigation, search

Deployment of Web Services and Applications in Kuberbetes

Prerequisites

For Hardware, Software, and Workspace Web requirements, refer to Prerequisites.

Configuring Web Services and Applications

To configure Web services and Applications, refer to Configuring Web Services and Applications.

Configuring Security

Transport Layer Security (TLS) is available only in Kubernetes-based deployment. For more details, refer to Configuring Security.

Deploying GWS

  1. Unpack the installation package (Example: IP_HTCCDev_9000197b1_ENU_dockerlinux.zip file) and navigate to the ip folder which contains the following files:
    • gws-microservices.tgz
    • exported microservices in tar.gz format (Example: gws-platform-configuration_9.0.000.42.tar.gz)
  2. Unpack the gws-microservices.tgz archive to the /opt/genesys/gws directory.
    mkdir -p /opt/genesys/gws
    tar xvf gws-microservices.tgz -C /opt/genesys/gws
  3. Populate Docker images (presented in *.tar.gz format) from the installation package to your corporate docker registry.
    for i in *.tar.gz; do /opt/genesys/gws/kubernetes/bin/push-containers-to-local-registry.sh $i %corporate_registry_address% --push; done
    Important
    This script must be run with Docker-capable privileges and you must login to your registry before pushing.
  4. Edit the following values in the /opt/genesys/gws/kubernetes/parameters.yaml file:

    Variable

    Value

    Description

    REGISTRY

    NA

    Corporate docker registry, which is accessible from all Kubernetes nodes.

    GWS_DOMAIN

    http://onpremiselab.com

    The host name that will be used by Ingress for routing rules creation. Note: If ingressTlsEnable is true, the deployment will be accessible though https://GWS_DOMAIN/ui/wwe/. If not, the deployment will be accessible through http://GWS_DOMAIN/ui/wwe/.

    LOCATION

    /USW2

    Location of the Configuration Server.
    Note: The GWS Cluster Application object (typically named CloudCluster) in the Configuration Database must be configured with a specified location for each connection to Genesys servers, such as Configuration Server, Stat Server, T-Server, and so on. This setting defines which server instance is visible by the GWS node based on its position in the GWS Cluster.

    CS_USERNAME

    default

    Username to connect to the Configuration Server.

    CS_PASSWORD

    password

    Password to connect to the Configuration Server.

    CS_APPNAME

    GWS_App

    Application name to connect to the Configuration Server. For details, refer to Creating GWS Client Application.

    CS_ADDRESS

    127.0.0.1

    Address of the primary Configuration Server.

    CS_PORT

    8888

    Port of the primary Configuration Server.

    CS_BACKUP_ADDRESS

    127.0.0.1

    Address of the backup Configuration Server.

    CS_BACKUP_PORT

    8888

    Port of the backup Configuration Server.

    CS_TENANT

    Environment

    The Configuration Server's tenant name.

    GWS_REDIRECT_URI

    http://onpremiselab.com

    Specifies an array by using double quotes and comma to separate values with no white space in between. Used as part of OAuth authentication flow.

    ingressTlsEnable

    true

    Enables Ingress secured endpoint configuration for Web Services and Applications.
    Note: Refer to Configuring Security for more details.

    POST_DEPLOY_UPDATE

    false

    Enables post deployment procedure, which creates default Genesys environment, contact center and OAuth client.
    Note: If POST_DEPLOY_UPDATE is set to true, GWS_DOMAIN will be used for contact center domain creation, and agents should provide domain information at login (GWS_DOMAIN\%CfgPerson's username%).

    DEPLOY_POSTGRES

    false

    Enables PostgreSQL deployment procedure in the same namespace as Web Services and Applications.
    Note: For lab deployments only.

    POSTGRES_ADDR

    postgres

    Address of PostgreSQL installation
    . Note: If DEPLOY_POSTGRES is set to true, the default value should be retained.

    POSTGRES_DB

    gws_environment

    PostgreSQL database name
    . Note: If DEPLOY_POSTGRES is set to true, the default value should be retained.

    POSTGRES_USER

    gws_env_master

    PostgreSQL user, which can be used to connect to database
    . Note: If DEPLOY_POSTGRES is set to true, the default value should be retained.

    POSTGRES_PASS

    gws_env_password

    PostgreSQL user password
    . Note: If DEPLOY_POSTGRES is set to true, the default value should be retained.

    DEPLOY_REDIS

    false

    Enables Redis cluster deployment procedure in same namespace as Web Services and Applications.
    Note: For lab deployments only.

    REDIS_ADDR

    redis-cluster:6379

    Address of Redis cluster installation
    . Note: If DEPLOY_REDIS is set to true, the default value should be retained.

    DEPLOY_ELASTICSEARCH

    false

    Enables ElasticSearch cluster deployment procedure in same namespace as Web Services and Applications.
    Note: For lab deployments only.

    ELASTICSEARCH

    elasticsearch:9200

    Address of ElasticSearch cluster installation
    . Note: If DEPLOY_ELASTICSEARCH is set to true, the default value should be retained.

  5. Invoke Helm:
    helm install gws/ -n gws-service -f gws-versions.yaml -f parameters.yaml

    Where:

    • gws/ is helm chart directory
    • -n gws-service is Kubernetes namespace name to deploy to
    • -f gws-versions.yaml is config file where versions of containers are defined
    • -f parameters.yaml is config file where deployment parameters are defined
  6. Wait until Helm-deployed Web Service and Applications and Kubernetes cluster starts all the requested containers. It may take up to 10 minutes.
  7. Verification

    Use the following links to get the expected versions of the Web Services and Applications components and verify they are correct:

    Service

    Verification URLs

    GWS Authentication Service

    http://GWS_DOMAIN/auth/v3/version

    GWS Configuration Service

    http://GWS_DOMAIN/configuration/v3/version

    GWS Environment Service

    http://GWS_DOMAIN/environment/v3/version

    GWS Data Collector Service

    http://GWS_DOMAIN/datacollector/v3/version

    Workspace Web Edition

    http://GWS_DOMAIN/ui/wwe/index.html

Comments or questions about this documentation? Contact us for support!