Skip to content

Commit 00990a9

Browse files
authored
Merge pull request #61 from oracle/sample-enhance
end2end sample enhancement
2 parents 3bd3dc9 + 03dd804 commit 00990a9

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

samples/kubernetes/end2end/docs/03-wls-operator.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Installing the WebLogic Kubernetes Operator
22
We depend on the [WebLogic Kubernetes Operator](https://github.com/oracle/weblogic-kubernetes-operator) to create and manage WebLogic domains. For detailed installation information, see [Install the Operator](https://oracle.github.io/weblogic-kubernetes-operator/userguide/managing-operators/installation/).
33

4-
In this example, we provide the steps to install the 2.1 release of the WebLogic Kubernetes Operator.
4+
In this example, we provide the steps to install the 2.3.0 release of the WebLogic Kubernetes Operator.
55

66
### Pulling the Images
77
We need two images, the WebLogic Kubernetes Operator image from [Docker Hub](https://hub.docker.com) and the WebLogic Server image from the [Oracle Container Registry](https://container-registry.oracle.com).
@@ -10,10 +10,10 @@ Before pulling the image, you must:
1010
If you do not already have Oracle Single Sign-On credentials, go to https://container-registry.oracle.com and create them by clicking the Sign In link at the top of the page.
1111
- Log in to the site in your browser, find the image, and accept the license.
1212

13-
Pull the WebLogic Kubernetes Operator 2.1 image.
13+
Pull the WebLogic Kubernetes Operator 2.3.0 image.
1414
```
1515
docker login
16-
docker pull oracle/weblogic-kubernetes-operator:2.1
16+
docker pull oracle/weblogic-kubernetes-operator:2.3.0
1717
```
1818
Pull the WebLogic Server 12.2.1.3 image.
1919
```
@@ -40,10 +40,6 @@ Confirm that patch set `29135930` is in the patch list.
4040

4141
### Installing the WebLogic Kubernetes Operator
4242

43-
Clone the WebLogic Kubernetes Operator 2.1 repo.
44-
```
45-
git clone -b release/2.1 https://github.com/oracle/weblogic-kubernetes-operator.git
46-
```
4743
Create a namespace in which to run the operator.
4844
```
4945
kubectl create namespace weblogic-operator1
@@ -52,13 +48,18 @@ Create a service account.
5248
```
5349
kubectl create serviceaccount -n weblogic-operator1 sample-weblogic-operator-sa
5450
```
55-
Install the operator chart.
51+
Add the operator chart repository to helm.
52+
```
53+
helm repo add weblogic-operator https://oracle.github.io/weblogic-kubernetes-operator/charts
5654
```
57-
helm install weblogic-kubernetes-operator/kubernetes/charts/weblogic-operator \
58-
--name sample-weblogic-operator \
55+
Install the operator with the operator chart with version `2.3.0`.
56+
```
57+
helm install weblogic-operator/weblogic-operator \
58+
--version 2.3.0 \
59+
--name weblogic-operator \
5960
--namespace weblogic-operator1 \
6061
--set serviceAccount=sample-weblogic-operator-sa \
61-
--set image=oracle/weblogic-kubernetes-operator:2.1 \
62+
--set image=oracle/weblogic-kubernetes-operator:2.3.0 \
6263
--set "domainNamespaces={default}" \
6364
--wait
6465
```
@@ -82,6 +83,11 @@ kubectl get crd domains.weblogic.oracle
8283
NAME CREATED AT
8384
domains.weblogic.oracle 2019-05-28T07:17:26Z
8485
```
86+
Verify that the domain CRD version is correct.
87+
```
88+
kubectl get crd domains.weblogic.oracle -o jsonpath="{.spec.version}"
89+
```
90+
The expected version should be `v5`. Because the WebLogic operator is backward compatible, a domain resource with any version older than `v5` should be supported.
8591

8692
Now the WebLogic Kubernetes Operator is running and it's monitoring the default namespace. Later we'll deploy a domain resource to the default namespace and the operator will be responsible for creating, running, and managing the WebLogic domain.
8793

0 commit comments

Comments
 (0)