Skip to content

Commit 41a2bcd

Browse files
committed
more link updates and add 1.1 model schema
1 parent dc4150b commit 41a2bcd

22 files changed

+541
-208
lines changed

site/v1.0/developer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ To build the Javadoc for the operator, issue the following command:
6565
mvn javadoc:javadoc
6666
```
6767

68-
The Javadoc is also available in the GitHub repository [here](https://oracle.github.io/weblogic-kubernetes-operator/apidocs/index.html).
68+
The Javadoc is also available in the GitHub repository [here](https://oracle.github.io/weblogic-kubernetes-operator/v1.0/apidocs/index.html).
6969

7070
## Running integration tests
7171

site/v1.1/apache.md

Lines changed: 0 additions & 182 deletions
Original file line numberDiff line numberDiff line change
@@ -70,332 +70,170 @@ The generated Kubernetes YAML files look like the following, given the `domainUI
7070
Sample `weblogic-domain-apache.yaml` file for Apache HTTP Server deployment.
7171

7272
```
73-
7473
--
75-
7674
apiVersion: v1
77-
7875
kind: ServiceAccount
79-
8076
metadata:
81-
8277
name: domain1-apache-webtier
83-
8478
namespace: default
85-
8679
labels:
87-
8880
weblogic.domainUID: domain1
89-
9081
weblogic.domainName: base_domain
91-
9282
app: apache-webtier
93-
9483
---
95-
9684
kind: Deployment
97-
9885
apiVersion: extensions/v1beta1
99-
10086
metadata:
101-
10287
name: domain1-apache-webtier
103-
10488
namespace: default
105-
10689
labels:
107-
10890
weblogic.domainUID: domain1
109-
11091
weblogic.domainName: base_domain
111-
11292
app: apache-webtier
113-
11493
spec:
115-
11694
replicas: 1
117-
11895
selector:
119-
12096
matchLabels:
121-
12297
weblogic.domainUID: domain1
123-
12498
weblogic.domainName: base_domain
125-
12699
app: apache-webtier
127-
128100
template:
129-
130101
metadata:
131-
132102
labels:
133-
134103
weblogic.domainUID: domain1
135-
136104
weblogic.domainName: base_domain
137-
138105
app: apache-webtier
139-
140106
spec:
141-
142107
serviceAccountName: domain1-apache-webtier
143-
144108
terminationGracePeriodSeconds: 60
145-
146109
# volumes:
147-
148110
# - name: "domain1-apache-webtier"
149-
150111
# hostPath:
151-
152112
# path: %LOAD_BALANCER_VOLUME_PATH%
153-
154113
containers:
155-
156114
- name: domain1-apache-webtier
157-
158115
image: store/oracle/apache:12.2.1.3
159-
160116
imagePullPolicy: Never
161-
162117
# volumeMounts:
163-
164118
# - name: "domain1-apache-webtier"
165-
166119
# mountPath: "/config"
167-
168120
env:
169-
170121
- name: WEBLOGIC_CLUSTER
171-
172122
value: 'domain1-cluster-cluster-1:8001'
173-
174123
- name: LOCATION
175-
176124
value: '/weblogic'
177-
178125
# - name: WEBLOGIC_HOST
179-
180126
# value: 'domain1-admin-server'
181-
182127
# - name: WEBLOGIC_PORT
183-
184128
# value: '7001'
185-
186129
readinessProbe:
187-
188130
tcpSocket:
189-
190131
port: 80
191-
192132
failureThreshold: 1
193-
194133
initialDelaySeconds: 10
195-
196134
periodSeconds: 10
197-
198135
successThreshold: 1
199-
200136
timeoutSeconds: 2
201-
202137
livenessProbe:
203-
204138
tcpSocket:
205-
206139
port: 80
207-
208140
failureThreshold: 3
209-
210141
initialDelaySeconds: 10
211-
212142
periodSeconds: 10
213-
214143
successThreshold: 1
215-
216144
timeoutSeconds: 2
217-
218145
---
219-
220146
apiVersion: v1
221-
222147
kind: Service
223-
224148
metadata:
225-
226149
name: domain1-apache-webtier
227-
228150
namespace: default
229-
230151
labels:
231-
232152
weblogic.domainUID: domain1
233-
234153
weblogic.domainName: base_domain
235-
236154
spec:
237-
238155
type: NodePort
239-
240156
selector:
241-
242157
weblogic.domainUID: domain1
243-
244158
weblogic.domainName: base_domain
245-
246159
app: apache-webtier
247-
248160
ports:
249-
250161
- port: 80
251-
252162
nodePort: 30305
253-
254163
name: rest-https
255-
256164
```
257165

