Skip to content

Commit 18fe0a4

Browse files
authored
Merge pull request #779 from oracle/rmarano
move helm instruction
2 parents 52e1d3c + b64af1f commit 18fe0a4

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

site/quickstart.md

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $ git clone https://github.com/oracle/weblogic-kubernetes-operator
2929
a. If you don't already have one, obtain a Docker Store account, log in to the Docker Store
3030
and accept the license agreement for the [WebLogic Server image](https://hub.docker.com/_/oracle-weblogic-server-12c).
3131

32-
b. Log in to the Docker Store from your docker client:
32+
b. Log in to the Docker Store from your Docker client:
3333
```
3434
$ docker login
3535
```
@@ -49,25 +49,6 @@ f. **TODO** remove this item when Monica has published the new image with the pa
4949
Then patch the WebLogic image according to these [instructions](https://github.com/oracle/docker-images/tree/master/OracleWebLogic/samples/12213-patch-wls-for-k8s),
5050
and copy the image to all nodes in your cluster, or put it in a Docker registry that your cluster can access.
5151

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

7354
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.
@@ -90,8 +71,26 @@ b. Create a service account for the operator in the operator's namespace:
9071
```
9172
$ kubectl create serviceaccount -n sample-weblogic-operator-ns sample-weblogic-operator-sa
9273
```
74+
c. Grant the Helm service account the `cluster-admin` role:
75+
76+
```
77+
$ cat <<EOF | kubectl apply -f -
78+
apiVersion: rbac.authorization.k8s.io/v1
79+
kind: ClusterRoleBinding
80+
metadata:
81+
name: helm-user-cluster-admin-role
82+
roleRef:
83+
apiGroup: rbac.authorization.k8s.io
84+
kind: ClusterRole
85+
name: cluster-admin
86+
subjects:
87+
- kind: ServiceAccount
88+
name: default
89+
namespace: kube-system
90+
EOF
91+
```
9392

94-
c. Use `helm` to install and start the operator from the directory you just cloned:
93+
d. Use `helm` to install and start the operator from the directory you just cloned:
9594

9695
```
9796
$ helm install kubernetes/charts/weblogic-operator \
@@ -103,12 +102,12 @@ $ helm install kubernetes/charts/weblogic-operator \
103102
--wait
104103
```
105104

106-
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.
105+
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.
107106
```
108107
$ kubectl get pods -n sample-weblogic-operator-ns
109108
```
110109

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

113112
```
114113
$ kubectl log -n sample-weblogic-operator-ns -c weblogic-operator deployments/weblogic-operator

0 commit comments

Comments
 (0)