Skip to content

Commit 54d1c9b

Browse files
authored
Merge pull request #732 from oracle/fix-doc-bug
Doc updates bad param and explicitly remove 1.x - fixes #731
2 parents bcce073 + 6c29684 commit 54d1c9b

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

site/helm-charts.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44

55
The WebLogic Kubernetes Operator uses Helm to create and deploy any necessary resources and then run the operator in a Kubernetes cluster. Helm helps you manage Kubernetes applications. Helm charts help you define and install applications into the Kubernetes cluster. The operator's Helm chart is located in the `kubernetes/charts/weblogic-operator` directory.
66

7+
> If you have an old version of the operator installed on your cluster you must remove
8+
it before installing this version. You should remove the deployment (for example `kubectl delete deploy weblogic-operator -n your-namespace`) and the custom
9+
resource definition (for example `kubectl delete crd domain`). If you do not remove
10+
the custom resource definition you may see errors like this:
11+
12+
`Error from server (BadRequest): error when creating "/scratch/output/uidomain/weblogic-domains/uidomain/domain.yaml":
13+
the API version in the data (weblogic.oracle/v2) does not match the expected API version (weblogic.oracle/v1`
14+
15+
716
## Install Helm and Tiller
817

918
Helm has two parts: a client (helm) and a server (tiller). Tiller runs inside of your Kubernetes cluster, and manages releases (installations) of your charts. See https://github.com/kubernetes/helm/blob/master/docs/install.md for detailed instructions on installing helm and tiller.

site/quickstart.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Use this quick start guide to create a WebLogic deployment in a Kubernetes clust
44
These instructions assume that you are already familiar with Kubernetes. If you need more detailed instructions, please
55
refer to the [User guide](user-guide.md).
66

7+
> If you have an old version of the operator installed on your cluster you must remove
8+
it before installing this version. You should remove the deployment (for example `kubectl delete deploy weblogic-operator -n your-namespace`) and the custom
9+
resource definition (for example `kubectl delete crd domain`). If you do not remove
10+
the custom resource definition you may see errors like this:
11+
12+
`Error from server (BadRequest): error when creating "/scratch/output/uidomain/weblogic-domains/uidomain/domain.yaml":
13+
the API version in the data (weblogic.oracle/v2) does not match the expected API version (weblogic.oracle/v1`
14+
715
## Prerequisites
816
For this exercise, you’ll need a Kubernetes cluster. If you need help setting one up, check out our [cheat sheet](k8s_setup.md).
917

@@ -164,9 +172,14 @@ domain namespace (`sample-domain1-ns`) and the `domainHomeImageBase` (`oracle/we
164172
For example, assuming you named your copy `my-inputs.yaml`:
165173
```
166174
$ cd kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image
167-
$ ./create-domain.sh -i my-inputs.yaml -o /some/output/directory -e -v
175+
$ ./create-domain.sh -i my-inputs.yaml -o /some/output/directory -u username -p password -e
168176
```
169177

178+
You need to provide the WebLogic administration username and password in the `-u` and `-p` options
179+
respectively, as shown in the example. If you specify the `-e` option, the script will generate the
180+
Kubernetes YAML files *and* apply them to your cluster. If you omit the `-e` option, the
181+
script will just generate the YAML files, but will not take any action on your cluster.
182+
170183
c. Confirm that the operator started the servers for the domain:
171184
* Use `kubectl` to show that the domain resource was created:
172185
```

0 commit comments

Comments
 (0)