(Update with the copy of version: 9.0.0DRAFT) |
(Update with the copy of version: 9.0.0DRAFT) |
||
Line 1: | Line 1: | ||
− | = | + | = Deployment procedure = |
− | + | == Prerequisites == | |
− | + | # Kubernetes cluster deployed and available. The following Kubernetes distributions are currently supported: | |
+ | #* Google Kubernetes Engine (GKE). | ||
+ | # Client-side utilities installed at deployment host: | ||
+ | #* [https://kubernetes.io/docs/tasks/tools/install-kubectl/ Kubectl] tool | ||
+ | #* [https://docs.helm.sh/using_helm/ Helm] client, Tiller is not required. | ||
+ | #* [https://cloud.google.com/sdk/docs/ gcloud] utility (for GKE deployments) | ||
+ | # Valid credentials for your Kubernetes cluster. | ||
+ | # The '''gws-microservices.tgz''' package downloaded from Genesys FTP to the deployment host. | ||
+ | # Images of GWS components uploaded into target Kubernetes registry. | ||
− | + | == Configuring GWS in Configuration Server == | |
− | |||
− | |||
− | + | <blockquote>Use Genesys Administrator to configure Applications and Users for Genesys Web Services and Applications. | |
− | # | + | </blockquote> |
− | # | + | # Configure (or use existing) super administrator account. It will be used by GWS to connect and perform read and write operations. |
− | + | # Create an application of type ''Genesys Generic Server''. Suggested name is '''''GWS'''''. | |
− | + | # For this application, add connections to Config Server, TServer (SIPServer), StatServer. In the '''Advanced''' tab of '''Connection''' in Application parameters, add the following locations, e.g. ''locations=/USW2'' - as configured in environment variable, ''GWS_REGION''. | |
− | # | + | # Create an application of type, ''Genesys Generic Client''. Suggested name is '''''GWS_app'''''. |
+ | # Add a connection to the Genesys Generic Server application created in ''Step 2''. | ||
− | + | == Deployment Steps == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | # Validate your Kubernetes credentials: | |
− | * | + | #* Follow the registration web-UI steps. and type <tt>gcloud container clusters list</tt> command to see all GKE clusters available to you, if any. |
− | + | <ol start="2" style="list-style-type: decimal;"> | |
− | + | <li> <p>Unpack the ''gws-microservices''.tgz file with the following command:<br /> | |
− | + | <tt>tar -zxf ''gws-microservices''.tgz</tt></p></li></ol> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | + | <ol start="3" style="list-style-type: decimal;"> |
− | </ | + | <li><p>Go to the '''kubernetes''' directory:<br /> |
+ | <tt>cd gws-microservices/kubernetes</tt> | ||
+ | </p></li></ol> | ||
− | + | <ol start="4" style="list-style-type: decimal;"> | |
− | </ | + | <li><p>Modify the '''''<ToBeChanged: …''>''' values defined in the '''conf/gke.env''' file with the actual values required by deployment.</p></li> |
− | < | + | <li><p>Apply the modified configuration file to the current bash session:<br /> |
+ | <tt>source conf/gke.env</tt> | ||
+ | </p></li></ol> | ||
+ | <ol start="6" style="list-style-type: decimal;"> | ||
+ | <li><p>Deploy the monitoring stack using '''gws-monitoring-deploy.sh''' script'''.''' The script will deploy Prometheus and Grafana solutions at your Kubernetes cluster.</p></li> | ||
+ | <li><p>Deploy GWS infrastructure using '''gws-infra-deploy.sh''' script'''.''' The script will deploy GWS dependency servers - ElasticSearch, Redis, Consul, etc., at your Kubernetes cluster.</p></li> | ||
+ | <li><p>Deploy GWS microservices using '''gws-app-deploy.sh''' script.</p></li> | ||
+ | <li><p>Initialize GWS using '''gws-postinstall.sh''' script. The script uses GWS REST API to provision environment, contact center, and authentication client.</p></li></ol> | ||
− | + | == Upgrade Procedure == | |
− | = | + | <ol style="list-style-type: decimal;"> |
− | + | <li><p>Download new version of '''gws-microservices.tgz''' package from Genesys FTP to the deployment host.</p></li> | |
− | < | + | <li><p>Unpack the ''gws-microservices''.tgz file with the following command:<br /> |
− | + | <tt> tar -zxf gws-microservices.tgz</tt> | |
− | ./gws- | + | </p></li> |
− | </ | + | <li><p>Go to the '''kubernetes''' directory:<br /> |
− | + | <tt>cd gws-microservices/kubernetes</tt></p></li> | |
− | + | <li><p>Modify the '''<ToBeChanged: …>''' values defined in the '''conf/gke.env''' file with the actual values required by deployment. Refer to the file used in deployment.</p></li> | |
− | < | + | <li><p>Apply the modified configuration file to the current bash session:<br /> |
− | + | <tt>source conf/gke.env</tt></p></li> | |
− | + | <li><p>Upgrade GWS microservices using '''gws-app-deploy.sh''' script.</p></li></ol> | |
− | </ | ||
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | |||
− | </ | ||
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | </ | ||
− | |||
− | |||
[[Category:V:HTCC:9.0.0]] | [[Category:V:HTCC:9.0.0]] |
Revision as of 06:26, November 29, 2018
Contents
Deployment procedure
Prerequisites
- Kubernetes cluster deployed and available. The following Kubernetes distributions are currently supported:
- Google Kubernetes Engine (GKE).
- Client-side utilities installed at deployment host:
- Valid credentials for your Kubernetes cluster.
- The gws-microservices.tgz package downloaded from Genesys FTP to the deployment host.
- Images of GWS components uploaded into target Kubernetes registry.
Configuring GWS in Configuration Server
Use Genesys Administrator to configure Applications and Users for Genesys Web Services and Applications.
- Configure (or use existing) super administrator account. It will be used by GWS to connect and perform read and write operations.
- Create an application of type Genesys Generic Server. Suggested name is GWS.
- For this application, add connections to Config Server, TServer (SIPServer), StatServer. In the Advanced tab of Connection in Application parameters, add the following locations, e.g. locations=/USW2 - as configured in environment variable, GWS_REGION.
- Create an application of type, Genesys Generic Client. Suggested name is GWS_app.
- Add a connection to the Genesys Generic Server application created in Step 2.
Deployment Steps
- Validate your Kubernetes credentials:
- Follow the registration web-UI steps. and type gcloud container clusters list command to see all GKE clusters available to you, if any.
-
Unpack the gws-microservices.tgz file with the following command:
tar -zxf gws-microservices.tgz
Go to the kubernetes directory:
cd gws-microservices/kubernetes
Modify the <ToBeChanged: …> values defined in the conf/gke.env file with the actual values required by deployment.
Apply the modified configuration file to the current bash session:
source conf/gke.env
Deploy the monitoring stack using gws-monitoring-deploy.sh script. The script will deploy Prometheus and Grafana solutions at your Kubernetes cluster.
Deploy GWS infrastructure using gws-infra-deploy.sh script. The script will deploy GWS dependency servers - ElasticSearch, Redis, Consul, etc., at your Kubernetes cluster.
Deploy GWS microservices using gws-app-deploy.sh script.
Initialize GWS using gws-postinstall.sh script. The script uses GWS REST API to provision environment, contact center, and authentication client.
Upgrade Procedure
Download new version of gws-microservices.tgz package from Genesys FTP to the deployment host.
Unpack the gws-microservices.tgz file with the following command:
tar -zxf gws-microservices.tgzGo to the kubernetes directory:
cd gws-microservices/kubernetesModify the <ToBeChanged: …> values defined in the conf/gke.env file with the actual values required by deployment. Refer to the file used in deployment.
Apply the modified configuration file to the current bash session:
source conf/gke.envUpgrade GWS microservices using gws-app-deploy.sh script.