Configuration Parameters for the WebLogic Kubernetes Operator Add-on

The following configuration parameters are available for the WebLogic Kubernetes Operator cluster add-on.

Note

For weblogic-operator container resources and weblogic-operator-webhook container resources, if you set a limit without specifying a request, and the limit is less than the default request, the deployment fails.

Use the values of the weblogic-operator container resources parameter and the weblogic-operator-webhook container resources parameter to determine the maximum number of replicas you can specify. The values of these parameters could be the default values shown in the following table or different values that you requested when you enabled the WebLogic Kubernetes Operator.

Example:

A worker node with 6 Gb RAM and 2 OCPUs could accommodate 12 pods if you don't count other cluster-related or custom pods. Each WebLogic Server pod could require 250m/768Mi (cpu/memory), and Flannel Overlay pods could require 100m/50Mi. Best practice is not to exceed 70% of CPU/memory usage per node. Considering only weblogic-operator pods, 8 would be ideal to leave room for system daemons or fluctuating workloads.

Because you also must allocate weblogic-operator-webhook pods, it would be better to schedule a maximum of 6 replicas per weblogic-operator pod per node, leaving room for a maximum of 8 weblogic-operator-webhook pods,

In this example (a worker node with 6 Gb RAM and 2 OCPUs), 6 replicas per node (12 for a 2 worker node cluster) is the best configuration.

This calculation of maximum number of replicas varies for each case, depending on the WebLogic requirements, the size of the node pools, and the shape configuration (CPU and memory) for each node pool.

Parameter Name

Console

CLI

Description

numOfReplicas

numOfReplicas

(Required) The integer number of replicas of the add-on deployment.

weblogic-operator container resources

weblogic-operator.ContainerResources

(Optional) These are resource values for the main WebLogic Operator container. The resource quantities that the add-on containers request, and the resource usage limits that the add-on containers cannot exceed. See Resource Management for Pods and Containers in the Kubernetes documentation.

If you do not specify a request, the default request values are:

  • cpu: 250m

  • memory: 512Mi

If you set a usage limit, you must set a limit equal to or greater than these default resource request values or the request values that you specified.

weblogic-operator-webhook container resources

weblogic-operator-webhook.ContainerResources

(Optional) These are resource values for the webhook container used by the operator. The resource quantities that the add-on containers request, and the resource usage limits that the add-on containers cannot exceed.

If you do not specify a request, the default request values are:

  • cpu: 100m

  • memory: 100Mi

If you set a usage limit, you must set a limit equal to or greater than these default resource request values or the request values that you specified.