Skip to content

Commit 18185ea

Browse files
authored
Merge pull request #570 from oracle/QuickStart
fix formatting issues
2 parents 9b16718 + b0963bc commit 18185ea

File tree

1 file changed

+43
-22
lines changed

1 file changed

+43
-22
lines changed

site/quickstart.md

Lines changed: 43 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33
Use this Quick Start Guide to create a WebLogic deployment in a Kubernetes cluster.
44

55
## 1. Get the images and put them into your local registry.
6-
The Operator image:
6+
7+
For the Operator image:
78
```
89
$ docker pull oracle/weblogic-kubernetes-operator:2.0
910
```
10-
The Traefik image:
11+
For the Traefik image:
1112
```
1213
$ docker pull traefik:latest
1314
```
1415
## 2. Create a Traefik (Ingress-based) load balancer.
15-
Use Helm to install the [Traefik](samples/charts/traefik/README.md) load balancer.
16+
17+
Use Helm to install the [Traefik](kubernetes/samples/charts/traefik/README.md) load balancer.
1618
```
1719
$ helm install --name traefik-operator --namespace traefik stable/traefik
1820
```
@@ -24,12 +26,13 @@ $ kubectl apply -f kubernetes/samples/scripts/elasticsearch_and_kibana.yaml
2426
```
2527

2628
## 4. Install the operator.
29+
2730
* Create a namespace for the operator:
2831
```
2932
$ kubectl create namespace weblogic-operator
3033
```
3134
* Create a `serviceAccount` for the operator's namespace. If not specified, it defaults to `default` (for example, the namespace's default service account).
32-
* Invoke the script to generate the credentials for the operator and add it to the operator YAML file (all the values can be kept as default).
35+
* Invoke the script to generate the credentials for the operator and add it to the operator YAML file (you can keep all the default values).
3336
* Create the operator using `helm install`, and passing in the namespace, service account, and location of Elasticsearch.
3437
* Helm is used to deploy the operator in a Kubernetes cluster.
3538
* Use the `helm install` command to install the operator Helm chart, passing in the `values.yaml`.
@@ -39,24 +42,25 @@ $ kubectl create namespace weblogic-operator
3942
```
4043

4144
## 5. Prepare your environment for a domain.
42-
* Optionally, create a domain namespace if you want to persist the domain home in a PV or the WebLogic server logs:
45+
46+
* Optionally, create a domain namespace if you want to persist the domain home in a PV:
4347
```
4448
$ kubectl create namespace domain1-ns
4549
```
46-
* Create the Kubernetes secrets for the Administration Server boot credentials by invoking the script:
47-
```
48-
https://github.com/oracle/weblogic-kubernetes-operator/blob/develop/kubernetes/samples/scripts/create-weblogic-domain/create-weblogic-credentials.sh
49-
```
50+
* Create the Kubernetes secrets for the Administration Server boot credentials by invoking the script, https://github.com/oracle/weblogic-kubernetes-operator/blob/develop/kubernetes/samples/scripts/create-weblogic-domain/create-weblogic-credentials.sh.
51+
5052
* Create a PV & PVC for the domain:
51-
* Find the `create_pv_pvc.sh script` and the YAML file you'll need to edit to create the PV and PVC, in the https://github.com/oracle/weblogic-kubernetes-operator/tree/develop/kubernetes/samples/scripts/create-weblogic-domain-pv-pvc directory.
53+
* Find the `create_pv_pvc.sh script` and YAML files you'll need to edit to create the PV and PVC, in the https://github.com/oracle/weblogic-kubernetes-operator/tree/develop/kubernetes/samples/scripts/create-weblogic-domain-pv-pvc directory.
5254
* Edit the operator YAML file to add the domain namespace, then do a `helm upgrade`.
5355
* Create the Docker image for the domain home in the image or use the WebLogic binary image.
5456
* Run WLST to create the domain in PV (remember to apply the patch).
5557

