Difference between revisions of "PEC-REP/Current/GIMPEGuide/DeployGSP"

From Genesys Documentation
Jump to: navigation, search
(Published)
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Article
+
{{ArticlePEServiceDeploy
|Standalone=No
+
|ServiceId=3b2bdfd2-9eb1-4a99-a181-356f2704bc02
|DisplayName=Deploy GSP
+
|IncludedServiceId=c39fe496-c79e-4846-b451-1bc8bedb126b
|Context=Learn how to deploy GIM Stream Processor (GSP).
+
|IncludeAssumptions=Yes
|ComingSoon=No
 
 
|Section={{Section
 
|Section={{Section
 
|alignment=Vertical
 
|alignment=Vertical
|structuredtext={{NoteFormat|Make sure to review {{Link-SomewhereInThisVersion|topic=PlanningGSP}} for the full list of prerequisites required to deploy GSP.|}}
+
|structuredtext={{NoteFormat|Make sure to review {{Link-SomewhereInThisVersion|topic=PlanningGSP}} for the full list of prerequisites required to deploy GSP, including provisioning S3-compatible storage (see {{Link-AnywhereElse|product=PEC-REP|version=Current|manual=GIMPEGuide|topic=PlanningGSP|anchor=GSP_Plan_CreateS3Storage}}).|}}
 
|Status=No
 
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=Set up your environment
 
|sectionHeading=Set up your environment
 +
|anchor=EnvSetup
 
|alignment=Vertical
 
|alignment=Vertical
|structuredtext=
+
|structuredtext=To prepare your environment for the deployment, complete the steps in this section. Use the instructions for your environment:
# Log in to the OpenShift cluster from the remote host via CLI:
+
 
#: <source lang="text">oc login --token <token> --server <URL of the API server></source>
+
*[[Draft:PEC-REP/Current/GIMPEGuide/DeployGSP#GSP Env GKE|GKE]]
# (Optional) Check the cluster version:
+
*[[Draft:PEC-REP/Current/GIMPEGuide/DeployGSP#GSP Env AKS|AKS]]
#: <source lang="text">oc get clusterversion</source>
+
 
# If the cluster administrator has not already done so, create a new project for GSP:
+
{{AnchorDiv|GSP_Env_GKE}}
#: <source lang="text">oc new-project gsp</source>
+
===GKE environment setup===
# Set the default project to gsp:
+
 
#: <source lang="text">oc project gsp</source>
+
#Ensure that the gcloud CLI and required Helm version are installed on the host where you will run the deployment.
# Bind the security context constraint (SCC) to the project-specific service accounts:
+
#Using the CLI, log in to the GKE cluster on the host where you will run the deployment.
#: <source lang="text">oc adm policy add-scc-to-user genesys-restricted -z default -n gsp
+
#:<source lang="text">gcloud container clusters get-credentials <cluster></source>
oc adm policy add-scc-to-user genesys-restricted -z gsp -n gsp</source>
+
#If the cluster administrator has not already done so, create a new namespace <code>gsp</code> for GSP.
# Create a secret for docker-registry in order to pull images from the Genesys JFrog repository:
+
#*Create a JSON file that specifies the namespace metadata. As an example, the file '''create-gsp-namespace.json.''' has the following JSON
#: <source lang="text">oc create secret docker-registry <repository secret name> --docker-server=<repository> --docker-username=<username> --docker-password=<password/API key> --docker-email=<email id> -n gsp</source>
+
#:<source lang="bash">{
|Status=No
+
  "apiVersion": "v1",
}}
+
  "kind": "Namespace",
 +
  "metadata": {
 +
    "name": "gsp",
 +
    "labels": {
 +
      "name": "gsp"
 +
    }
 +
  }
 +
}</source>
 +
#*Create the namespace. The following example applies the '''create-gsp-namespace.json''' file to create the <code>gsp</code> namespace.
 +
#:<source lang="text">kubectl apply -f create-gsp-namespace.json</source>
 +
#*Confirm that the namespace was successfully created.
 +
#:<source lang="text">kubectl describe namespace gsp</source>
 +
#Create the pull secret for the image registry.
 +
#*This step defines a secret so that Kubernetes can authenticate your image repository and pull artifacts from it. The repository is represented as <code>docker-registry</code> in the system. For information about downloading artifacts from the repository, see {{Link-AnywhereElse|product=PrivateEdition|version=Current|manual=PEGuide|topic=ManageServices}}. 
 +
#*When you configure the GSP, you will reference the registry pull secret as a Helm chart override; see {{Link-SomewhereInThisVersion|manual=GIMPEGuide|topic=ConfigureGSP|anchor=GSP_HelmCharts|display text=GSP Helm chart overrides}}.
 +
#:<source lang="text">kubectl create secret docker-registry <repository secret name> --docker-server=<repository> --docker-username=<username> --docker-password=<password/API key> --docker-email=<email id> -n gsp</source>
 +
#Create the Kafka secret.
 +
#*Kafka requires a separate access credential.
 +
#*This credential is represented as <code>kafka-secrets</code> in the system, as in the following syntax.
 +
#:<source lang="text">kubectl create secret generic kafka-secrets --from-literal=kafka-secrets={\"bootstrap\":\"<kafka-bootstrap-url>\", \"username\":\"gsp\",\"password\":\"<password>\"} -n gsp</source>
 +
#:For example:
 +
#:<source lang="text">kubectl create secret generic kafka-secrets --from-literal=kafka-secrets={\"bootstrap\":\"infra-kafka-cp-kafka.infra.svc.cluster.local:9092\",\"username\":\"gsp\",\"password\":\"kafka-password\"} -n gsp</source>
 +
#:Note: Kafka can be deployed without authentication, as in the following example.
 +
#:<source lang="text">kubectl create secret generic kafka-secrets --from-literal=kafka-secrets={\"bootstrap\":\"<kafka-bootstrap-url>\"} -n gsp</source>
 +
 
 +
{{AnchorDiv|GSP_Env_AKS}}
 +
===AKS environment setup===
  
 +
#Ensure that the Azure CLI and required Helm version are installed on the host where you will run the deployment.
 +
#Using the CLI, log in to the cluster on the host where you will run the deployment.
 +
#:<source lang="bash">
 +
az aks get-credentials --resource-group <resource-group-name> --name <cluster-name> --admin
 +
</source>
 +
#If the cluster administrator has not already done so, create a new namespace <code>gsp</code> for GSP.
 +
#*Create a JSON file that specifies the namespace metadata. As an example, the file '''create-gsp-namespace.json''' has the JSON shown below.
 +
#:<source lang="bash">{
 +
  "apiVersion": "v1",
 +
  "kind": "Namespace",
 +
  "metadata":
 +
    "name": "gsp",
 +
    "labels": {
 +
      "name": "gsp"
 +
    }
 +
  }
 +
}</source>
 +
#*Create the namespace. The following example applies the '''create-gsp-namespace.json''' file to create the <code>gsp</code> namespace.
 +
#:<source lang="text">kubectl apply -f create-gsp-namespace.json</source>
 +
#*Confirm that the namespace was successfully created.
 +
#:<source lang="text">kubectl describe namespace gsp</source>
 +
#Create the pull secret for the image registry.
 +
#*This step defines a secret so that Kubernetes can authenticate your image repository and pull artifacts from it. The repository is represented as <code>docker-registry</code> in the system. For information about downloading artifacts from the repository, see {{Link-AnywhereElse|product=PrivateEdition|version=Current|manual=PEGuide|topic=ManageServices}}.
 +
#*When you configure the GSP, you will reference the registry pull secret as a Helm chart override; see {{Link-SomewhereInThisVersion|manual=GIMPEGuide|topic=ConfigureGSP|anchor=GSP_HelmCharts|display text=GSP Helm chart overrides}}.
 +
#:<source lang="text">kubectl create secret docker-registry <repository secret name> --docker-server=<repository> --docker-username=<username> --docker-password=<password/API key> --docker-email=<email id> -n gsp</source>
 +
#Create the Kafka secret.
 +
#*Kafka requires a separate access credential.
 +
#*This credential is represented as <code>kafka-secrets</code> in the system, as in the following syntax.
 +
#:<source lang="text">kubectl create secret generic kafka-secrets --from-literal=kafka-secrets={\"bootstrap\":\"<kafka-bootstrap-url>\", \"username\":\"gsp\",\"password\":\"<password>\"} -n gsp</source>
 +
#:For example:
 +
#:<source lang="text">kubectl create secret generic kafka-secrets --from-literal=kafka-secrets={\"bootstrap\":\"infra-kafka-cp-kafka.infra.svc.cluster.local:9092\",\"username\":\"gsp\",\"password\":\"kafka-password\"} -n gsp</source>
 +
#:Note: Kafka can be deployed without authentication, as in the following example.
 +
#:<source lang="text">kubectl create secret generic kafka-secrets --from-literal=kafka-secrets={\"bootstrap\":\"<kafka-bootstrap-url>\"} -n gsp</source>
  
{{Section
+
{{AnchorDiv|GSP_Env_AKS}}
|sectionHeading=Deploy in OpenShift
+
|Status=No
 +
}}{{Section
 +
|sectionHeading=Deploy the GSP
 +
|anchor=GSP_Deploy
 
|alignment=Vertical
 
|alignment=Vertical
|structuredtext=Execute the following command:
+
|structuredtext=After the environment has been set up, deploying the GSP is a matter of executing the following command:
<source lang="text">helm install gsp <gsp-helm-artifact> -f gsp-values.yaml -n gsp</source>
+
<source lang="text">helm install gsp <gsp-helm-artifact> -f <gsp-values.yaml> -n gsp</source>
 
|Status=No
 
|Status=No
 
}}{{Section
 
}}{{Section
|sectionHeading=Validate the deployment in OpenShift
+
|sectionHeading=Validate the deployment
 +
|anchor=Validate
 
|alignment=Vertical
 
|alignment=Vertical
|structuredtext={{Notices|Notice=PEComingSoon}}
+
|structuredtext=You can consider GSP deployment successful when the pod is running and in Ready state. Genesys Info Mart does not report the Ready state for pods until internal health checks are satisfied and the pods are operational. You can use standard <tt>kubectl</tt> commands like <tt>list</tt> and <tt>get</tt> to verify the successful deployment and readiness status of the Kubernetes objects.
 +
 
 +
However, from a functional point of view, you cannot validate GSP deployment unless GCA and GIM have been deployed as well. Do not expect consistent data until all three Genesys Info Mart services are up and running. When all three services have been deployed:
 +
 
 +
#Make a few test calls employing different routing strategies under different scenarios, and verify that all the calls are correctly captured in the Info Mart database. For example:
 +
#*The calls appear in the interaction-related tables.
 +
#*The calls have been correctly assigned to agents and queues.
 +
#Review the logs to verify no errors.
 +
#Monitor the operations dashboard to verify that the services report their status as Ready, and pods are not continually restarting.
 
|Status=No
 
|Status=No
 
}}
 
}}
 
|PEPageType=45d1441f-dc69-4a17-bd47-af5d811ce167
 
|PEPageType=45d1441f-dc69-4a17-bd47-af5d811ce167
 
}}
 
}}

