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/quickstart.md
+33-36Lines changed: 33 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ refer to the [User guide](user-guide.md).
14
14
the API version in the data (weblogic.oracle/v2) does not match the expected API version (weblogic.oracle/v1`
15
15
16
16
## 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.
18
18
19
19
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).
20
20
@@ -52,7 +52,26 @@ f. Then patch the WebLogic image according to the instructions [here](https://gi
52
52
53
53
g. Copy the image to all the nodes in your cluster, or put it in a Docker registry that your cluster can access.
54
54
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.
56
75
57
76
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.
58
77
```
@@ -64,7 +83,7 @@ $ helm install stable/traefik \
64
83
--wait
65
84
```
66
85
67
-
## 3. Install the operator.
86
+
## 4. Install the operator.
68
87
69
88
a. Create a namespace for the operator:
70
89
```
@@ -74,26 +93,7 @@ b. Create a service account for the operator in the operator's namespace:
a. Create a namespace that can host one or more domains:
122
122
@@ -144,7 +144,7 @@ $ helm upgrade \
144
144
stable/traefik
145
145
```
146
146
147
-
## 5. Create a domain in the domain namespace.
147
+
## 6. Create a domain in the domain namespace.
148
148
149
149
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:
150
150
@@ -161,14 +161,11 @@ b. Create a new image with a domain home by running the [`create-domain`](../kub
161
161
Follow the directions in the [README](../kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/README.md) file,
162
162
including:
163
163
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`),
165
165
domain namespace (`sample-domain1-ns`), and the `domainHomeImageBase` (`oracle/weblogic:12213-patch-wls-for-k8s`).
166
166
167
167
* Setting `weblogicCredentialsSecretName` to the name of the secret containing the WebLogic credentials, in this case, `sample-domain1-weblogic-credentials`.
168
168
169
-
By convention, the secret will be named`domainUID-weblogic-credentials` (where `domainUID` is replaced with the
170
-
actual `domainUID` value).
171
-
172
169
* Leaving the `image` empty unless you need to tag the new image that the script builds to a different name.
173
170
174
171
For example, assuming you named your copy `my-inputs.yaml`:
0 commit comments