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
* Create a `serviceAccount` for the operator's namespace. If not specified, it defaults to `default` (for example, the namespace's default service account).
32
-
* Invoke the script to generate the credentials for the operator and add it to the operator YAML file (all the values can be kept as default).
35
+
* Invoke the script to generate the credentials for the operator and add it to the operator YAML file (you can keep all the default values).
33
36
* Create the operator using `helm install`, and passing in the namespace, service account, and location of Elasticsearch.
34
37
* Helm is used to deploy the operator in a Kubernetes cluster.
35
38
* Use the `helm install` command to install the operator Helm chart, passing in the `values.yaml`.
* Create the Kubernetes secrets for the Administration Server boot credentials by invoking the script, https://github.com/oracle/weblogic-kubernetes-operator/blob/develop/kubernetes/samples/scripts/create-weblogic-domain/create-weblogic-credentials.sh.
51
+
50
52
* Create a PV & PVC for the domain:
51
-
* Find the `create_pv_pvc.sh script` and the YAML file you'll need to edit to create the PV and PVC, in the https://github.com/oracle/weblogic-kubernetes-operator/tree/develop/kubernetes/samples/scripts/create-weblogic-domain-pv-pvc directory.
53
+
* Find the `create_pv_pvc.sh script` and YAML files you'll need to edit to create the PV and PVC, in the https://github.com/oracle/weblogic-kubernetes-operator/tree/develop/kubernetes/samples/scripts/create-weblogic-domain-pv-pvc directory.
52
54
* Edit the operator YAML file to add the domain namespace, then do a `helm upgrade`.
53
55
* Create the Docker image for the domain home in the image or use the WebLogic binary image.
54
56
* Run WLST to create the domain in PV (remember to apply the patch).
55
57
56
58
## 6. Create a domain.
59
+
57
60
* Edit the domain YAML file (can the defaults be used?).
58
61
* Create the domain home for the domain.
59
62
* For a domain home on a PV, first pull the WebLogic 12.2.1.3 install image into a local repository:
* Create a Kubernetes job that will start up a utility WebLogic Server container and run offline WLST scripts, or WebLogic Deploy Tool (WDT) scripts, to create the domain on the shared storage.
67
71
* Run and wait for the job to finish.
68
72
* Create a Kubernetes domain custom resource YAML file, `domain-custom-resource.yaml`, in the directory that is created above. You can use this YAML file to create the Kubernetes resource using the `kubectl create -f` or `kubectl apply -f` command:
69
-
```
70
-
./create-domain.sh
71
-
-i create-domain-inputs.yaml
72
-
-o /path/to/output-directory
73
+
73
74
```
74
-
* For a domain home in image, use the sample in the Docker GitHub project.
75
+
./create-domain.sh
76
+
-i create-domain-inputs.yaml
77
+
-o /path/to/output-directory
78
+
```
79
+
80
+
* For a domain home in image, use the sample in the Docker GitHub project.
81
+
75
82
* Optionally, create a configuration overrides template and any additional Kubernetes secrets it needs (for example, to override the domain home configuration of a database URL, username, and password).
83
+
76
84
* Create a domain resource in the domain namespace.
77
85
* Specify the following information: domain UID, service account, secret name, the domain home details, and optionally, the configuration overrides template name.
86
+
78
87
* Configure the operator to know about the domain.
79
88
* Edit the operator `values.yaml` file to add the namespace of the domain:
(At this point, do they have a WebLogic Kubernetes deployment in a Kubernetes cluster? If so, we have to give them something to look at, to verify their results.)
91
103
92
104
## 7. Remove a domain.
93
-
* Remove the domain's Kubernetes resources (domain, secrets, ingress, and such)
94
-
* To remove the domain and all the Kubernetes resources (labeled with the `domainUID`), invoke the script:
* Remove the domain's Kubernetes resources (domain, secrets, ingress, ...).
107
+
* To remove the domain and all the Kubernetes resources (labeled with the `domainUID`), invoke the script, https://github.com/oracle/weblogic-kubernetes-operator/blob/develop/kubernetes/samples/scripts/delete-weblogic-domain-resources.sh.
108
+
98
109
* The operator will notice that the domain's domain resource has been removed and will then kill the pods.
99
110
* Configure the Traefik load balancer to stop managing the domain.
100
111
* If you have configured Traefik to manage the domain's namespace (instead of the default: all namespaces), then edit the Traefik YAML file to remove the domain namespace and do a `helm update`:
112
+
101
113
```
102
-
helm update --name traefik-operator --namespace traefik (default values in yaml)
114
+
helm update --name traefik-operator --namespace traefik (default values in yaml)
* Configure the Traefik load balancer to stop managing the domain namespace. Use `helm upgrade` to remove the domain namespace from the list of namespaces.
111
124
* Configure the operator to stop managing the domain. Use `helm upgrade` to remove the domain namespace from the list of domain namespaces.
0 commit comments