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
bash-4.2$ kubectl get clusterrolebindings |grep apache
389
-
390
231
domain1-apache-webtier 2h
391
-
392
232
```
393
233
394
-
395
234
It is sometimes, but rarely, desirable to expose a WebLogic Administration Server host and port through a load balancer to a public network. If this is needed, you can customize the exposure of the WebLogic Administration Server host and port by using the `loadBalancerExposeAdminPort` property in the `create-weblogic-domain-inputs.yaml` file.
396
235
397
236
```
398
-
399
237
# Boolean to indicate if the admin port is going to be exposed via APACHE load balancer. By default, it is false.
400
238
loadBalancerExposeAdminPort: false
401
239
```
@@ -404,56 +242,36 @@ If the domain is created with the `loadBalancerExposeAdminPort` set to `true`, a
404
242
405
243
### Use your own plugin WL module configuration
406
244
407
-
408
245
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:
409
246
410
247
```
411
-
412
248
# Docker volume path for APACHE
413
-
414
249
# By default, the VolumePath is empty, which will cause the volume mount be disabled
415
-
416
250
loadBalancerVolumePath: <host-config-dir>
417
-
418
251
```
419
252
420
253
After the `loadBalancerVolumePath` property is specified, the `create-weblogic-domain.sh` script will use the `custom_mod_wl_apache.conf` file in `<host-config-dir>` directory to replace what is in the Docker image.
421
254
422
255
The generated YAML files will look similar except with un-commented entries like below:
423
256
424
257
```
425
-
426
258
volumes:
427
-
428
259
- name: "domain1-apache-webtier"
429
-
430
260
hostPath:
431
-
432
261
path: <host-config-dir>
433
-
434
262
containers:
435
-
436
263
- name: domain1-apache-webtier
437
-
438
264
image: store/oracle/apache:12.2.1.3
439
-
440
265
imagePullPolicy: Never
441
-
442
266
volumeMounts:
443
-
444
267
- name: "domain1-apache-webtier"
445
-
446
268
mountPath: "/config"
447
-
448
269
```
449
270
450
-
451
-
452
271
## Use the Apache load balancer with a manually created WebLogic Domain
453
272
454
273
If your WebLogic domain is not created by the WebLogic Operator, you need to manually create and start all Kubernetes' resources for the Apache HTTP Server.
455
274
456
-
457
275
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
276
459
277
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.
0 commit comments