Latest revision as of 13:31, March 10, 2023

This topic is part of the manual Genesys Info Mart Private Edition Guide for version Current of Reporting.

Learn how to deploy GIM Stream Processor (GSP) into a private edition environment.

Assumptions

  • The instructions on this page assume you are deploying the service in a service-specific namespace, named in accordance with the requirements on Creating namespaces. If you are using a single namespace for all private edition services, replace the namespace element in the commands on this page with the name of your single namespace or project.
  • Similarly, the configuration and environment setup instructions assume you need to create namespace-specific (in other words, service-specific) secrets. If you are using a single namespace for all private edition services, you might not need to create separate secrets for each service, depending on your credentials management requirements. However, if you do create service-specific secrets in a single namespace, be sure to avoid naming conflicts.
Important
Make sure to review Before you begin GSP deployment for the full list of prerequisites required to deploy GSP, including provisioning S3-compatible storage (see Before you begin GSP deployment).

Set up your environment

To prepare your environment for the deployment, complete the steps in this section. Use the instructions for your environment:

GKE environment setup

  1. Ensure that the gcloud CLI and required Helm version are installed on the host where you will run the deployment.
  2. Using the CLI, log in to the GKE cluster on the host where you will run the deployment.
    gcloud container clusters get-credentials <cluster>
  3. If the cluster administrator has not already done so, create a new namespace gsp for GSP.
    • Create a JSON file that specifies the namespace metadata. As an example, the file create-gsp-namespace.json. has the following JSON
    {
      "apiVersion": "v1",
      "kind": "Namespace",
      "metadata": {
        "name": "gsp",
        "labels": {
          "name": "gsp"
        }
      }
    }
    • Create the namespace. The following example applies the create-gsp-namespace.json file to create the gsp namespace.
    kubectl apply -f create-gsp-namespace.json
    • Confirm that the namespace was successfully created.
    kubectl describe namespace gsp
  4. Create the pull secret for the image registry.
    • This step defines a secret so that Kubernetes can authenticate your image repository and pull artifacts from it. The repository is represented as docker-registry in the system. For information about downloading artifacts from the repository, see Downloading your Genesys Multicloud CX containers.
    • When you configure the GSP, you will reference the registry pull secret as a Helm chart override; see GSP Helm chart overrides.
    kubectl create secret docker-registry <repository secret name> --docker-server=<repository> --docker-username=<username> --docker-password=<password/API key> --docker-email=<email id> -n gsp
  5. Create the Kafka secret.
    • Kafka requires a separate access credential.
    • This credential is represented as kafka-secrets in the system, as in the following syntax.
    kubectl create secret generic kafka-secrets --from-literal=kafka-secrets={\"bootstrap\":\"<kafka-bootstrap-url>\", \"username\":\"gsp\",\"password\":\"<password>\"} -n gsp
    For example:
    kubectl create secret generic kafka-secrets --from-literal=kafka-secrets={\"bootstrap\":\"infra-kafka-cp-kafka.infra.svc.cluster.local:9092\",\"username\":\"gsp\",\"password\":\"kafka-password\"} -n gsp
    Note: Kafka can be deployed without authentication, as in the following example.
    kubectl create secret generic kafka-secrets --from-literal=kafka-secrets={\"bootstrap\":\"<kafka-bootstrap-url>\"} -n gsp

AKS environment setup

  1. Ensure that the Azure CLI and required Helm version are installed on the host where you will run the deployment.
  2. Using the CLI, log in to the cluster on the host where you will run the deployment.
    az aks get-credentials --resource-group <resource-group-name> --name <cluster-name> --admin
  3. If the cluster administrator has not already done so, create a new namespace gsp for GSP.
    • Create a JSON file that specifies the namespace metadata. As an example, the file create-gsp-namespace.json has the JSON shown below.
    {
      "apiVersion": "v1",
      "kind": "Namespace",
      "metadata": 
        "name": "gsp",
        "labels": {
          "name": "gsp"
        }
      }
    }
    • Create the namespace. The following example applies the create-gsp-namespace.json file to create the gsp namespace.
    kubectl apply -f create-gsp-namespace.json
    • Confirm that the namespace was successfully created.
    kubectl describe namespace gsp
  4. Create the pull secret for the image registry.
    • This step defines a secret so that Kubernetes can authenticate your image repository and pull artifacts from it. The repository is represented as docker-registry in the system. For information about downloading artifacts from the repository, see Downloading your Genesys Multicloud CX containers.
    • When you configure the GSP, you will reference the registry pull secret as a Helm chart override; see GSP Helm chart overrides.
    kubectl create secret docker-registry <repository secret name> --docker-server=<repository> --docker-username=<username> --docker-password=<password/API key> --docker-email=<email id> -n gsp
  5. Create the Kafka secret.
    • Kafka requires a separate access credential.
    • This credential is represented as kafka-secrets in the system, as in the following syntax.
    kubectl create secret generic kafka-secrets --from-literal=kafka-secrets={\"bootstrap\":\"<kafka-bootstrap-url>\", \"username\":\"gsp\",\"password\":\"<password>\"} -n gsp
    For example:
    kubectl create secret generic kafka-secrets --from-literal=kafka-secrets={\"bootstrap\":\"infra-kafka-cp-kafka.infra.svc.cluster.local:9092\",\"username\":\"gsp\",\"password\":\"kafka-password\"} -n gsp
    Note: Kafka can be deployed without authentication, as in the following example.
    kubectl create secret generic kafka-secrets --from-literal=kafka-secrets={\"bootstrap\":\"<kafka-bootstrap-url>\"} -n gsp

Deploy the GSP

After the environment has been set up, deploying the GSP is a matter of executing the following command:

helm install gsp <gsp-helm-artifact> -f <gsp-values.yaml> -n gsp

Validate the deployment

You can consider GSP deployment successful when the pod is running and in Ready state. Genesys Info Mart does not report the Ready state for pods until internal health checks are satisfied and the pods are operational. You can use standard kubectl commands like list and get to verify the successful deployment and readiness status of the Kubernetes objects.

However, from a functional point of view, you cannot validate GSP deployment unless GCA and GIM have been deployed as well. Do not expect consistent data until all three Genesys Info Mart services are up and running. When all three services have been deployed:

  1. Make a few test calls employing different routing strategies under different scenarios, and verify that all the calls are correctly captured in the Info Mart database. For example:
    • The calls appear in the interaction-related tables.
    • The calls have been correctly assigned to agents and queues.
  2. Review the logs to verify no errors.
  3. Monitor the operations dashboard to verify that the services report their status as Ready, and pods are not continually restarting.
Comments or questions about this documentation? Contact us for support!