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/kubernetes.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Here is an example command line for the Extract Domain Resource Tool:
15
15
16
16
For the simplest case, the Extract Domain Resource Tool will create a sparse domain file. This is what is generated when there is not a `kubernetes` section in the model, or that section is empty.
17
17
```yaml
18
-
apiVersion: weblogic.oracle/v6
18
+
apiVersion: weblogic.oracle/v8
19
19
kind: Domain
20
20
metadata:
21
21
name: DemoDomain
@@ -25,6 +25,9 @@ spec:
25
25
imagePullSecrets:
26
26
- name: '--FIX ME--'
27
27
webLogicCredentialsSecret: '--FIX ME--'
28
+
configuration:
29
+
model:
30
+
domainType: WLS
28
31
clusters:
29
32
- clusterName: mycluster
30
33
replicas: 2
@@ -48,6 +51,13 @@ kubernetes:
48
51
WEBLOGIC_IMAGE_PULL_SECRET_NAME:
49
52
webLogicCredentialsSecret:
50
53
name: '@@PROP:mySecret@@'
54
+
configuration:
55
+
model:
56
+
domainType: 'WLS'
57
+
secrets: [
58
+
'secret1',
59
+
'secret2'
60
+
]
51
61
serverPod:
52
62
env:
53
63
USER_MEM_ARGS:
@@ -59,6 +69,8 @@ This example uses `@@PROP:mySecret@@` to pull the value for `webLogicCredentials
59
69
60
70
For this example, the resulting domain resource file would contain:
61
71
```yaml
72
+
apiVersion: weblogic.oracle/v8
73
+
kind: Domain
62
74
metadata:
63
75
name: myName
64
76
namespace: myNamespace
@@ -75,13 +87,17 @@ spec:
75
87
- name: JAVA_OPTIONS
76
88
value: '-Dmydir=/home/me'
77
89
domainHome: /u01/mine/domain
90
+
configuration:
91
+
model:
92
+
domainType: WLS
93
+
secrets:
94
+
- secret1
95
+
- secret2
78
96
clusters:
79
97
- clusterName: mycluster
80
98
replicas: 2
81
99
- clusterName: mycluster3
82
100
replicas: 4
83
-
apiVersion: weblogic.oracle/v6
84
-
kind: Domain
85
101
```
86
102
87
103
The syntax of the `spec/serverPod/env` and other list sections in the WDT model are different from the syntax in the target file. The WDT tools do not recognize the hyphenated list syntax, so these elements are specified in a similar manner to other model lists.
0 commit comments