Skip to content

Commit 94f42fb

Browse files
authored
Merge pull request #734 from oracle/quickstart-fix
Quickstart fix
2 parents bfca5ba + 6011987 commit 94f42fb

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

site/quickstart.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ b. Log in to the Docker Store from your docker client:
3232
```
3333
$ docker login
3434
```
35-
c. Pull the operator image:
35+
c. Pull the operator image and tag it to the default image value of the operator:
3636
```
37-
$ docker pull oracle/weblogic-kubernetes-operator:2.0
37+
$ docker pull oracle/weblogic-kubernetes-operator:2.0-rc1
38+
$ docker tag oracle/weblogic-kubernetes-operator:2.0-rc1 weblogic-kubernetes-operator:2.0
3839
```
3940
d. Pull the Traefik load balancer image:
4041
```
@@ -70,17 +71,14 @@ EOF
7071

7172
Use `helm` to install the [Traefik](../kubernetes/samples/charts/traefik/README.md) load balancer. Use the [values.yaml](../kubernetes/samples/charts/traefik/values.yaml) in the sample but set `kubernetes.namespaces` specifically.
7273
```
73-
$ helm install \
74+
$ helm install stable/traefik \
7475
--name traefik-operator \
7576
--namespace traefik \
76-
--values <path>/values.yaml \
77+
--values kubernetes/samples/charts/traefik/values.yaml \
7778
--set "kubernetes.namespaces={traefik}" \
78-
stable/traefik
79-
```
80-
Wait until the Traefik operator pod is running and ready.
81-
```
82-
$ kubectl -n traefik get pod -w
79+
--wait
8380
```
81+
8482
## 3. Install the operator.
8583

8684
a. Create a namespace for the operator:
@@ -137,21 +135,18 @@ c. Configure Traefik to manage Ingresses created in this namespace:
137135
$ helm upgrade \
138136
--reuse-values \
139137
--set "kubernetes.namespaces={traefik,sample-domain1-ns}" \
138+
--wait \
140139
traefik-operator \
141140
stable/traefik
142141
```
143-
d. Wait until the Traefik operator pod finishes restarting.
144-
```
145-
$ kubectl -n traefik get pod -w
146-
```
147142

148143
## 5. Create a domain in the domain namespace.
149144

150145
a. Create a Kubernetes secret containing the `username` and `password` for the domain using the [`create-weblogic-credentials`](../kubernetes/samples/scripts/create-weblogic-domain-credentials/create-weblogic-credentials.sh) script:
151146

152147
```
153-
$ cd kubernetes/samples/scripts/create-weblogic-domain-credentials
154-
$ ./create-weblogic-credentials.sh -u weblogic -p welcome1 -n sample-domain1-ns -d sample-domain1
148+
$ kubernetes/samples/scripts/create-weblogic-domain-credentials/create-weblogic-credentials.sh \
149+
-u weblogic -p welcome1 -n sample-domain1-ns -d sample-domain1
155150
```
156151

157152
The sample will create a secret named `domainUID-weblogic-credentials` where the `domainUID` is replaced
@@ -199,16 +194,19 @@ $ kubectl get services -n sample-domain1-ns
199194
d. Create an Ingress for the domain, in the domain namespace, by using the [sample](../kubernetes/samples/charts/ingress-per-domain/README.md) Helm chart:
200195
* Use `helm install`, specifying the `domainUID` (`sample-domain1`) and domain namespace (`sample-domain1-ns`) in the `values.yaml` file.
201196
```
202-
$ cd kubernetes/samples/charts
203-
$ helm install ingress-per-domain --name domain1-ingress --values ingress-per-domain/values.yaml
197+
$ helm install kubernetes/samples/charts/ingress-per-domain \
198+
--name sample-domain1-ingress \
199+
--set wlsDomain.namespace=sample-domain1-ns \
200+
--set wlsDomain.domainUID=sample-domain1 \
201+
--set traefik.hostname=sample-domain1.org
204202
```
205203

206204
e. To confirm that the load balancer noticed the new Ingress and is successfully routing to the domain's server pods
207205
you can hit the URL for the "WebLogic Ready App" which will return a HTTP 200 status code as
208206
shown in the example below. If you used the host-based routing ingress sample you will need to
209207
provide the hostname in the `-H` option:
210208
```
211-
$ curl -v -H 'host: domain1.org' http://your.server.com:30305/weblogic/

209+
$ curl -v -H 'host: sample-domain1.org' http://your.server.com:30305/weblogic/

212210
*
About to connect() to your.server.com port 30305 (#0)

213211
* Trying 10.196.1.64...

214212
* Connected to your.server.com (10.196.1.64) port 30305 (#0)
@@ -230,10 +228,12 @@ update security lists to allow ingress to this port.
230228

231229
a. Remove the domain's Ingress by using `helm`:
232230
```
233-
$ helm delete --purge domain1-ingress
231+
$ helm delete --purge sample-domain1-ingress
234232
```
235233
b. Remove the domain resources by using the sample [`delete-weblogic-domain-resources`](../kubernetes/samples/scripts/delete-domain/delete-weblogic-domain-resources.sh) script.
236-
234+
```
235+
$ kubernetes/samples/scripts/delete-domain/delete-weblogic-domain-resources.sh -d sample-domain1
236+
```
237237
c. Use `kubectl` to confirm that the server pods and domain resource are gone.
238238
```
239239
$ kubectl get pods -n sample-domain1-ns
@@ -247,6 +247,7 @@ a. Configure the Traefik load balancer to stop managing the Ingresses in the dom
247247
$ helm upgrade \
248248
--reuse-values \
249249
--set "kubernetes.namespaces={traefik}" \
250+
--wait \
250251
traefik-operator \
251252
stable/traefik
252253
```

0 commit comments

Comments
 (0)