You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kubernetes/samples/scripts/create-weblogic-domain-pv-pvc/README.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,16 +16,16 @@ Prior to running the `create-pv-pvc.sh` script, make a copy of the `create-pv-pv
16
16
Run the create script, pointing it at your inputs file and an output directory:
17
17
18
18
```
19
-
./create-pv-pvc.sh \
19
+
$ ./create-pv-pvc.sh \
20
20
-i create-pv-pvc-inputs.yaml \
21
21
-o /path/to/output-directory
22
22
```
23
23
24
-
The `create-pv-pvc.sh` script will create a subdirectory `pv-pvcs` under the given `/path/to/output-directory` directory. By default, the script generates two YAML files, namely `weblogic-sample-pv.yaml` and `weblogic-sample-pvc.yaml`, in the `/path/to/output-directory``directory/pv-pvcs`. These two YAML files can be used to create the Kubernetes resources using the `kubectl create -f` command.
24
+
The `create-pv-pvc.sh` script will create a subdirectory `pv-pvcs` under the given `/path/to/output-directory` directory. By default, the script generates two YAML files, namely `weblogic-sample-pv.yaml` and `weblogic-sample-pvc.yaml`, in the `/path/to/output-directory/pv-pvcs`. These two YAML files can be used to create the Kubernetes resources using the `kubectl create -f` command.
25
25
26
26
```
27
-
kubectl create -f weblogic-sample-pv.yaml
28
-
kubectl create -f weblogic-sample-pvc.yaml
27
+
$ kubectl create -f weblogic-sample-pv.yaml
28
+
$ kubectl create -f weblogic-sample-pvc.yaml
29
29
30
30
```
31
31
@@ -173,6 +173,9 @@ spec:
173
173
174
174
### Verify the PV and PVC objects
175
175
176
+
You can use this command to verify the persistent volume was created, note that the 'Status' field
177
+
should have the value 'Bound', indicating the that persistent volume has been claimed:
178
+
176
179
```
177
180
$ kubectl describe pv weblogic-sample-pv
178
181
Name: weblogic-sample-pv
@@ -193,6 +196,8 @@ Events: <none>
193
196
194
197
```
195
198
199
+
You can use this command to verify the persistent volume claim was created:
0 commit comments