You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/apache.md
+28-36Lines changed: 28 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,32 @@
1
1
2
-
# Load Balancing with Apache Web Server
2
+
# Load balancing with the Apache HTTP Server
3
3
4
-
This page describes how to setup and start a Apache Web Server for load balancing inside a Kubernets cluster. The configuration and startup can either be automatic when you create a domain using the WebLogic Operator's `create-weblogic-domain.sh` script, or manually if you have an existing WebLogic domain configuration.
4
+
This document describes how to set up and start an Apache HTTP Server for load balancing inside a Kubernets cluster. The configuration and startup can be either automatic, when you create a domain using the WebLogic Operator's `create-weblogic-domain.sh` script, or manual, if you have an existing WebLogic domain configuration.
5
5
6
-
## Build Docker Image for Apache Web Server
6
+
## Build the Docker image for the Apache HTTP Server
7
7
8
-
You need to build the Docker image for Apache Web Server that enbeds Oracle WebLogic Server Proxy Plugin.
8
+
You need to build the Docker image for the Apache HTTP Server that embeds the Oracle WebLogic Server Proxy Plugin.
9
9
10
-
1. Download and build the Docker image for the Apache Web Server with 12.2.1.3.0 Oracle WebLogic Server Proxy Plugin. See the instructions in [Apache Web Server with Oracle WebLogic Server Proxy Plugin on Docker](https://github.com/oracle/docker-images/tree/master/OracleWebLogic/samples/12213-webtier-apache).
10
+
1. Download and build the Docker image for the Apache HTTP Server with the 12.2.1.3.0 Oracle WebLogic Server Proxy Plugin. See the instructions in [Apache HTTP Server with Oracle WebLogic Server Proxy Plugin on Docker](https://github.com/oracle/docker-images/tree/master/OracleWebLogic/samples/12213-webtier-apache).
11
11
12
-
2.tag your Docker image to `store/oracle/apache:12.2.1.3` using `docker tag` command.
12
+
2.Tag your Docker image, `store/oracle/apache:12.2.1.3`, using the`docker tag` command.
13
13
14
14
```
15
15
16
16
$ docker tag 12213-apache:latest store/oracle/apache:12.2.1.3
17
17
18
18
```
19
19
20
-
More information about the Apache plugin can be found at: [Apache Web Server with Oracle WebLogic Server Proxy Plugin on Docker](https://docs.oracle.com/middleware/1213/webtier/develop-plugin/apache.htm#PLGWL395).
20
+
For more information about the Apache plugin, see [Apache HTTP Server with Oracle WebLogic Server Proxy Plugin on Docker](https://docs.oracle.com/middleware/1213/webtier/develop-plugin/apache.htm#PLGWL395).
21
21
22
-
Once you have access to the Docker image of the Apache Web Server, you can go ahead follow the instructions below to setup and start Kubernetes artifacts for Apache Web Server.
22
+
After you have access to the Docker image of the Apache HTTP Server, you can follow the instructions below to set up and start the Kubernetes artifacts for the Apache HTTP Server.
23
23
24
24
25
-
## Use Apache load balancer with a WebLogic domain created with the WebLogic Operator
25
+
## Use the Apache load balancer with a WebLogic domain created with the WebLogic Operator
26
26
27
-
Please refer to [Creating a domain using the WebLogic Operator](creating-domain.md) for how to create a domain with the WebLogic Operator.
27
+
For how to create a domain with the WebLogic Operator, please refer to [Creating a domain using the WebLogic Operator](creating-domain.md).
28
28
29
-
You need to configure Apache Web Server as your load balancer for a WebLogic domain by setting the `loadBalancer` option to `APACHE` in `create-weblogic-domain-inputs.yaml` (as shown below) when running the `create-weblogic-domain.sh` script to create a domain.
29
+
You need to configure the Apache HTTP Server as your load balancer for a WebLogic domain by setting the `loadBalancer` option to `APACHE` in the `create-weblogic-domain-inputs.yaml` (as shown below) when running the `create-weblogic-domain.sh` script to create a domain.
30
30
31
31
```
32
32
@@ -36,9 +36,9 @@ loadBalancer: APACHE
36
36
37
37
```
38
38
39
-
The `create-weblogic-domain.sh` script installs the Apache Web Server with Oracle WebLogic Server Proxy Plugin into the Kubernetes *cluster* in the same namespace as the *domain*.
39
+
The `create-weblogic-domain.sh` script installs the Apache HTTP Server with the Oracle WebLogic Server Proxy Plugin into the Kubernetes *cluster* in the same namespace as the *domain*.
40
40
41
-
The Apache Web Server will expose a `NodePort` that allows access to the load balancer from outside of the Kubernetes cluster. The port is configured by setting 'loadBalancerWebPort' in `create-weblogic-domain-inputs.yaml` file.
41
+
The Apache HTTP Server will expose a `NodePort` that allows access to the load balancer from outside of the Kubernetes cluster. The port is configured by setting `loadBalancerWebPort` in the`create-weblogic-domain-inputs.yaml` file.
42
42
43
43
```
44
44
@@ -48,11 +48,11 @@ loadBalancerWebPort: 30305
48
48
49
49
```
50
50
51
-
The user can access an application from outside of the Kubernetes cluster via http://<host>:30305/<application-url>.
51
+
Users can access an application from outside of the Kubernetes cluster by using `http://<host>:30305/<application-url>`.
52
52
53
53
### Use the default plugin WL module configuration
54
54
55
-
By default, the Apache Docker image supports a simple WebLogic server proxy plugin configuration for a single WebLogic domain with an admin server and a cluster. The `create-weblogic-domain.sh` script automatically customizes the default behavior based on your domain configuration. The default setting only supports the type of load balancing that uses the root path ("/"). You can further customize the root path of the load balancer with `loadBalancerAppPrepath` property in the `create-weblogic-domain-inputs.yaml` file.
55
+
By default, the Apache Docker image supports a simple WebLogic Server proxy plugin configuration for a single WebLogic domain with an Administration Server and a cluster. The `create-weblogic-domain.sh` script automatically customizes the default behavior based on your domain configuration. The default setting supports only the type of load balancing that uses the root path ("/"). You can further customize the root path of the load balancer with the`loadBalancerAppPrepath` property in the `create-weblogic-domain-inputs.yaml` file.
The user can then access an application from utsidie of the Kubernetes cluster via `http://<host>:30305/weblogic/<application-url>,` and the admin can access the admin console via`http://<host>:30305/console`.
65
+
Users can then access an application from outside of the Kubernetes cluster by using `http://<host>:30305/weblogic/<application-url>,` and the administrator can access the Administration Console by using`http://<host>:30305/console`.
66
66
67
-
The generated Kubernetes yaml files look like the following given the domainUID "domain1".
67
+
The generated Kubernetes YAML files look like the following, given the `domainUID`, "`domain1`".
68
68
69
-
`weblogic-domain-apache.yaml` for Apache web server deployment
69
+
Sample `weblogic-domain-apache.yaml`file for Apache HTTP Server deployment.
70
70
71
71
```
72
72
@@ -254,7 +254,7 @@ spec:
254
254
255
255
```
256
256
257
-
`weblogic-domain-apache-security.yaml` for associated RBAC roles and role bindings
257
+
Sample `weblogic-domain-apache-security.yaml`file for associated RBAC roles and role bindings.
258
258
259
259
```
260
260
@@ -394,7 +394,7 @@ domain1-apache-webtier 2h
394
394
### Use your own plugin WL module configuration
395
395
396
396
397
-
You can fine tune the behavior of the Apache plugin by providing your own Apache plugin configuration. You put your custom_mod_wl_apache.conf file in a local directory, for example `<host-config-dir>` , and specify this location in the `create-weblogic-domain-inputs.yaml` file as follows.
397
+
You can fine tune the behavior of the Apache plugin by providing your own Apache plugin configuration. You put your `custom_mod_wl_apache.conf` file in a local directory, for example,`<host-config-dir>` , and specify this location in the `create-weblogic-domain-inputs.yaml` file as follows:
After the `loadBalancerVolumePath` property is specified, the `create-weblogic-domain.sh` script will use the custom_mod_wl_apache.config file in `<host-config-dir>` directory to replace what is in the Docker image.
409
+
After the `loadBalancerVolumePath` property is specified, the `create-weblogic-domain.sh` script will use the `custom_mod_wl_apache.config` file in the`<host-config-dir>` directory to replace what is in the Docker image.
410
410
411
-
The generated yaml files will look similar except with un-commented entries like bellow.
411
+
The generated YAML files will look similar except with un-commented entries like below:
412
412
413
413
```
414
414
@@ -418,7 +418,7 @@ The generated yaml files will look similar except with un-commented entries like
418
418
419
419
hostPath:
420
420
421
-
path: <host-config-dir>
421
+
path: <host-config-dir>
422
422
423
423
containers:
424
424
@@ -440,21 +440,13 @@ The generated yaml files will look similar except with un-commented entries like
440
440
441
441
## Use the Apache load balancer with a manually created WebLogic Domain
442
442
443
-
If your WebLogic domain is not created by the WebLogic Operator, you need to manually create and start all Kubernetes' artifacts for Apache Web Server.
444
-
445
-
446
-
1. Create your own custom_mod_wl_apache.conf file, and put it in a local dir, say `<host-conf-dir>`. See the instructions in [Apache Web Server with Oracle WebLogic Server Proxy Plugin on Docker](https://docs.oracle.com/middleware/1213/webtier/develop-plugin/apache.htm#PLGWL395).
447
-
448
-
2. Create the Apache deployment yaml file. See the example above. Note that you need to use the **volumes** and **volumeMounts** to mount `<host-config-dir>` in to `/config` directory inside the pod that runs Apache web tier. Note that the Apache Web Server needs to be in the same Kubernetes namespace as the WebLogic domains that it needs to access.
449
-
450
-
3. Create a RBAC yaml file. See the example above
451
-
452
-
Note that you can choose to run one Apache Web Server to load balance to multiple domains/clusters inside the same Kubernetes cluster as long as the Apache Web Server and the domains are all in the same namespace.
453
-
454
-
455
-
443
+
If your WebLogic domain is not created by the WebLogic Operator, you need to manually create and start all Kubernetes' artifacts for the Apache HTTP Server.
456
444
457
445
446
+
1. Create your own `custom_mod_wl_apache.conf` file, and put it in a local directory, for example, `<host-conf-dir>`. See the instructions in [Apache Web Server with Oracle WebLogic Server Proxy Plugin on Docker](https://docs.oracle.com/middleware/1213/webtier/develop-plugin/apache.htm#PLGWL395).
458
447
448
+
2. Create the Apache deployment YAML file. See the example above. Note that you need to use the **volumes** and **volumeMounts** to mount `<host-config-dir>` into the `/config` directory inside the pod that runs the Apache web tier. Note that the Apache HTTP Server needs to be in the same Kubernetes namespace as the WebLogic domain that it needs to access.
459
449
450
+
3. Create a RBAC YAML file. See the example above.
460
451
452
+
Note that you can choose to run one Apache HTTP Server to balance the loads from multiple domains/clusters inside the same Kubernetes cluster, as long as the Apache HTTP Server and the domains are all in the same namespace.
0 commit comments