@@ -7,7 +7,7 @@ refer to the [User guide](user-guide.md).
77## Prerequisites
88For this exercise, you’ll need a Kubernetes cluster. If you need help setting one up, check out our [ cheat sheet] ( k8s_setup.md ) .
99
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
1111various sample files mentioned throughout this guide:
1212```
1313$ 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
101101a. Create a namespace that can host one or more domains:
102102
103103```
104- $ kubectl create namespace sample-domains-ns1
104+ $ kubectl create namespace sample-domain1-ns
105105```
106106b. Use ` helm ` to configure the operator to manage domains in this namespace:
107107
108108```
109109$ helm upgrade \
110110 --reuse-values \
111- --set "domainNamespaces={sample-domains-ns1 }" \
111+ --set "domainNamespaces={sample-domain1-ns }" \
112112 --wait \
113113 sample-weblogic-operator \
114114 kubernetes/charts/weblogic-operator
@@ -118,7 +118,7 @@ c. Configure Traefik to manage Ingresses created in this namespace:
118118```
119119$ helm upgrade \
120120 --reuse-values \
121- --set "kubernetes.namespaces={traefik,sample-domains-ns1 }" \
121+ --set "kubernetes.namespaces={traefik,sample-domain1-ns }" \
122122 traefik-operator \
123123 stable/traefik
124124```
@@ -133,7 +133,7 @@ a. Create a Kubernetes secret containing the `username` and `password` for the d
133133
134134```
135135$ 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
137137```
138138
139139The 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
145145including:
146146
147147* 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 ` ).
149149
150150* Setting ` weblogicCredentialsSecretName ` to the name of the secret containing the WebLogic credentials.
151151 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
159159
160160c. Confirm that the operator started the servers for the domain:
161161```
162- $ kubectl get pods -n sample-domain-ns1
162+ $ kubectl get pods -n sample-domain1-ns
163163```
164164
165165After 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
170170```
171171* Verify that the operator's pod is running, by listing the pods in the operator's namespace. You should see one for the operator.
172172```
173- $ kubectl get pods -n sample-weblogic-operator1 -ns
173+ $ kubectl get pods -n sample-weblogic-operator -ns
174174```
175175
176176d. 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.
178178```
179179$ cd kubernetes/samples/charts
180180$ 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
197197
198198c. Use ` kubectl ` to confirm that the server pods and domain resource are gone.
199199```
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
202202```
203203
204204## 7. Remove the domain namespace.
@@ -225,7 +225,7 @@ $ helm upgrade \
225225c. Delete the domain namespace:
226226
227227```
228- $ kubectl delete namespace sample-domains-ns1
228+ $ kubectl delete namespace sample-domain1-ns
229229```
230230
231231## 8. Remove the operator.
0 commit comments