Skip to content

Commit fc87006

Browse files
rosemarymaranomarkxnelson
authored andcommitted
add create K8s resource command (#630)
* add create K8s resource command * add create K8s resource command
1 parent 5c7fa39 commit fc87006

File tree

2 files changed

+11
-4
lines changed
  • kubernetes/samples/scripts/create-weblogic-domain

2 files changed

+11
-4
lines changed

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ The script will perform the following steps:
2929
* Clone the weblogic docker-images project via the `git clone https://github.com/oracle/docker-images.git` into the current directory.
3030
* Replace the built-in username and password in the `properties/docker_build/domain_security.properties` file with the `username` and `password` that are supplied in the command line via the `-u` and `-p` options. These credentials need to match the WebLogic domain admin credentials in the secret that is specified via `weblogicCredentialsSecretName` property in the `create-domain-inputs.yaml` file.
3131
* Build a Docker image based on the Docker sample, [Example Image with a WebLogic Server Domain](https://github.com/oracle/docker-images/tree/master/OracleWebLogic/samples/12213-domain-home-in-image). It will create a sample WebLogic Server domain in the Docker image. Also, you can run the Docker sample, [Example Image with a WebLogic Server Domain](https://github.com/oracle/docker-images/tree/master/OracleWebLogic/samples/12213-domain-home-in-image), manually with the generated `domain.properties` to create a domain home image. **Note**: Oracle recommends keeping the domain home image private in the local repository.
32-
* Create a Kubernetes domain YAML file, `domain.yaml`, in the directory that is created above. This YAML file can be used to create the Kubernetes resource using the `kubectl create -f` or `kubectl apply -f` command.
32+
* Create a Kubernetes domain YAML file, `domain.yaml`, in the directory that is created above. This YAML file can be used to create the Kubernetes resource using the `kubectl create -f` or `kubectl apply -f` command:
33+
```
34+
kubectl apply -f /path/to/output-directory/weblogic-domains/<domainUID>/domain.yaml
35+
```
3336

3437
As a convenience, using the `-e` option, the script can optionally create the domain object, which in turn results in the creation of the corresponding WebLogic Server pods and services.
3538

@@ -249,7 +252,7 @@ Spec:
249252
Name: JAVA_OPTIONS
250253
Value: -Dweblogic.StdoutDebugEnabled=false
251254
Name: USER_MEM_ARGS
252-
Value: -Xms64m -Xmx256m
255+
Value: -Xms64m -Xmx256m
253256
Liveness Probe:
254257
Node Selector:
255258
Pod Annotations:

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ The script will perform the following steps:
2727
* Create a directory for the generated Kubernetes YAML files for this domain if it does not already exist. The pathname is `/path/to/weblogic-operator-output-directory/weblogic-domains/<domainUID>`. If the directory already exists, its contents will be removed.
2828
* 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.
2929
* Run and wait for the job to finish.
30-
* Create a Kubernetes domain YAML file, `domain.yaml`, in the directory that is created above. This YAML file can be used to create the Kubernetes resource using the `kubectl create -f` or `kubectl apply -f` command.
30+
* Create a Kubernetes domain YAML file, `domain.yaml`, in the directory that is created above. This YAML file can be used to create the Kubernetes resource using the `kubectl create -f` or `kubectl apply -f` command:
31+
```
32+
kubectl apply -f /path/to/output-directory/weblogic-domains/<domainUID>/domain.yaml
33+
```
34+
3135
* Create a convenient utility script, `delete-domain-job.yaml`, to clean up the domain home created by the create script.
3236

3337
As a convenience, using the `-e` option, the script can optionally create the domain object, which in turn results in the creation of the corresponding WebLogic Server pods and services as well.
@@ -280,7 +284,7 @@ Spec:
280284
Name: JAVA_OPTIONS
281285
Value: -Dweblogic.StdoutDebugEnabled=false
282286
Name: USER_MEM_ARGS
283-
Value: -Xms64m -Xmx256m
287+
Value: -Xms64m -Xmx256m
284288
Liveness Probe:
285289
Node Selector:
286290
Pod Annotations:

0 commit comments

Comments
 (0)