258166
Sample `weblogic-domain-apache-security.yaml` file for associated RBAC roles and role bindings.
259167

260168
```
261-
262169
---
263-
264170
kind: ClusterRole
265-
266171
apiVersion: rbac.authorization.k8s.io/v1beta1
267-
268172
metadata:
269-
270173
name: domain1-apache-webtier
271-
272174
labels:
273-
274175
weblogic.domainUID: domain1
275-
276176
weblogic.domainName: base_domain
277-
278177
rules:
279-
280178
- apiGroups:
281-
282179
- ""
283-
284180
resources:
285-
286181
- pods
287-
288182
- services
289-
290183
- endpoints
291-
292184
- secrets
293-
294185
verbs:
295-
296186
- get
297-
298187
- list
299-
300188
- watch
301-
302189
- apiGroups:
303-
304190
- extensions
305-
306191
resources:
307-
308192
- ingresses
309-
310193
verbs:
311-
312194
- get
313-
314195
- list
315-
316196
- watch
317-
318197
---
319-
320198
kind: ClusterRoleBinding
321-
322199
apiVersion: rbac.authorization.k8s.io/v1beta1
323-
324200
metadata:
325-
326201
name: domain1-apache-webtier
327-
328202
labels:
329-
330203
weblogic.domainUID: domain1
331-
332204
weblogic.domainName: base_domain
333-
334205
roleRef:
335-
336206
apiGroup: rbac.authorization.k8s.io
337-
338207
kind: ClusterRole
339-
340208
name: domain1-apache-webtier
341-
342209
subjects:
343-
344210
- kind: ServiceAccount
345-
346211
name: domain1-apache-webtier
347-
348212
namespace: default
349-
350213
```
351214

352-
353215
Here are examples of the Kubernetes resources created by the WebLogic Operator:
354216

355-
356217
```
357-
358218
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
359-
360219
bash-4.2$ kubectl get all |grep apache
361-
362220
deploy/domain1-apache-webtier 1 1 1 1 2h
363-
364-
365221
rs/domain1-apache-webtier-7b8b789797 1 1 1 2h
366-
367-
368222
deploy/domain1-apache-webtier 1 1 1 1 2h
369-
370-
371223
rs/domain1-apache-webtier-7b8b789797 1 1 1 2h
372-
373-
374-
375224
po/domain1-apache-webtier-7b8b789797-lm45z 1/1 Running 0 2h
376-
377-
378225
svc/domain1-apache-webtier NodePort 10.111.114.67 <none> 80:30305/TCP 2h
379226
380-
381-
382227
bash-4.2$ kubectl get clusterroles |grep apache
383-
384228
domain1-apache-webtier 2h
385229
386-
387-
388230
bash-4.2$ kubectl get clusterrolebindings |grep apache
389-
390231
domain1-apache-webtier 2h
391-
392232
```
393233

394-
395234
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.
396235

397236
```
398-
399237
# Boolean to indicate if the admin port is going to be exposed via APACHE load balancer. By default, it is false.
400238
loadBalancerExposeAdminPort: false
401239
```
@@ -404,56 +242,36 @@ If the domain is created with the `loadBalancerExposeAdminPort` set to `true`, a
404242

405243
### Use your own plugin WL module configuration
406244

407-
408245
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:
409246

410247
```
411-
412248
# Docker volume path for APACHE
413-
414249
# By default, the VolumePath is empty, which will cause the volume mount be disabled
415-
416250
loadBalancerVolumePath: <host-config-dir>
417-
418251
```
419252

420253
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.
421254

422255
The generated YAML files will look similar except with un-commented entries like below:
423256

424257
```
425-
426258
volumes:
427-
428259
- name: "domain1-apache-webtier"
429-
430260
hostPath:
431-
432261
path: <host-config-dir>
433-
434262
containers:
435-
436263
- name: domain1-apache-webtier
437-
438264
image: store/oracle/apache:12.2.1.3
439-
440265
imagePullPolicy: Never
441-
442266
volumeMounts:
443-
444267
- name: "domain1-apache-webtier"
445-
446268
mountPath: "/config"
447-
448269
```
449270

450-
451-
452271
## Use the Apache load balancer with a manually created WebLogic Domain
453272

454273
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.
455274

456-
457275
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).
458276

459277
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

Comments
 (0)