Skip to content

Commit c18c488

Browse files
committed
add some missing steps to thie quickstart
1 parent 3659482 commit c18c488

File tree

2 files changed

+43
-12
lines changed

2 files changed

+43
-12
lines changed

site/manual-installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Manual Installation
44

55
The normal method of installation is the use the provided Helm charts,
6-
please [see here](#) for detailed instructions.
6+
please [see here](helm-charts.md) for detailed instructions.
77

88
If you are unable to or prefer not to use Helm, or you want to customize the process, you
99
should refer to the manual instructions below.

site/quickstart.md

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
# Quick start guide
22

33
Use this quick start guide to create a WebLogic deployment in a Kubernetes cluster with the Oracle WebLogic Kubernetes Operator. Please note that this walk-through is for demonstration purposes only, not for use in production.
4+
These instructions assume you are already familiar with Kubernetes. If you need more detailed instructions, please
5+
refer to the [User guide](user-guide.md).
46

5-
## Prerequisite
7+
## Prerequisites
68
For this exercise, you’ll need a Kubernetes cluster. If you need help setting one up, check out our [cheat sheet](k8s_setup.md).
79

810
## 1. Get these images and put them into your local registry.
911

10-
a. Pull the operator image:
12+
a. If you don't already have one, obtain a Docker Store account, log on to the Docker Store
13+
and accept the license agreement for the [WebLogic Server image](https://hub.docker.com/_/oracle-weblogic-server-12c).
14+
15+
b. Log in to the Docker Store from your docker client:
16+
```
17+
$ docker login
18+
```
19+
c. Pull the operator image:
1120
```
1221
$ docker pull oracle/weblogic-kubernetes-operator:2.0
1322
```
14-
b. Pull the Traefik load balancer image:
23+
d. Pull the Traefik load balancer image:
1524
```
1625
$ docker pull traefik:latest
1726
```
18-
c. Pull the WebLogic 12.2.1.3 install image:
27+
e. Pull the WebLogic 12.2.1.3 install image:
1928
```
2029
$ docker pull store/oracle/weblogic:12.2.1.3
2130
```
22-
d. Then patch the WebLogic image according to these [instructions](https://github.com/oracle/docker-images/tree/master/OracleWebLogic/samples/12213-patch-wls-for-k8s).
31+
f. Then patch the WebLogic image according to these [instructions](https://github.com/oracle/docker-images/tree/master/OracleWebLogic/samples/12213-patch-wls-for-k8s).
2332

2433
## 2. Create a Traefik (Ingress-based) load balancer.
2534

@@ -46,7 +55,28 @@ b. Create a service account for the operator in the operator's namespace:
4655
```
4756
$ kubectl create serviceaccount -n sample-weblogic-operator-ns sample-weblogic-operator-sa
4857
```
49-
c. Use ` helm` to install and start the operator:
58+
c. Grant the helm service account the `cluster-admin` role:
59+
```
60+
$ cat <<EOF | kubectl apply -f -
61+
apiVersion: rbac.authorization.k8s.io/v1
62+
kind: ClusterRoleBinding
63+
metadata:
64+
name: helm-user-cluster-admin-role
65+
roleRef:
66+
apiGroup: rbac.authorization.k8s.io
67+
kind: ClusterRole
68+
name: cluster-admin
69+
subjects:
70+
- kind: ServiceAccount
71+
name: default
72+
namespace: kube-system
73+
EOF
74+
```
75+
d. Clone this repository:
76+
```
77+
$ git clone https://github.com/oracle/weblogic-kubernetes-operator
78+
```
79+
3. Use `helm` to install and start the operator, from the directory you just cloned:
5080

5181
```
5282
$ helm install \
@@ -57,7 +87,7 @@ $ helm install \
5787
-- wait \
5888
kubernetes/charts/weblogic-operator
5989
```
60-
d. Verify that the operator is up and running by viewing the operator pod's log:
90+
f. Verify that the operator is up and running by viewing the operator pod's log:
6191

6292
```
6393
$ kubectl log -n sample-weblogic-operator-ns -c weblogic-operator deployments/weblogic-operator
@@ -103,15 +133,15 @@ a. Create a new image with a domain home by running the [`create-domain`](../kub
103133
* Creating Kubernetes secrets `username` and `password` using the [`create-weblogic-credentials`](../kubernetes/samples/scripts/create-weblogic-domain-credentials/create-weblogic-credentials.sh) script:
104134
```
105135
$ cd ../kubernetes/samples/scripts/create-weblogic-domain-credentials
106-
$ ./create-weblogic-credentials.sh -u <weblogic> -p <welcome1> -n sample-domain1-ns -d sample-domain1
136+
$ ./create-weblogic-credentials.sh -u weblogic -p welcome1 -n sample-domain1-ns -d sample-domain1
107137
```
108138

109139
b. Confirm that the operator started the servers for the domain:
110140
```
111-
$ kubectl get po -n sample-domain1-ns
141+
$ kubectl get pods -n sample-domain1-ns
112142
```
113143

114-
You will see the Administration Server and Managed Servers running.
144+
After a short time, you will see the Administration Server and Managed Servers running.
115145

116146
* Use `kubectl` to show that the domain resource was created:
117147
```
@@ -133,7 +163,8 @@ d. Confirm that the load balancer noticed the new Ingress and is successfully ro
133163
```
134164
$ curl http://${HOSTNAME}:30305/sample-domain1/
135165
```
136-
166+
Note: Depending on where your Kubernetes cluster is running, you may need to open firewall ports or
167+
update security lists to allow ingress to this port.
137168

138169
## 6. Remove the domain.
139170

0 commit comments

Comments
 (0)