@@ -7,7 +7,7 @@ refer to the [User guide](user-guide.md).
7
7
## Prerequisites
8
8
For this exercise, you’ll need a Kubernetes cluster. If you need help setting one up, check out our [ cheat sheet] ( k8s_setup.md ) .
9
9
10
- You should clone this repository to your local machine so that you have access to the
10
+ You should clone this repository to your local machine so that you have access to the
11
11
various sample files mentioned throughout this guide:
12
12
```
13
13
$ git clone https://github.com/oracle/weblogic-kubernetes-operator
@@ -101,14 +101,14 @@ $ kubectl log -n sample-weblogic-operator-ns -c weblogic-operator deployments/we
101
101
a. Create a namespace that can host one or more domains:
102
102
103
103
```
104
- $ kubectl create namespace sample-domains-ns1
104
+ $ kubectl create namespace sample-domain1-ns
105
105
```
106
106
b. Use ` helm ` to configure the operator to manage domains in this namespace:
107
107
108
108
```
109
109
$ helm upgrade \
110
110
--reuse-values \
111
- --set "domainNamespaces={sample-domains-ns1 }" \
111
+ --set "domainNamespaces={sample-domain1-ns }" \
112
112
--wait \
113
113
sample-weblogic-operator \
114
114
kubernetes/charts/weblogic-operator
@@ -118,7 +118,7 @@ c. Configure Traefik to manage Ingresses created in this namespace:
118
118
```
119
119
$ helm upgrade \
120
120
--reuse-values \
121
- --set "kubernetes.namespaces={traefik,sample-domains-ns1 }" \
121
+ --set "kubernetes.namespaces={traefik,sample-domain1-ns }" \
122
122
traefik-operator \
123
123
stable/traefik
124
124
```
@@ -133,7 +133,7 @@ a. Create a Kubernetes secret containing the `username` and `password` for the d
133
133
134
134
```
135
135
$ cd kubernetes/samples/scripts/create-weblogic-domain-credentials
136
- $ ./create-weblogic-credentials.sh -u weblogic -p welcome1 -n sample-domains-ns1 -d sample-domain1
136
+ $ ./create-weblogic-credentials.sh -u weblogic -p welcome1 -n sample-domain1-ns -d sample-domain1
137
137
```
138
138
139
139
The sample will create a secret named ` domainUID-weblogic-credentials ` where the ` domainUID ` is replaced
@@ -145,7 +145,7 @@ Follow the directions in the [README](../kubernetes/samples/scripts/create-weblo
145
145
including:
146
146
147
147
* Copying the sample ` create-domain-inputs.yaml ` file and updating your copy with the ` domainUID ` (` sample-domain1 ` ),
148
- domain namespace (` sample-domains-ns1 ` ) and the base image (` oracle/weblogic:12213-patch-wls-for-k8s ` ).
148
+ domain namespace (` sample-domain1-ns ` ) and the base image (` oracle/weblogic:12213-patch-wls-for-k8s ` ).
149
149
150
150
* Setting ` weblogicCredentialsSecretName ` to the name of the secret containing the WebLogic credentials.
151
151
By convention, the secret will be named` domainUID-weblogic-credentials ` (where ` domainUID ` is replaced with the
@@ -159,7 +159,7 @@ $ ./create-domain.sh -i my-inputs.yaml -o /some/output/directory -e -v
159
159
160
160
c. Confirm that the operator started the servers for the domain:
161
161
```
162
- $ kubectl get pods -n sample-domain-ns1
162
+ $ kubectl get pods -n sample-domain1-ns
163
163
```
164
164
165
165
After a short time, you will see the Administration Server and Managed Servers running.
@@ -170,11 +170,11 @@ $ kubectl describe domain sample-domain1 -n sample-domain1-ns
170
170
```
171
171
* Verify that the operator's pod is running, by listing the pods in the operator's namespace. You should see one for the operator.
172
172
```
173
- $ kubectl get pods -n sample-weblogic-operator1 -ns
173
+ $ kubectl get pods -n sample-weblogic-operator -ns
174
174
```
175
175
176
176
d. Create an Ingress for the domain, in the domain namespace, by using the [ sample] ( ../kubernetes/samples/charts/ingress-per-domain/README.md ) Helm chart:
177
- * Use ` helm install ` , specifying the ` domainUID ` (` sample-domain1 ` ) and domain namespace (` sample-domains-ns1 ` ) in the ` values.yaml ` file.
177
+ * Use ` helm install ` , specifying the ` domainUID ` (` sample-domain1 ` ) and domain namespace (` sample-domain1-ns ` ) in the ` values.yaml ` file.
178
178
```
179
179
$ cd kubernetes/samples/charts
180
180
$ helm install ingress-per-domain --name domain1-ingress --values ingress-per-domain/values.yaml
@@ -197,8 +197,8 @@ b. Remove the domain resources by using the sample [`delete-weblogic-domain-reso
197
197
198
198
c. Use ` kubectl ` to confirm that the server pods and domain resource are gone.
199
199
```
200
- $ kubectl get pods -n sample-domains-ns1
201
- $ kubectl get domains -n sample-domains-ns1
200
+ $ kubectl get pods -n sample-domain1-ns
201
+ $ kubectl get domains -n sample-domain1-ns
202
202
```
203
203
204
204
## 7. Remove the domain namespace.
@@ -225,7 +225,7 @@ $ helm upgrade \
225
225
c. Delete the domain namespace:
226
226
227
227
```
228
- $ kubectl delete namespace sample-domains-ns1
228
+ $ kubectl delete namespace sample-domain1-ns
229
229
```
230
230
231
231
## 8. Remove the operator.
0 commit comments