Chapter 7. JWS Operator CRD parameters
The JWS Operator provides a set of custom resource definition (CRD) parameters. When you create a custom resource WebServer
file for a web application, you can specify parameter values in a <key>: <value>
format. The JWS Operator uses the information that you specify in the custom resource WebServer
file to deploy the web application.
7.1. CRD parameter hierarchy
The JWS Operator provides CRD parameters in the following hierarchical format:
applicationName: <value> replicas: <value> useSessionClustering: <value> webImage: applicationImage: <value> imagePullSecret: <value> webApp: name: <value> sourceRepositoryURL: <value> sourceRepositoryRef: <value> contextDir: <value> webAppWarImage: <value> webAppWarImagePushSecret: <value> builder: image: <value> imagePullSecret: <value> applicationBuildScript: <value> webServerHealthCheck: serverReadinessScript: <value> serverLivenessScript: <value> webImageStream: imageStreamName: <value> imageStreamNamespace: <value> webSources: sourceRepositoryUrl: <value> sourceRepositoryRef: <value> contextDir: <value> webSourcesParams: mavenMirrorUrl: <value> artifactDir: <value> genericWebHookSecret: <value> githubWebHookSecret: <value> webServerHealthCheck: serverReadinessScript: <value> serverLivenessScript: <value>
When you create a custom resource WebServer
file, specify parameter names and values in the same hierarchical format that the preceding example outlines. For more information about creating a custom resource WebServer
file, see Deploying an existing JWS image.
7.2. CRD parameter details
The following table describes the CRD parameters that the JWS Operator provides. This table shows each parameter name in the context of any higher-level parameters that are above it in the hierarchy.
Parameter name | Description |
---|---|
| The number of pods of the JBoss Web Server image that you want to run
For example: |
| The name of the web application that you want the JWS Operator to deploy The application name must be a unique value in the OpenShift namespace or project. The JWS Operator uses the application name that you specify to create the route to access the web application.
For example: |
| Enables DNSping session clustering
This is set to Note
In this release, the session clustering functionality is available as a Technology Preview feature only. The current Operator version uses the
For example: |
| A set of parameters that controls how the JWS Operator deploys pods from existing images
This parameter contains |
| The full path to the name of the application image that you want to deploy
For example: |
| The name of the secret that the JWS Operator uses to pull images from the repository
The secret must contain the key
The
For example: |
| A set of parameters that describe how the JWS Operator builds the web application that you want to add to the application image
If you do not specify the
This parameter contains |
| The name of the web application file
The default name is
For example: |
| The URL where the application source files are located
The source should contain a Maven
For example: |
| The branch of the source repository that the JWS Operator uses
For example: |
|
The subdirectory in the source repository where the
For example: |
| The URL of the images where the JWS Operator pushes the built image |
| The name of the secret that the JWS Operator uses to push images to the repository
The secret must contain the key
If the JWS Operator uses a pull secret to pull images from the repository, you must specify the name of the pull secret as the value for the
For example: |
| A set of parameters that describe how the JWS Operator builds the web application and creates and pushes the image to the image repository Note
To ensure that the builder can operate successfully and run commands with different user IDs, the builder must have access to the
This parameter contains |
| The image of the container where the JWS Operator builds the web application
For example: |
| The name of the secret (if specified) that the JWS Operator uses to pull the builder image from the repository
The secret must contain the key
The
For example: |
|
The script that the builder image uses to build the application If you do not specify a value for this parameter, the builder image uses a default script that uses Maven and Buildah. |
| The health check that the JWS Operator uses The default behavior is to use the health valve, which does not require any parameters.
This parameter contains |
| A string that specifies the logic for the pod readiness health check
If this parameter is not specified, the JWS Operator uses the default health check by using the OpenShift internal registry to check
For example: |
| A string that specifies the logic for the pod liveness health check This parameter is optional. |
| A set of parameters that control how the JWS Operator uses an image stream that provides images to run or to build upon The JWS Operator uses the latest image in the image stream.
This parameter contains |
| The name of the image stream that you have created to allow the JWS Operator to find the base images
For example: |
| The namespace or project where you have created the image stream
For example: |
| A set of parameters that describe where the application source files are located and how to build them
If you do not specify the
This parameter contains |
| The URL where the application source files are located
The source should contain a Maven
For example: |
| The branch of the source repository that the JWS Operator uses
For example: |
|
The subdirectory in the source repository where the
For example: |
| A set of parameters that describe how to build the application images This parameter is optional.
This parameter contains |
| The Maven proxy URL that Maven uses to build the web application This parameter is required if the cluster does not have internet access. |
|
The directory where Maven stores the
The contents of this directory are copied to the
The default value is |
| The name of a secret for a generic webhook that can trigger a build For more information about creating a secret, see Creating a secret for a generic or GitHub webhook. For more information about using generic webhooks, see Webhook Triggers.
For example: |
| The name of a secret for a GitHub webhook that can trigger a build For more information about creating a secret, see Creating a secret for a generic or GitHub webhook. For more information about using GitHub webhooks, see Webhook Triggers. Note You cannot perform manual tests of a GitHub webhook. GitHub generates the payload and it is not empty. |
| The health check that the JWS Operator uses The default behavior is to use the health valve, which does not require any parameters.
This parameter contains |
| A string that specifies the logic for the pod readiness health check
If this parameter is not specified, the JWS Operator uses the default health check by using the OpenShift internal registry to check
For example: |
| A string that specifies the logic for the pod liveness health check This parameter is optional. |