Difference between revisions of "UCS/Current/UCSPEGuide/Configure"

From Genesys Documentation
Jump to: navigation, search
(Published)
(Published)
Line 5: Line 5:
 
|ComingSoon=No
 
|ComingSoon=No
 
|Section={{Section
 
|Section={{Section
 +
|sectionHeading=Configure a secret to access JFrog
 +
|anchor=jfrog-secrets
 +
|alignment=Vertical
 +
|structuredtext=If you haven't done so already, create a secret for accessing the JFrog registry:<source lang="text">kubectl create secret docker-registry <credential-name> --docker-server=<docker repo> --docker-username=<username> --docker-password=<password> --docker-email=<emailid></source>Now map the secret to the default service account:<source lang="text">kubectl secrets link default <credential-name> --for=pull</source>
 +
|Status=No
 +
}}{{Section
 
|sectionHeading=Override Helm chart values
 
|sectionHeading=Override Helm chart values
 
|alignment=Vertical
 
|alignment=Vertical
Line 59: Line 65:
 
*UCS requires stickiness for some scenarios (from GWS/WWE). You can enable this on the Service level or create ingress rules  to enable and configure them.
 
*UCS requires stickiness for some scenarios (from GWS/WWE). You can enable this on the Service level or create ingress rules  to enable and configure them.
 
*The Ingress configuration requires the sticky sessions. You can enable this on the Service level or create ingress rules  to enable and configure them. The cookie name should be set to ''UCS_SESSIONID''.
 
*The Ingress configuration requires the sticky sessions. You can enable this on the Service level or create ingress rules  to enable and configure them. The cookie name should be set to ''UCS_SESSIONID''.
 +
 +
If you want to use arbitrary UIDs in your OpenShift deployment, you must override the '''securityContext''' settings in the '''values.yaml''' file, so that no user or group IDs are specified. For details, see {{Link-AnywhereElse|product=PrivateEdition|version=Current|manual=PEGuide|topic=ConfigSecurity}}.
 
|Status=No
 
|Status=No
 
}}{{Section
 
}}{{Section
Line 98: Line 106:
 
|alignment=Vertical
 
|alignment=Vertical
 
|structuredtext=Universal Contact Service (UCS) requires '''clientId''' and '''clientSecret''' registered in the Auth Service. These have to be provided during helmchart deployment.
 
|structuredtext=Universal Contact Service (UCS) requires '''clientId''' and '''clientSecret''' registered in the Auth Service. These have to be provided during helmchart deployment.
 +
===Arbitrary UIDs in OpenShift===
 +
If you want to use arbitrary UIDs in your OpenShift deployment, you must override the '''securityContext''' settings, so that you do not define any specific IDs.<source lang="yaml">
 +
securityContext:
 +
  runAsNonRoot: true
 +
  runAsUser: null
 +
  runAsGroup: 0
 +
  fsGroup: null
 +
 +
containerSecurityContext: {}
 +
</source>
 +
|Status=No
 +
}}{{Section
 +
|alignment=Vertical
 
|Status=No
 
|Status=No
 
}}
 
}}
 
|PEPageType=9c3ae89b-4f75-495b-85f8-d8c4afcb3f97
 
|PEPageType=9c3ae89b-4f75-495b-85f8-d8c4afcb3f97
 
}}
 
}}

Revision as of 03:41, December 23, 2021

Learn how to configure Universal Contact Service (UCS).

Configure a secret to access JFrog

If you haven't done so already, create a secret for accessing the JFrog registry:
kubectl create secret docker-registry <credential-name> --docker-server=<docker repo> --docker-username=<username> --docker-password=<password> --docker-email=<emailid>
Now map the secret to the default service account:
kubectl secrets link default <credential-name> --for=pull

Override Helm chart values

Create a file named values.yaml and set the following values depending on your environment.

  • Set the number of running PODs:
replicaCount: 2
  • Set the repository for the images:
image:
  registry: base address of UCS image in artifactory.
  repository: ucsx/ucsx  
  pullPolicy: IfNotPresent
  pullSecrets: if needed, set to the appropriate value for your environment.
elasticsearch:
  url: Set URL to the ElasticSearch for data
  • Set the Authentication service information
gauth:
  auth:
    url: URL to Genesys Auth service
  env:
    url: URL to GWS Environment service
  • Set the memory and CPU limits to the values required for your deployment:
resources:
  requests:
    memory: "500Mi"
    cpu: "300m"
  limits:
    memory: "1000Mi"
    cpu: "2000m"
  • Modify the DNS Configuration to match your environment:
dnsConfig:
  options:
    - name: ndots
      value: "3"
  • UCS requires stickiness for some scenarios (from GWS/WWE). You can enable this on the Service level or create ingress rules to enable and configure them.
  • The Ingress configuration requires the sticky sessions. You can enable this on the Service level or create ingress rules to enable and configure them. The cookie name should be set to UCS_SESSIONID.

If you want to use arbitrary UIDs in your OpenShift deployment, you must override the securityContext settings in the values.yaml file, so that no user or group IDs are specified. For details, see OpenShift security settings.

Configure Kubernetes

Create a Kubernetes ConfigMap named ucsx-config and save the database parameters under the following keys:

  • CMX_MASTER_DB_HOST - the FQDN of the host where PostgresDB server is running
  • CMX_MASTER_DB_NAME - the database name
  • CMX_MASTER_DB_PORT - The port number of the PostgresDB server
  • CMX_MASTER_DB_USER - the database user

Create a Kubernetes Secret named ucsx-secret and save the following secrets under the following keys:

  • CMX_MASTER_DB_PASSWORD - the password for the database user to access the database
  • CMX_GWS_SERVICE_CREDENTIALS_CLIENT_ID - the Client ID for GWS Auth
  • CMX_GWS_SERVICE_CREDENTIALS_CLIENT_SECRET - the Client Secret for GWS Auth

The ConfigMap and Secret can also be created automatically from Helm Chart if the following values are empty:

  • existingSecret - to create the Secret
  • existingConfig - to create the ConfigMap

The following values will be added to the Secret:

  • db.password
  • gauth.auth.clientId
  • gauth.auth.clientSecret

The following values will be added to the ConfigMap:

  • db.host
  • db.name
  • db.port
  • db.user

Configure security

Universal Contact Service (UCS) requires clientId and clientSecret registered in the Auth Service. These have to be provided during helmchart deployment.

Arbitrary UIDs in OpenShift

If you want to use arbitrary UIDs in your OpenShift deployment, you must override the securityContext settings, so that you do not define any specific IDs.
securityContext:
  runAsNonRoot: true
  runAsUser: null
  runAsGroup: 0
  fsGroup: null

containerSecurityContext: {}


Retrieved from "https://all.docs.genesys.com/UCS/Current/UCSPEGuide/Configure (2025-06-19 21:04:49)"
Comments or questions about this documentation? Contact us for support!