5658
## 6. Create a domain.
59+
5760
* Edit the domain YAML file (can the defaults be used?).
5861
* Create the domain home for the domain.
5962
* For a domain home on a PV, first pull the WebLogic 12.2.1.3 install image into a local repository:
63+
6064
```
6165
$ docker pull store/oracle/weblogic:12.2.1.3-dev
6266
```
@@ -66,22 +70,30 @@ $ docker pull store/oracle/weblogic:12.2.1.3-dev
6670
* Create a Kubernetes job that will start up a utility WebLogic Server container and run offline WLST scripts, or WebLogic Deploy Tool (WDT) scripts, to create the domain on the shared storage.
6771
* Run and wait for the job to finish.
6872
* Create a Kubernetes domain custom resource YAML file, `domain-custom-resource.yaml`, in the directory that is created above. You can use this YAML file to create the Kubernetes resource using the `kubectl create -f` or `kubectl apply -f` command:
69-
```
70-
./create-domain.sh
71-
-i create-domain-inputs.yaml
72-
-o /path/to/output-directory
73+
7374
```
74-
* For a domain home in image, use the sample in the Docker GitHub project.
75+
./create-domain.sh
76+
-i create-domain-inputs.yaml
77+
-o /path/to/output-directory
78+
```
79+
80+
* For a domain home in image, use the sample in the Docker GitHub project.
81+
7582
* Optionally, create a configuration overrides template and any additional Kubernetes secrets it needs (for example, to override the domain home configuration of a database URL, username, and password).
83+
7684
* Create a domain resource in the domain namespace.
7785
* Specify the following information: domain UID, service account, secret name, the domain home details, and optionally, the configuration overrides template name.
86+
7887
* Configure the operator to know about the domain.
7988
* Edit the operator `values.yaml` file to add the namespace of the domain:
80-
```
89+
90+
```
8191
$ helm update kubernetes/charts/weblogic-operator --name my-operator --namespace weblogic-operator-ns --values values.yaml --wait
8292
```
93+
8394
* Configure the Traefik load balancer to manage the domain as follows:
8495
* Create an Ingress for the domain in the domain namespace (it contains the routing rules for the domain):
96+
8597
```
8698
$ cd kubernetes/samples/charts
8799
$ helm install ingress-per-domain --name domain1-ingress --value values.yaml
@@ -90,23 +102,24 @@ $ helm install ingress-per-domain --name domain1-ingress --value values.yaml
90102
(At this point, do they have a WebLogic Kubernetes deployment in a Kubernetes cluster? If so, we have to give them something to look at, to verify their results.)
91103

92104
## 7. Remove a domain.
93-
* Remove the domain's Kubernetes resources (domain, secrets, ingress, and such)
94-
* To remove the domain and all the Kubernetes resources (labeled with the `domainUID`), invoke the script:
95-
```
96-
https://github.com/oracle/weblogic-kubernetes-operator/blob/develop/kubernetes/samples/scripts/delete-weblogic-domain-resources.sh
97-
```
105+
106+
* Remove the domain's Kubernetes resources (domain, secrets, ingress, ...).
107+
* To remove the domain and all the Kubernetes resources (labeled with the `domainUID`), invoke the script, https://github.com/oracle/weblogic-kubernetes-operator/blob/develop/kubernetes/samples/scripts/delete-weblogic-domain-resources.sh.
108+
98109
* The operator will notice that the domain's domain resource has been removed and will then kill the pods.
99110
* Configure the Traefik load balancer to stop managing the domain.
100111
* If you have configured Traefik to manage the domain's namespace (instead of the default: all namespaces), then edit the Traefik YAML file to remove the domain namespace and do a `helm update`:
112+
101113
```
102-
helm update --name traefik-operator --namespace traefik (default values in yaml)
114+
helm update --name traefik-operator --namespace traefik (default values in yaml)
103115
or
104116
helm update --name traefik-operator --namespace traefik --values values.yaml stable/traefik
105117
```
106118

107119
* Remove the domain home if it's on a PV.
108120

109121
## 8. Remove the domain namespace.
122+
110123
* Configure the Traefik load balancer to stop managing the domain namespace. Use `helm upgrade` to remove the domain namespace from the list of namespaces.
111124
* Configure the operator to stop managing the domain. Use `helm upgrade` to remove the domain namespace from the list of domain namespaces.
112125
* Remove the PV & PVC for the domain namespace.
@@ -116,24 +129,32 @@ $ kubectl delete namespaces domain1-ns
116129
```
117130

118131
## 9. Remove the operator.
132+
133+
* Remove the operator:
134+
119135
```
120136
helm delete --purge my-operator
121137
```
122138
* Remove the operator namespace:
139+
123140
```
124141
$ kubectl delete namespaces weblogic-operator-ns
125142
```
126143

127144
## 10. Remove other resources.
145+
128146
* Optionally, remove Kibana and Elasticsearch:
147+
129148
```
130149
$ kubectl apply -f kubernetes/samples/scripts/elasticsearch_and_kibana.yaml
131150
```
132151
* Remove the Traefik load balancer:
152+
133153
```
134154
helm delete --purge
135155
```
136156
* Remove the Traefik namespace:
157+
137158
```
138159
$ kubectl delete namespaces traefik
139160
```

0 commit comments

Comments
 (0)