Skip to content

Commit 51534fc

Browse files
incorporate edits from Bob D
1 parent 38eeb0a commit 51534fc

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

site/helm-charts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ The `helm install` eventually times out and creates a failed release.
495495
$ helm install kubernetes/charts/weblogic-operator --name op2 --namespace myuser-op2-ns --values o24.yaml --wait --no-hooks
496496
Error: release op2 failed: timed out waiting for the condition
497497
498-
kubectl log -n kube-system tiller-deploy-f9b8476d-mht6v
498+
kubectl logs -n kube-system tiller-deploy-f9b8476d-mht6v
499499
...
500500
[kube] 2018/12/06 21:16:54 Deployment is not ready: myuser-op2-ns/weblogic-operator
501501
...

site/quickstart.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ refer to the [User guide](user-guide.md).
1414
the API version in the data (weblogic.oracle/v2) does not match the expected API version (weblogic.oracle/v1`
1515

1616
## Prerequisites
17-
For this exercise, you’ll need a Kubernetes cluster. If you need help setting one up, check out our [cheat sheet](k8s_setup.md).
17+
For this exercise, you’ll need a Kubernetes cluster. If you need help setting one up, check out our [cheat sheet](k8s_setup.md). This guide assumes a single node cluster.
1818

1919
The operator uses Helm to create and deploy necessary resources and then run the operator in a Kubernetes cluster. For Helm installation and usage information, see [Using operator Helm charts](helm-charts.md).
2020

@@ -52,7 +52,26 @@ f. Then patch the WebLogic image according to the instructions [here](https://gi
5252

5353
g. Copy the image to all the nodes in your cluster, or put it in a Docker registry that your cluster can access.
5454

55-
## 2. Create a Traefik (Ingress-based) load balancer.
55+
## 2. Grant the Helm service account the `cluster-admin` role.
56+
57+
```
58+
$ cat <<EOF | kubectl apply -f -
59+
apiVersion: rbac.authorization.k8s.io/v1
60+
kind: ClusterRoleBinding
61+
metadata:
62+
name: helm-user-cluster-admin-role
63+
roleRef:
64+
apiGroup: rbac.authorization.k8s.io
65+
kind: ClusterRole
66+
name: cluster-admin
67+
subjects:
68+
- kind: ServiceAccount
69+
name: default
70+
namespace: kube-system
71+
EOF
72+
```
73+
74+
## 3. Create a Traefik (Ingress-based) load balancer.
5675

5776
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.
5877
```
@@ -64,7 +83,7 @@ $ helm install stable/traefik \
6483
--wait
6584
```
6685

67-
## 3. Install the operator.
86+
## 4. Install the operator.
6887

6988
a. Create a namespace for the operator:
7089
```
@@ -74,26 +93,7 @@ b. Create a service account for the operator in the operator's namespace:
7493
```
7594
$ kubectl create serviceaccount -n sample-weblogic-operator-ns sample-weblogic-operator-sa
7695
```
77-
c. Grant the Helm service account the `cluster-admin` role:
78-
79-
```
80-
$ cat <<EOF | kubectl apply -f -
81-
apiVersion: rbac.authorization.k8s.io/v1
82-
kind: ClusterRoleBinding
83-
metadata:
84-
name: helm-user-cluster-admin-role
85-
roleRef:
86-
apiGroup: rbac.authorization.k8s.io
87-
kind: ClusterRole
88-
name: cluster-admin
89-
subjects:
90-
- kind: ServiceAccount
91-
name: default
92-
namespace: kube-system
93-
EOF
94-
```
95-
96-
d. Use `helm` to install and start the operator from the directory you just cloned:
96+
c. Use `helm` to install and start the operator from the directory you just cloned:
9797

9898
```
9999
$ helm install kubernetes/charts/weblogic-operator \
@@ -105,18 +105,18 @@ $ helm install kubernetes/charts/weblogic-operator \
105105
--wait
106106
```
107107

108-
e. Verify that the operator's pod is running, by listing the pods in the operator's namespace. You should see one for the operator.
108+
d. Verify that the operator's pod is running, by listing the pods in the operator's namespace. You should see one for the operator.
109109
```
110110
$ kubectl get pods -n sample-weblogic-operator-ns
111111
```
112112

113-
f. Verify that the operator is up and running by viewing the operator pod's log:
113+
e. Verify that the operator is up and running by viewing the operator pod's log:
114114

115115
```
116-
$ kubectl log -n sample-weblogic-operator-ns -c weblogic-operator deployments/weblogic-operator
116+
$ kubectl logs -n sample-weblogic-operator-ns -c weblogic-operator deployments/weblogic-operator
117117
```
118118

119-
## 4. Prepare your environment for a domain.
119+
## 5. Prepare your environment for a domain.
120120

121121
a. Create a namespace that can host one or more domains:
122122

@@ -144,7 +144,7 @@ $ helm upgrade \
144144
stable/traefik
145145
```
146146

147-
## 5. Create a domain in the domain namespace.
147+
## 6. Create a domain in the domain namespace.
148148

149149
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:
150150

@@ -161,7 +161,7 @@ b. Create a new image with a domain home by running the [`create-domain`](../kub
161161
Follow the directions in the [README](../kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/README.md) file,
162162
including:
163163

164-
* Copying the sample `create-domain-inputs.yaml` file and updating your copy with the `domainUID` (`sample-domain1`),
164+
* Copying the sample `kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/create-domain-inputs.yaml` file and updating your copy with the `domainUID` (`sample-domain1`),
165165
domain namespace (`sample-domain1-ns`), and the `domainHomeImageBase` (`oracle/weblogic:12213-patch-wls-for-k8s`).
166166

167167
* Setting `weblogicCredentialsSecretName` to the name of the secret containing the WebLogic credentials, in this case, `sample-domain1-weblogic-credentials`.
@@ -251,7 +251,7 @@ $ curl -v -H 'host: sample-domain1.org' http://your.server.com:30305/weblogic/
251251
**Note**: Depending on where your Kubernetes cluster is running, you may need to open firewall ports or
252252
update security lists to allow ingress to this port.
253253

254-
## 6. Remove the domain.
254+
## 7. Remove the domain.
255255

256256
a. Remove the domain's Ingress by using `helm`:
257257
```
@@ -267,7 +267,7 @@ $ kubectl get pods -n sample-domain1-ns
267267
$ kubectl get domains -n sample-domain1-ns
268268
```
269269

270-
## 7. Remove the domain namespace.
270+
## 8. Remove the domain namespace.
271271
a. Configure the Traefik load balancer to stop managing the Ingresses in the domain namespace:
272272

273273
```
@@ -295,7 +295,7 @@ c. Delete the domain namespace:
295295
$ kubectl delete namespace sample-domain1-ns
296296
```
297297

298-
## 8. Remove the operator.
298+
## 9. Remove the operator.
299299

300300
a. Remove the operator:
301301
```
@@ -306,7 +306,7 @@ b. Remove the operator's namespace:
306306
```
307307
$ kubectl delete namespace sample-weblogic-operator-ns
308308
```
309-
## 9. Remove the load balancer.
309+
## 10. Remove the load balancer.
310310
a. Remove the Traefik load balancer:
311311
```
312312
$ helm delete --purge traefik-operator

0 commit comments

Comments
 (0)