diff --git a/doc-content/enterprise-only/openshift/operator-deploy-basic-proc.adoc b/doc-content/enterprise-only/openshift/operator-deploy-basic-proc.adoc index 4245d2011c..e8df5ab1b0 100644 --- a/doc-content/enterprise-only/openshift/operator-deploy-basic-proc.adoc +++ b/doc-content/enterprise-only/openshift/operator-deploy-basic-proc.adoc @@ -37,7 +37,7 @@ endif::DM[] + You cannot remove any service from the pod or add any new service to the pod. If you want to use another version of a service or to modify the configuration in any other way, deploy a new server image to replace the old one. You can use any container-based integration workflows to manage the pods. + -When configuring this environment, in the *KIE Servers* tab you must customize the {KIE_SERVER} and click the *Set immutable server configuration* button. For instructions about configuring the {KIE_SERVER}, see xref:operator-deploy-kieserver-proc_{context}[]. +When configuring this environment, in the *KIE Servers* tab you must customize the {KIE_SERVER} and either click the *Set immutable server configuration* button or set the `KIE_SERVER_CONTAINER_DEPLOYMENT` environment variable. For instructions about configuring the {KIE_SERVER}, see xref:operator-deploy-kieserver-proc_{context}[]. ifdef::PAM[] + Optionally, you can also use the *Console* tab to include {CENTRAL} Monitoring in this environment to monitor, stop, and restart the execution of process services. For instructions about configuring {CENTRAL} Monitoring, see xref:operator-deploy-central-proc_{context}[]. diff --git a/doc-content/enterprise-only/openshift/operator-deploy-kieserver-proc.adoc b/doc-content/enterprise-only/openshift/operator-deploy-kieserver-proc.adoc index d4b4c5a7d0..a813fdb7e9 100644 --- a/doc-content/enterprise-only/openshift/operator-deploy-kieserver-proc.adoc +++ b/doc-content/enterprise-only/openshift/operator-deploy-kieserver-proc.adoc @@ -26,23 +26,23 @@ Optionally, you can set custom configuration for {KIE_SERVERS}. In this case, de + For instructions about creating custom images, see xref:customimage-con_{context}[]. + -. If you want to configure an immutable {KIE_SERVER}, complete the following additional steps: +. If you want to configure an immutable {KIE_SERVER} using a Source to Image (S2I) build, complete the following additional steps: ++ +[IMPORTANT] +==== +If you want to configure an immutable {KIE_SERVER} that pulls services from the Maven repository, do not click *Set Immutable server configuration* and do not complete these steps. Instead, set the `KIE_SERVER_CONTAINER_REPLOYMENT` environment variable. +==== ++ .. Click *Set Immutable server configuration*. -.. In the *KIE Server container deployment* field, enter the identifying information of the services (KJAR files) that the deployment must pull from the Maven repository or from the result of a Source to Image (S2I) build. The format is `=::` or, if you want to specify an alias name for the container, `()=::`. You can provide two or more KJAR files using the `|` separator, as illustrated in the following example: `containerId=groupId:artifactId:version|c2(alias2)=g2:a2:v2`. +.. In the *KIE Server container deployment* field, enter the identifying information of the services (KJAR files) that the deployment must extract from the result of a Source to Image (S2I) build. The format is `=::` or, if you want to specify an alias name for the container, `()=::`. You can provide two or more KJAR files using the `|` separator, as illustrated in the following example: `containerId=groupId:artifactId:version|c2(alias2)=g2:a2:v2`. .. If your OpenShift environment does not have a connection to the public Internet, enter the URL of the Maven mirror that you set up according to <> in the *Maven mirror URL* field. .. If you want to use an S2I build, the *Artifact directory* field, enter the path within the project that contains the required binary files (KJAR files and any other necessary files) after a successful Maven build. Normally this directory is the target directory of the build. However, you can provide prebuilt binaries in this directory in the Git repository. .. If you want to use a custom base {KIE_SERVER} image for the S2I build, click *Set Base build image* and then enter the name of the image stream in the *Name* field. If the image stream is not in the `openshift` namespace, enter the namespace in the *Namespace* field. If you want to use a Docker image name and not an OpenShift image stream tag, change the *Kind* value to `DockerImage`. -.. If you want to create the immutable server from source in a Git repository using the Source to Image (S2I) process, click the *Set Git source* button and enter information in the following fields: +.. Click *Set Git source* and enter information in the following fields: *** *S2I Git URI*:The URI for the Git repository that contains the source for your services. *** *Reference*: The branch in the Git repository. *** *Context directory*: (Optional) The path to the source within the project downloaded from the Git repository. By default, the root directory of the downloaded project is the source directory. -+ -[NOTE] -==== -If you do not configure a Git source, the immutable {KIE_SERVER} does not use an S2I build. Instead, it pulls the artifacts that you define in the *KIE Server container deployment* field from the configured Maven repository. -==== -+ -.. If you are using S2I and want to set a Git Webhook so that changes in the Git repository cause an automatic rebuild of the {KIE_SERVER}, click *Add new Webhook*. Then select the type of the Webhook in the *Type* field and enter the secret string for the Webhook in the *Secret* field. +.. If you want to set a Git Webhook so changes in the Git repository cause an automatic rebuild of the {KIE_SERVER}, click *Add new Webhook*. Select the type of the Webhook from the *Type* list and enter the secret string for the Webhook in the *Secret* field. . Optionally, enter requested and maximum CPU and memory limits in the fields under *Resource quotas*. If you are configuring several {KIE_SERVERS}, the limits apply to each server separately. . If you selected RH-SSO authentication, configure RH-SSO for the {KIE_SERVER}: .. Enter the client name in the *Client name* field and the client secret in the *Client secret* field. If a client with this name does not exist, the deployment attempts to create a new client with this name and secret. @@ -112,8 +112,10 @@ If you are using a MySQL version 8 image provided by Red Hat on {OPENSHIFT}, to If you created users on the MySQL version 8 server before enabling the `mysql_native_password` plugin, you must update the `mysql-user` table after you enable the plugin. endif::PAM[] . Optionally, depending on your needs, set environment variables. To set an environment variable, click *Add new Environment variable*, then enter the name and value for the variable in the *Name* and *Value* fields. -** If you want to configure your {KIE_SERVER} deployment to use Prometheus to collect and store metrics, set the `PROMETHEUS_SERVER_EXT_DISABLED` environment variable to `false`. For instructions about configuring Prometheus metrics collection, see {URL_MANAGING_SETTINGS}#prometheus-monitoring-ocp-proc_execution-server[_{MANAGING_KIE_SERVER}_]. -** If you want to use an external Maven repository, set the following variables: +** If you want to configure an immutable KIE server that pulls services from the configured Maven repository, enter the following settings: +... Set the `KIE_SERVER_CONTAINER_DEPLOYMENT` environment variable. The variable must contain the identifying information of the services (KJAR files) that the deployment must pull from the Maven repository. The format is `=::` or, if you want to specify an alias name for the container, `()=::`. You can provide two or more KJAR files using the `|` separator, as illustrated in the following example: `containerId=groupId:artifactId:version|c2(alias2)=g2:a2:v2`. +... Configure an external Maven repository. +** If you want to configure an external Maven repository, set the following variables: *** `MAVEN_REPO_URL`: The URL for the Maven repository *** `MAVEN_REPO_ID`: An identifier for the Maven repository, for example, `repo-custom` *** `MAVEN_REPO_USERNAME`: The user name for the Maven repository @@ -126,6 +128,7 @@ If you configure an external Maven repository (`MAVEN_REPO_URL`), change `MAVEN_ + If your authoring environment uses a built-in {CENTRAL} Maven repository, change `MAVEN_MIRROR_OF` to exclude the artifacts in this repository from the mirror: `external:*,!repo-{PRODUCT_INIT}centr`. + +** If you want to configure your {KIE_SERVER} deployment to use Prometheus to collect and store metrics, set the `PROMETHEUS_SERVER_EXT_DISABLED` environment variable to `false`. For instructions about configuring Prometheus metrics collection, see {URL_MANAGING_SETTINGS}#prometheus-monitoring-ocp-proc_execution-server[_{MANAGING_KIE_SERVER}_]. ** In some authoring environments, you might need to ensure that several users can deploy services on the same {KIE_SERVER} at the same time. By default, after deploying a service onto a {KIE_SERVER} using {CENTRAL}, the user needs to wait for some seconds before more services can be deployed. The `OpenShiftStartupStrategy` setting is enabled by default and causes this limitation. To remove the limitation, you can configure an `{PRODUCT_INIT}-authoring` environment to use the _controller strategy_. Do not make this change unless a specific need for it exists; if you decide to enable controller strategy, make this change on {CENTRAL} and on all {KIE_SERVERS} in the same environment. + [NOTE]